Advertisements
Advertisements
Question
How can a 2D or 3D horizontal rule be displayed?
Short Answer
Advertisements
Solution
The <HR> tag is used to draw a horizontal line across the width of the browser window. By default, it displays a 3D horizontal rule.
To create a 2D horizontal rule, the noshade attribute is added to the <HR> tag.
For example:
<HR> <!-- Produces a 3D horizontal rule -->
<HR noshade> <!-- Produces a 2D horizontal rule -->
shaalaa.com
Is there an error in this question or solution?
