HTML5 Interview Questions and Answer

1. Anatomy of HTML 5 document?

       <!DOCTYPE html>
       <html>
       <head>
       <meta charset= "UTF-8">
       <title> title of page</title>
       </head>
       <body>

               <! -- body of the page(List of elements we can use for our document) --> 

       </body>
       </html>

2. Anatomy of HTML 5 Element?


     An HTML 5 element contains three important parts
           1. Opening Tag
           2. Content
           3. Closing Tag 
For understand,
for example,
                            <h2> heading 2</h2>
              output:
                            

                     Heading 2

Comments