Home / Questions / What are the basic HTML Document parts?
Explanatory Question

What are the basic HTML Document parts?

👁 578 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

An element called HTML surrounds the whole document. This element contains two sub-elements, HEAD, and BODY. These elements are required to form any HTML document. <Html> <Head> <Title>The First Page</title> </head> <Body> <p>Hello World</p> </body> </Html>

Just write down the above code in the notepad editor and save this file with the extension of .html or .htm and then double click on that file you will get output on the default web browser.