Interview Question

What is the basic structure of an HTML document?

A basic page uses doctype, html, head, and body.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

An HTML document has a small set of main parts. • `<!DOCTYPE html>` chooses modern HTML. • `<head>` stores page information. • `<body>` stores the content people can see.

💡 Simple Example

<!DOCTYPE html> <html> <head><title>Page</title></head> <body><h1>Hello</h1></body> </html>

⚡ Quick Revision

A basic page uses doctype, html, head, and body.