Inserting a line divider

  • Author
  • #415090

    I am trying to insert a Line Divider into a Page at by using the following HTML tag:

    HR WIDTH=”75%” COLOR=”#FF0000″ SIZE=”4″

    I need the line to be red because the background is black. Am I doing something wrong? Does support this?

    Thanks very much for your help.

    The blog I need help with is


    The size and width attributes for the “hr” tag were depriciated in HTML 4.01 and are not supported at all in XHTML 1.0 and above:

    <hr> is also not allowed in XHTML. You have to use the self-closing hr tag <hr />.

    Also in XHTML you cannot use uppercase in HTML tags. Tags must be lowercase.


    You can use this (you can change the height number to adjust line thickness):
    <div style=”width:75%;height:2px;background:#ff0000;”></div>



    thanks very much! that’s working quite well.

The topic ‘Inserting a line divider’ is closed to new replies.