Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML hr noshade attribute

HTML
The noshade attribute

HTML hr Tag Reference HTML


tag

Example

Horizontal rule with a shadow effect (this is the default):

Horizontal rule without a shadow effect:


Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the noshade attribute.


Definition and Usage

HTML5 does not support


The noshade attribute. Use CSS instead.

In HTML 4.01,


The noshade attribute is deprecated.

The noshade attribute is a boolean attribute.

The noshade attribute specifies that the horizontal rule is rendered as a solid color rather than a shaded color.


Compatibility notes

In HTML 4.01,


The noshade attribute is deprecated. Use CSS instead.

CSS syntax (Internet Explorer):


CSS syntax (Firefox, Opera, Chrome, and Safari):


CSS syntax (cross-browser):


CSS example: no shadow effect


In our CSS tutorial, you can find more details about color and background-color Details of the attribute.


Differences between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the noshade attribute must be defined as


.


Syntax



HTML hr Tag Reference HTML


tag