Interview Question

What is hidden attribute?

Hidden removes an element from normal display.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

The `hidden` attribute marks an element as not currently relevant or visible. β€’ It is written inside an element’s opening tag. β€’ The HTML Standard limits which elements may use it and which values are valid. β€’ Browsers apply the attribute when they process the element or the resource it controls.

💡 Simple Example

<p hidden>Secret message</p>

⚡ Quick Revision

Hidden removes an element from normal display.