Structure of HTML Document
Every HTML document contains mainly the following 3 Paris:
- Opening Tags.
- Contents.
- Closing Tags.
<!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.