HTML And CSS Codes

Get Free HTML And CSS Codes For Your Blog Or Website

Wednesday, September 2, 2015

What Is Html?

Welcome To HTML - Do You Like To Code?


Html, Html Codes, Html Free Tutorials, HTML tags, Html Tutorials, Learn Html, What Is Html?,

What is HTML?

HTML is a markup language for describing web pages.

HTML is short for Hyper Text Markup Language.  A markup language is a set of markup tags. HTML documents are defined by HTML tags, and each HTML tag identifies different document content.

To use HTML you only need a notepad and a browser.  Every page of  HTML codes has two sections: Head and Body

HTML Example

Try this small HTML document:
Open notepad and type the following code:

<html>
<head>
            <title>Title of My first Html Page</title>
</head>
<body>
           <h1>My First Heading</h1>
           <p>I am trying my first html code. I hope it works, wish me good luck...</p>
</body>
</html>

Let us explain what we did:

we started the html document with the opening tag <html>
We started in the head section with the <head> tag.
We gave our page a title: Title of My first Html Page
To do that, we used the <title> tag, then we ended our title with the </title> tag.
We ended our head with </head> tag.

We started our body section with the <body> tag.
We stated our heading with the <h1> tag and ended it with the </h1> closing tag.
We wrote our first paragraph using the <p> tage then we ended it with </p> closing tag.
We Ended the body tag with </body>
and finally we closed our html page with the </html> closing tag.

What Is Html?, HTML And CSS Codes

What are HTML Tags?

Since we used many Html tags in this short example, HTML tags are keywords (tag names) surrounded by angle brackets:

<tag name>content</tag name>

HTML tags normally used in pairs like <p> and </p>

Start Tag + text or content + End or Closing Tag

The first tag in a pair is the start tag, the second tag is the end tag.
The end tag is written similar to the start tag, but with a slash before the tag name.

Note:
The start tag is often known as the opening tag. The end tag is often known as the closing tag.

To see our first web page we need a browser. Explorer, Firefox, Chrome or any browser will do.  The intent of a web browser is to read HTML documents and display them.  Browser do not display the HTML tags, but uses them to figure out how to show the document.

Note:
Browser show only the <body> area (the white area) is displayed by the browser, and not the head section of a web page.

How To Save An Html Document?

To be able to see your html page, you need first to save it in notepad as an html document and to select all files.

How To Save An Html Document?, Html And CSS Codes,

How To View Html In A Browser?

To view the html page we wrote, right click on the file name and choose open with the select your browser.

How To View Html In A Browser?, HTML And CSS Codes,

HTML Page Structure
Below is a visualization of an HTML page structure.

How To View Html In A Browser?, HTML And CSS Codes,