horizontal rule html tag
Horizontal Rule Tag <HR>
Horizontal rules are used to visually break up sections of a document. The <HR> tag creates a line from the current position in the document to the right margin and breaks the line accordingly. So basically places horizontal line on a page. An empty tag <HR> basically used to draw lines and horizontal rules. It can be used to separate two sections of text.
<HR> accepts following attributes:
SIZE: Determines the thickness of the horizontal rule. The value is given as a pixel value.
Example: <HR SIZE="3">
WIDTH: Specifies an exact width of HR in pixels, or a relative width as percentage of the document width.
Example: <HR WIDTH="50%">, horizontal rule a width a 50 percent of the page width.
ALIGN: Set the alignment of the rule to LEFT, RIGHT and CENTER. It is applicable if it is not equal to width of the page.
NOSHADE: If a solid bar is required, this attribute is used; it specifies that the horizontal rule should not be shaded at all.
COLOR: Set the color of the Horizontal rule. Example: <HR COLOR="BLUE">
Example of <HR> with its attribute:
<HTML>
<HEAD>
<TITLE>
Use of Horizontal Rule Tag with attributes
</TITLE>
</HEAD>
<BODY>
Alamin Computer Training Center <HR size="4" color="red" width="30%" align="left">
Best Computer Training Center <HR width="30%" align="left">
Dhaka-1216
</BODY>
</HTML>
Now Save your html document and open your web page.
0 মন্তব্য(গুলি):
একটি মন্তব্য পোস্ট করুন
Comment below if you have any questions