Horizontal Lines

Section 1 - Introduction
Section 2 - Basics
      Your first page
      Formatting
         Paragraphs
         Divisions
         Headings
         Alignment
         Breaks
         Horizontal Lines
         You Try It!
      Text tricks
      Pictures
      Links
      Backgrounds
Section 3 - Next Level
Section 4 - Advanced
Section 5 - Publishing
Section 6 - Extras
Appendices
Horizontal lines
TAGS USED: <hr>
Sometimes it is useful to put a line on your page. This line is also called a rule, or more specifically, a horizontal rule. This would explain why its tag is
<hr>
Horizontal rules do NOT need a closing tag. Here is a horizontal rule:
All horizontal rules, unless specified, have a thickness of one pixel and span the whole page. Horizontal rules can be modified, which makes them even more useful. Here are some examples:

<hr>


<hr width="50%">


<hr width="50">


<hr width="250" align="left">


<hr width="250" align="right">


<hr width="250" size="7">


<hr width="250" size="7" noshade>


<hr width="250" noshade>


<hr width="250" color="red" size="4">


<hr width="250" color="red">


You get the picture. You haven't learned much about color yet, but keep in mind that you can change the color, size and alignment of horizontal lines.
Back Home Forward