Structure of Basic HTML

  • A HTML document must start with <!DOCTYPE html>.
  • All HTML codes must be between the <html>....</html> tag.
  • There ar two basic part of HTML. head tag and body tag. The head tag is start with <head> and ends to </head> as well as the body tag is start with <body> and ends to </body>

Here is the basic structure of the HTML code:

<!DOCTYPE html>
<html>
<head>
It contains the meta, title, link, style etc tags.
<title> Here You can write the title of webpage </title>
</head>

<body>
It contains the entire content of a webpage. The text, image, table, form, audio, video etc tags are used here.
</body>
</html>