KnowledgeBoat Logo
|

Computer Applications

How can a 2D or 3D horizontal rule be displayed ?

HTML Intro

20 Likes

Answer

The <HR> tag is used to produce horizontal line spread across the width of the browser window. By default, a 3D horizontal line is produced.

If we want to produce a 2D rule, we add "noshade" to <HR> tag.

For example:

<HR> <!-- This tag produces a 3D horizontal rule -->

<HR noshade> <!-- This tag produces a 2D horizontal rule -->

Answered By

6 Likes


Related Questions