Username:

Password:

Fargot Password? / Help

The HTML hr tag and XHTML hr tag

Definition and usage of the HTML hr tag and XHTML hr tag The HTML hr tag or XHTML hr tag is used in HTML to create a horizontal line in a page.  The HTML hr tag is typically used to separate content in an page and is supported by most of the major web browsers, but may render differently depending on the browser you are using. Here is a short how to video of using the XHTML hr tag using Dreamweaver CS5: Example of the XHTML  hr tag code: Here is an example of how the  XHTML hr tag code would look: <p>This is some random text on a web page</p> <hr /> <p>This is some more random  text on a web page</p> So, how would this XHTML hr tag look in a web page: This is some random text on a web page html hr tag This is some more random  text on a web page
The differences in using the hr tag in HTML and XHTML The minor difference between using the hr tag in HTML and XHTML: HTML hr tag is: <hr> XHTML hr tag is: <hr /> Styling the HTML hr tag with CSS The HTML hr tag can also be styled using cascading style sheets (CSS). All browsers render the styling of the horizontal rule's "width" and "height." The color, border, etc can also be styled with CSS, but not all browsers will render the horizontal rule as it is styled. HTML hr tag conclusion: HTML hr tags are easy to implement into your web pages and do a great job of separating the content of you page, but remember to use these hr tags sparingly. Overuse of the hr tag will result in your pages looking too cluttered. Also, remember that the HTML hr tags are rendered different in different browsers. Tags: XHTML hr tag, horizontal rule, hr tag, HTML hr tag, using hr tag