My Blog List

Basic HTML tags

Basic HTML tags
1. Body tag :
Body tag contain some attributes such as bgcolor, background etc. bgcolor is used for background color, which takes background color name or hexadecimal number and #FFFFFF and background attribute will take the path of the image which you can place as the background image in the browser.
<body bgcolor=”#F2F3F4” background= “c:\amer\imag1.gif”>
2. Paragraph tag:
Most text is part of a paragraph of information. Each paragraph is aligned to the
left, right or center of the page by using an attribute called as align.
<p align=”left” | “right” | “center”>
3. Heading tag:
HTML is having six levels of heading that are commonly used. The largest heading tag is <h1> . The different levels of heading tag besides <h1> are <h2>, <h3>, <h4>, <h5> and <h6>. These heading tags also contain attribute called as align.
<h1 align=”left” | “right” | “center”>. . . . <h2>
4. hr tag:
This tag places a horizontal line across the system. These lines are used to break the page. This tag also contains attribute i.e., width which draws the horizontal line with the screen size of the browser. This tag does not require an end tag.
<hr width=”50%”>.
5. base font:
This specify format for the basic text but not the headings.
<basefont size=”10”>
6. font tag:
This sets font size, color and relative values for a particular text.
<font size=”10” color=”#f1f2f3”>
7. bold tag:
This tag is used for implement bold effect on the text
<b> ……. </b>
8. Italic tag:
This implements italic effects on the text.
<i>…….</i>
9. strong tag:
This tag is used to always emphasized the text
<strong>……….</strong>

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

dg3