✏️ Explanatory Question

What are the basic HTML Document parts?

👁 578 Views
📘 Detailed Answer
💡

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.