Structure of HTML Document

Every HTML document contains mainly the following 3 Paris:

  1. Opening Tags.
  2. Contents.
  3. Closing Tags.
Structure of HTML Document
<!DOCTYPE html>
<html>
<head>
<title> This is Title </title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Above Code Explanation:

In the above script, If you delete <html> tags Nothing reflected to output.

This html tags indicates the document contents<html> property.

In the above script, If you delete <head> tags Nothing reflected to output.

If you remove <title> tag, it is treating as a body

If you remove <body> tag, it is treats as a normal string, Normal string displayed on the browser.