Attributes of the <hr> tag

The tag <hr> by itself produces an horizontal rule that is thin and crosses the entire window. You can alter the appearance of the rule -- make it shorter or taller or change its color -- by adding appropriate attributes and their values to the tag. For example, if you say:
   <hr size = "10">
you get a taller rule.

Some other attributes of the <hr> tag are:

Note that most attributes require values, but some, like noshade, do not. Note also that the values are enclosed in quote marks.

Experiment with the attributes of the <hr> tag until you understand their affects.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.