HTML code for horizontal line

March 24, 2012

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.
Copy link
Powered by Social Snap