How to Create a Line in HTML

How to Create a Line in HTML thumbnail
Add lines to separate important information on your Web page.

There are a number of reasons to create a line on a website. Oftentimes, lines are used to visually break apart sections of information or graphics. When programming with Hypertext Markup Language (also known as HTML), horizontal lines can be added with a very simple piece of code.

Instructions

    • 1

      Open an HTML file in a word processing program.

    • 2

      Select the area within the body section where you want a line to appear.

    • 3

      Enter the code <HL> to add a horizontal line.

    • 4

      Save the file and view it in a Web browser.

Tips & Warnings

  • Use <HL SIZE="4"> to adjust the thickness of the line to 4 (or any other number).

  • Use <HL WIDTH="300"> to adjust the width of the line to 300 pixels (or any other number).

Related Searches:

References

  • Photo Credit website layout image by 6922Designer from Fotolia.com

Comments

You May Also Like

Related Ads

Featured