Interview Question

What is the <html> tag?

`<html>` should be used for its proper HTML purpose.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

`<html>` is the root element that wraps the whole HTML document. • It normally contains the `<head>` and `<body>` elements. • Browsers apply the native parsing and behavior defined for this element. • Using its native meaning helps assistive technology understand the content when the element has accessibility semantics.

💡 Simple Example

<html lang="en"><head><title>Example</title></head><body><p>Hello</p></body></html>

⚡ Quick Revision

`<html>` should be used for its proper HTML purpose.