The hr element creates a horizontal rule. It is a block element.
It is an empty element, that is,
it cannot contain any other element or text. This is a presentational (X)HTML element.
Therefore, it is preferable to use CSS borders to create horizontal rules instead of using the
hr element.
Attributes
Core Attributes- The core attributes can be applied to this element.
align- This is a deprecated attribute. It can take the value
centerorleftorright. This attribute is used to align the horizontal rule when its length is less than the content area of its parent element. Since it is a presentational attribute, CSS should be used instead. noshade- This is a deprecated attribute.
This attribute is specified as
noshade="noshade". It displays the rule with one solid color, instead of the default 3D shade. size- This is a deprecated attribute. Its value, a number, specifies the height (thickness) of the rule.
width- This is a deprecated attribute. Its value is a number or a percentage. If the value is a number, it specifies the width (length) of the rule in pixels. If the value is a percentage, it calculates the the width (length) of the rule as a percentage of the width of the parent element.

No comments:
Post a Comment