HTML hr tag
HTML <hr> tag is used to specify a paragraph-level thematic break in HTML document. It is used when you abruptly change your topic in your HTML document. It draw a horizontal line between them. It is also called a Horizontal Rule in HTML.
<h2>HTML</h2>
<p>HTML is a language for describing web pages.</p>
<hr/>
<h2>HR Tag </h2>
<p> HR tag is used to draw a horizontal line within the texts to sepate content.<p>
Output
HTML is a language for describing web pages.
HR tag is used to draw a horizontal line within the texts to sepate content.
Attribute | Value | Description |
---|---|---|
align | left center right | Not supported in HTML5. Specifies the alignment of a <hr> element |
noshade | noshade | Not supported in HTML5. Specifies that a <hr> element should render in one solid color (noshaded), instead of a shaded color |
size | pixels | Not supported in HTML5. Specifies the height of a <hr> element |
width | pixels % | Not supported in HTML5. Specifies the width of a <hr> element |
© 2024 Easy To Learning. All Rights Reserved | Design by Easy To Learning