HTML CSS examples for HTML Tag:hr
The hr element represents a paragraph-level break.
The hr element represented a horizontal line across the page.
The hr Element summary
Item | Value |
---|---|
Element | hr |
Local Attributes | None |
Contents | None |
Tag Style | Void element |
New in HTML5 | No |
Changes in HTML5 | The following local attributes are obsolete in HTML5: align, width, noshade, size, color. |
Style Convention
hr { display: block; margin-before: 0.5em; margin-after: 0.5em; margin-start: auto; margin-end: auto; border-style: inset; border-width: 1px; }
Using the hr Element
<!DOCTYPE html> <html> <head> <title>Example</title> </head> <body> <p>I like CSS and HTML. </p> <hr> <p>I like CSS and HTML. </p> <hr> <p>I like CSS and HTML. </p> <hr> </body><!-- w w w.j a v a2 s .co m--> </html>