How To

How to Add a Horizontal Line to a Web Page

Contributor
By eHow Contributing Writer
(154 Ratings)

Horizontal lines add emphasis and separate sections on a Web page. If you wanted to section off certain parts of your site, you can simply do so by using a simple html code. Horizontal lines are beneficial since they load faster than images. Read more to find out how you can add this code to your Web page.

Difficulty: Easy
Instructions

Things You'll Need:

  • Text-editing program
  1. Step 1

    Open a text-editing program, such as Notepad or EditPad.

  2. Step 2

    Select Open from the File menu. Locate the Web page file and click Open.

  3. Step 3

    Place the cursor where you want the horizontal line to appear.

  4. Step 4

    Type the following:


    . This inserts a horizontal line. If you want to add attributes to your horizontal line, all you have to do is add the words color, width, align, or no shade after the
    . You can align your horizontal line by typing RIGHT, LEFT or CENTER.

  5. Step 5

    Select Save from the file menu.

  6. Step 6

    Open a Web browser and select Open from the File menu.

  7. Step 7

    Locate the Web page and select Open to view it in the Web browser.

Tips & Warnings
  • Change the thickness of the line by adding the following, using any number:
    The higher the number, the thicker the line.

Comments  

| View All 11 Comments

atnonis said

Flag This Comment

on 3/6/2009 aaargh fock it, stupid site :P

atnonis said

Flag This Comment

on 3/6/2009 $lt;hr$gt; replace $ with

atnonis said

Flag This Comment

on 3/6/2009 loool

atnonis said

Flag This Comment

on 3/6/2009 $lt;hr

Flag This Comment

on 3/6/2009 test

Post a Comment

Post a Comment
  • Have you done this? Click here to let us know.
I Did This

Related Ads

Internet
Virginia DeBolt,

Meet Virginia DeBolt eHow's Internet Expert.

Get Free Internet Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

Demand Media
eHow_eHow Technology and Electronics