Basic Tags

 A container tag has both the start and the end tag. The text or the graphic is inserted inside the beginning and end tag of the container tag. For example: <body>This is a container tag</body>. 

The <BODY> tag here is a container tag which has both the beginning and the ending tag and the text in between both the tags.

The empty tag is a stand-alone tag. This implies that such a tag has beginning but no

ending tag. For example: The <BR> tag is used for adding one line break. Such a tag does

not need an end so as to tell the browser, that end of line break has come because there is

no need. Such a tag is called empty tag. HR is another empty tag. This tag is used to insert

a horizontal rule on the web page. Comment tag is also an empty tag. This tag is ignored

by the browser. This tag is used to increase the readability of the HTML source code. With

this tag, you can insert a description about a command. This is written as : <!--, followed

by description or remark on a command, followed by -->. For example: <!-- Hello -->

<BODY>…</BODY>

The second section of the webpage begins with the <BODY> tag. This defines the visible

section of the document. It has a number of attributes which controls the overall appearance

of the document. The attributes that are used with BODY tag are listed :


Attribute of the <body> tag  ------->    Description

BGCOLOR    ------->           The background of the webpage is displayed with a color that has been                                                      taken as value by this attribute.

BACKGROUND  ------->     The background of the webpage is displayed with an image whose address                                                is taken as value by this attribute.

TEXT  ------->                        Specifies the color of the text in the document.

LINK  ------->                         Defines the color of the link in the document

ALINK  ------->                     Defines the color of the active link in the document

VLINK  ------->                    Defines the color of the visited link in the document

Formatting Elements

In a web page, the text is an important component especially when there is no picture

or graphic. It becomes therefore necessary to change the style of text at every paragraph,

so that they become presentable. There are a number of tags that help you to format the

text.

 Heading Tags

Heading tag is used to display the heading or the main topic on the web page. This tag

varies from H1 to H6. This is a container tag. The heading tag <H1> shows the heading

with the largest font size. As you increase the number in the heading tag, the font size

goes down as shown in the example given below:

<H1> This text is in largest font.</H1>

<H2> This text is in larger font.  </H2>

<H3> This text is in medium large font. </H3>

<H4> This text is in medium small font. </H4>

<H5> This text is in smaller font. </H5>

<H6> This text is in smallest font. </H6>




No comments:

Post a Comment

Overview of HTML

                                          Overview of HTML HTML is the standard markup language for creating Web pages. What is HTML? HTML s...