Posted in Tutorial on August 25, 2009
1- To define the language used, you should always put this tag <html> the beginning of your page then the page should be completed by </ html>.
2- Then we must place other tags inside:
-You need to put the tag <head> then ends with </ head>.

This tag contains another tag which is the title of your page, the title will appear on the bar at the top of your browser and also enables search engines to find you, so you have to put an explicit title!

This tag begins with <title> and ends with </ title>.
other tags are also needed for search engines, they are not indispensable for the functioning of your page, these tags are placed between <head> </ head>. Some examples:
  • <meta name=”Description” content=”Learn HTML online for free”>
The content of this meta tag as its name suggests is a description of your website. Some search engines need this meta tags to analyze the page.
  • <meta name=”keywords” content=”HTML, PHP, MYSQL, create, design”>
This meta name contains all the keywords of your website, most search engines will look at this meta tag.
  • <meta http-equiv=”Content-Language” content=”en-us”>
This meta tag indicates the main language of the website.
  • <meta name=”Author” content=”Robert”>
This meta tag reference the author of the website.
3- The body contents are visible to the user who visits your website, you need to put this tag <body> then ends with </ body>.
4- The comments are written like this:
<! – Your comments are here -> comments are not visible to the user, you have to edit the source code to see the comments.

An Example:

<html>

<!–
-Beginning of your HTML page—>


<head>
<!—Your Header—>

<title>Title of your Website</title>

</head>
<!- –End of your Header- –>

<body>
<!—Beginning of your Body—>

This is my new website!
<!—type your text—>

</body>
<!—End of your body—>

</html>
<!—Close your html file—>

- The example will give to the visitors to your website the following message:

This is my new website!