HTML hr noshade Attribute
HTML <hr> tag
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" />
In our CSS tutorial you can find more details about the
color and
background-color properties.
Syntax
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" />
|
|
Try-It-Yourself Demos
hr noshade
attribute example
How use the noshade attribute.
In CSS: hr
noshade example
Style the hr element to look like a solid line.
HTML <hr> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|