Interview Question

What is the <hr> tag?

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

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

`<hr>` is an element that marks a change of topic. • Browsers usually display it as a horizontal line. • 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

<p>Chapter one</p><hr><p>Chapter two</p>

⚡ Quick Revision

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