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>
<!-- Start of Head Section, Here we add css files & sometimes js files too. -->
<title>Page Title</title>
<!-- 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. -->

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 -->