HTML Tag <HR>

HTML Tag <HR>

<HR> Draws horizontal lines (rules) in your document. This is useful for visually separating document sections.

Attribute of <HR> Tag

ALIGN

Positions the line flush left, flush right, or in the center of the document. These settings are irrelevant unless you use the WIDTH= attribute to make the line shorter than the width of the document.

<H2 ALIGN=LEFT>List of Courses </H2> <HR WIDTH="40%" ALIGN=LEFT> <UL TYPE=SQUARE> <LI>BCA <LI>MCA <LI>PGDCA <LI>MBA </UL>

Possible Values

LEFT, CENTER, RIGHT



CLASS

Indicates which style class applies to the <HR> element.

<HR CLASS="dkm" WIDTH="50%">

Possible Values

Any Class Name.



COLOR

Specifies the color of the line. The color name can substitute for the hexadecimal RGB values.

<HR COLOR=#09334C>

Possible Values

Color Name or hexadecimal color code.



ID

Assigns a unique ID selector to an instance of the <HR> tag. When you then assign a style to that ID selector, it affects only that one instance of the <HR> tag.

<HR ID="dkm">

Possible Values

Any ID Name.



NOSHADE

Specifies that the browser not shade the line.

<HR NOSHADE ALIGN=CENTER WIDTH="50%"> <IMG SRC="logo.jpg" ALIGN=CENTER BORDER=0 ALT="MYcompany"> <BR CLEAR=ALL> <HR NOSHADE ALIGN=CENTER WIDTH="50%">

Possible Values

NOSHADE



SIZE

Specifies the thicknes of the line (in pixels).

<HR SIZE=10>

Possible Values

Value in pixel or percentage.



TITLE

Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the horizontal rule.

<HR TITLE="Tutorial">

Possible Values

Any text Message.



WIDTH

Specifies the length of the line. You can specify the value with an absolute number of pixels or as a percentage to indicate how much of the total width available is used.

<H2 ALIGN=CENTER>The End!</H2> <HR WIDTH="85%"> <P ALIGN=CENTER> <A HREF="index.html">Home</A> | <A HREF="aboutus.html">About Us</A> | <A HREF="contact.html">Contact Us</A>

Possible Values

Value in Pixel or Percentage.




CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad