Basic

html 001

Open Notepad.

<!doctype html>

<html>

<head>

<title>My First Webpage</title>

<meta charset=”utf-8″ />

</head>

<body>

Hello World !

 </body>

</html>

 Explanation:

  1. At first, specify the doctype. <!doctype html>
  2. Then create html tag. <html> = <name_of_the_tag>. “/” defines the end of the tag.
  3. Create head between html tags. <head>   </head>
  4. Give a title between head tags. <title> My First Webpage </title>
  5. Specify character type inside meta tag. Character type (charset) followed by equal sign (=), then value (utf-8). <meta charset=”utf-8” />. value may vary from country to country.
  6. Closing head tag.
  7. Then create body. <body>  </body>

Watch the tags below:

  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>My First Webpage</title>
  5. <meta charset=”utf-8″ />  as like as <meta value = “name” />. <meta charset = “utf-8” /> and <meta charset = “utf-8 > both are same.
  6. </head>
  7. <body> Hello World !

</body>

</html>

Then save file by name.html.  “.html” specifies the HTML file.