Details of HTML boilerplate

Jayesh ChauhanJayesh Chauhan
1 min read
<!-- this is to identify our page as html 5 for the web browser -->
<!DOCTYPE html> 
<!-- one more important point is that you should only put text or anything between html open and close tags; -->
<!-- this is to declare that we are using english language  -->
<html lang="en">
<!-- this is head tag all necessary information about webpage are to be provided in this tags only, this will not render to page;  -->
<head>
    <meta charset="UTF-8"> 
    <!-- this is for ASCAI value or for all characteres UTF full form Uniform Transformation Format 
        that means it will show as we type in our doc. -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- the meaning of above line is to display the webpage in internet exploral as well -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- the meaning of above line is to make our webpage to portable to different device according to their width -->
    <title>Document</title>
    <!-- This is our webpage title which display in browser's tab -->
</head>
<body>
    <!-- This is body tag all content in body tag will only be display on screen -->
    <h1>this is html1</h1>
</body>
</html>

Hope I was able to clear all about this point...

If you still have doubts, then please comment to me I will try to reply as soon as possible.

Thanks for Reading....

0
Subscribe to my newsletter

Read articles from Jayesh Chauhan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jayesh Chauhan
Jayesh Chauhan

Hey I am MERN Developer.