English

Explain the purpose of the following tag: <HR> - Computer Applications

Advertisements
Advertisements

Question

Explain the purpose of the following tag:

<HR>

Explain
Advertisements

Solution

The <hr> tag stands for Horizontal Rule. Its purposes are:
  1. Thematic Break: It is used to create a physical separator or a break in the content, indicating a shift in the topic or a new section.
  2. Visual Separation: It draws a horizontal line across the width of the page to visually divide different parts of a webpage.
  3. Empty Tag: It is an empty (void) tag, meaning it does not require a closing tag (</hr>).
<h1>Chapter 1</h1>
<p>Content of chapter 1...</p>
<hr>
<h1>Chapter 2</h1>
shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×