<p> tag :
<p> tag or Paragraph tag defines paragraph of text. Each paragraph starts with <p> & ends with </p>. This tag contains plain text.Eg.
<p align="right" > This is my paragraph with right align. </p>
Output:
This is my paragraph with right align.
Attributes | Description | Values |
---|---|---|
align : | Set the alignment of the paragraph. | left, right, center, justify |
<br> tag :
This tag inserts line break. It has no ending tag. When user wants text to be appear on the next line this tag is used. Like in following eg. :My address :<br> Street address 1, <br> Street address 2, <br> City, <br> Country, <br> Pincode.
Output:
My address :
Street address 1,
Street address 2,
City,
Country,
Pincode.
Street address 1,
Street address 2,
City,
Country,
Pincode.
<hr> tag :
It displays a horizontal rule on the web page. The horizontal line displayed here after the following table is by using this tag. This tag doesn't have closing tag. This line can be drawn in several ways by using the following attributes:Attributes | Description | Values |
---|---|---|
align : | Set the alignment of the line. By default it is centered aligned. | left, center or right |
size : | Set the size of line in pixels. | pixels |
width : | Sets the width of the line in pixels. | pixels, percentage |
0 comments