English

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

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?
Chapter 3: HTML- I: Basic HTML Elements - Assignment [Page 128]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Assignment | Q 25. | Page 128
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×