HTML <hr> tag
Definition and Usage
The <hr> tag inserts a horizontal rule.
Differences Between HTML and XHTML
In HTML the <hr> tag has no end tag.
In XHTML the <hr> tag must be properly closed.
All "presentation attributes" of the hr element were deprecated in HTML 4.01.
All "presentation attributes" of the hr element are not supported in XHTML 1.0 Strict DTD.
Example
| Source |
Output |
| This is some text <hr /> This is some text |
This is some text This is some text |
Optional Attributes
DTD indicates in which DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute |
Value |
Description |
DTD |
| align |
center
left
right |
Specifies the alignment of the horizontal rule. Deprecated. Use styles instead |
TF |
| noshade |
noshade |
When set to true the rule should render
in a solid color, when set to false the rule should render in a two-color
"groove". Deprecated. Use styles instead |
TF |
| size |
pixels
% |
Specifies the thickness (height) of the
horizontal rule. Deprecated. Use styles instead |
TF |
| width |
pixels
% |
Specifies the width of the horizontal
rule Deprecated. Use styles instead |
TF |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event
Attributes.
Try-It-Yourself Demos
Horizontal rule
How to insert a horizontal rule.
What do you want your Web site to do?
Ektron’s new
Extranet for Client Collaboration is designed to manage documents and timelines while facilitating collaboration among
your internal and external project stake holders.
|
 |
Features include:
 |
|
Client authentication using Ektron's robust membership module, allowing you to add, manage and notify your project stake holders |
 |
|
Project Status Dashboard allowing for visual navigation across all aspects of your project, efficiently and effectively from one single location |
 |
|
Wiki Scribble Pad for tracking major additions, changes or other related announcements for your project teams |
 |
|
Discussion forums and message boards to facilitate conversations within a non real-time environment |
 |
|
Integrated Document Management allowing you to maintain a complete history and audit trail of all documents that can affect the success of your project |
 |
|
Milestone Tracking with Outlook synchronization ensuring all your goals and deadlines are met |
 |
|
Public and Private Blogs for further extending communication across the team regarding status, feature creep or other external changes |
See why there are 20,000+ Ektron integrations worldwide.
Click here to learn more, then request a live online
demo or download a FREE TRIAL
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of
HTML, XHTML, and CSS.
The ASP Certificate is for developers who want to document their knowledge of
ASP, SQL, and ADO.
|
|