HTML Page Structure

HTML Page Structure

This lesson will discuss about the basic structure of a HTML document.

Below is an example of simple HTML page.

<html>
<head>
<title>This is my HTML document</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>

All web pages contain a <html> tag at the beginning of every HTML document and a closing </html> tag at the end.

The <body> tag contains text, images and other content in our HTML document that is visible or shown to the web browser. It starts after the <head> closing tag and ends after the </html> closing tag.

The <head> </head> tag contains information of the webpage such as title, keywords that are not shown to the web browser.

The <title> </title> tag is for the title of your webpage. Every webpage must contain a title to identify what that page is all about.

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.