Basic HTML structure

The basic structure of HTML document contains the few mandatory tags that must be used create web page. Basic structure of HTML document:

<!DOCTYPE html>
 <html>
 <head>
 <title>Page title</title> 
</head> 
<body> 
<h1>Webpage's Heading</h1>
 <p>Content (Your first paragraph).</p>
 </body> 
</html>

Element of HTML structure

  1. <!DOCTYPE html>:This element define the document type as HTML. It tell the browser about the document type and version. A <!<!DOCTYPE html> declaration place at top of web page before any other elements. It ensures that browser render the page correctly.

<html>..</html>: this opening and closing html elements is the root elements of HTML page

<head> ..</head>: head elements container meta information about HTML page. such as the title and metadata. This elements used for SEO purpose 5.**<title>..</title> **: The <title> html tag is used to define title of web page. This tag is also very useful for SEO purposes

<body>..</body>: The <body> tag is used all the visible contains, such as heading, paragraph lists and image etc in your web page.

<h1>..</h1>: defines a heading

<p>..</p>: define a text paragraph of HTML document.