Horizontal Separator Rule - HR Tag

Computer Education, Training & Tutorial Resources - ComputerEducationWorld.com
Home » Free Computer Training and Courses » HTML for Beginners »

Another useful html tag that you will use, is <HR> tag. If you need to separate text in your web page by horizontal lines , you may use this tag.

<BODY>
First section
<HR>
Second section
</BODY>

Result is two lines of text separated by a horizontal rule. You can specify parameters for horizontal rule. If you want to change width of rule you can use width parameter.

<HR WIDTH=”50%”> width in percent
<HR WIDTH=”100″> width in pixels

You can also determine line size parameter to change line diameter.
<HR size=5>

It is obvious that you can mix parameters with each other. Horizontal rule created by this tag is a line that has a shade. You can change the rule to a solid line instead of a shaded line, you can add a NOSHADE parameter.

<HR SIZE=1 NOSHADE>
You can also determine Color for your line:
<HR color=”#000000″>

Above line will not have a shade and it is a solid line.


• • •
 



captcha PHP Script Free PHP captcha script free php
Website Design by WebWalas.com