Website Tips

HTML code for horizontal line

If you want to put a horizontal line to separate items on your page it is simply the <hr> attribute.
Here are some options you can add to your line:

<hr attribute1=”..” attribute2=”..”>
Inserts a horizontal line.
Attributes:

  1. size=”..” ; the thickness of the line.
  2. color=”..” ; line color, Internet Explorer only.
  3. width=”..” ; the length of the line.
  4. align=”..” ; alignment of line: RIGHT, LEFT, or CENTER.
  5. noshade ; make a solid line.

Leave a Reply

Your email address will not be published. Required fields are marked *