Definition and Usage The noshade attribute specifies that the hr element should appear as a solid line. Compatibility Notes The noshade a...
Definition and Usage
The noshade attribute specifies that the hr element should appear as a solid line.Compatibility Notes
The noshade attribute of the hr element was deprecated in HTML 4.01 and is not supported in XHTML 1.0 Strict DTD.Use CSS instead.
CSS syntax for Internet Explorer: <hr style="height:2px;border-width:0;color:gray" />
CSS syntax for Firefox, Opera and Chrome: <hr style="height:2px;border-width:0;background-color:gray" />
For cross-browser syntax use both: <hr style="height:2px;border-width:0;color:gray;background-color:gray" />
Syntax
<hr noshade="noshade" /> |
Attribute Values
Value | Description |
---|---|
noshade | Specifies whether or not the horizontal ruler should appear as a solid line.The only possible value for this attribute is "noshade". |
Browser Support
The attribute is deprecated, but still supported in all major browsers.Example
Source | Output |
---|---|
<hr noshade="noshade" /> | |