Basic HTML Structure

Basic HTML Structure

Please find basic HTML Structure below, this can be used as a snippet for new designers & developers.

 <!DOCTYPE html>
<html>
<head>
<!-- Start of Head Section, Here we add css files & sometimes js files too. -->
<title>Page Title</title>
</head>
<body>
<!-- Start of Body --> 
<!-- All content, including images, text, vidos will come under body tag -->
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<!-- End of Body -->
<!--All your java script files will come here, just before closing body. -->
</body>
</html> 


To Do :

  • Open notepad, create a new file and save it as home.html
  • Copy Code from above and paste in home.html
  • Open home.html in your browser.
  • Hey !! You just created your first HTML page.

Comment in HTML

 <!-- This is a comment -->