HEADING TAG:
We need to have different types of headings in our webpages. This tag is used to write Headings in a web page. Headings are defined with the <h1> to <h6> tags. The following shows how to write heading tags in the HTML document.
In the above HTML file the element enclosed in the <h1> appears as a main heading, element enclosed within the <h2>appears a little bit smaller than h1, and soon.. as shown in the figure.
HTML Paragraphs:
This tag is represented as <p>. This tag is used to display the paragraphs on the web page. The following figure shows the program with <p> tag and the result.
fig: program with <p> tag: |
fig: Result of <p> tag. |
HTML Line Breaks:
This tag is used for line breaks in the web page. It is represented as <br>.
TITLE Tag:
eg: <title> welcome to the site </title>
Horizantal Ruler Tag:
This tag is used to display the Horizantal Line in the web page. This tag is represented as <hr>. It is an empty tag which is also called as a Singled tag. We can write this tag as <hr/> Instead of <hr> </hr>.
Horizantal Ruler Tag:
This tag is used to display the Horizantal Line in the web page. This tag is represented as <hr>. It is an empty tag which is also called as a Singled tag. We can write this tag as <hr/> Instead of <hr> </hr>.
- Attributes:
- color: used to change color of Horizontal Line.
- size : used to change the thickness(in pixels).
- align : used to specify the alignment, default value is center.
- width: used to change width(value in pixels or %).
Eg: <hr color="red" align="right" size="10" width="50%"> </hr> or
<hr color="red" align="right" size="10" width="50%"/>
No comments:
Post a Comment