Pages

Introduction about the Structure Tag


 HTML allow you to use the structured tags which help provide general functionality to a web page .It used to given the structure to a document .There are some tag which used in structure of html .

<P> Tag :
 
This tag is uded to start a paragraph from a new line .This tag is also used to in  a line break with an additional space .you can write the text in between <p>  </p>.there are also some attribute used in <p>

<P align =”LEFT “ | ”RIGHT” “ | “CENTER”> some text……….</p>

LEFT: this can display a left aligned paragraph

RIGHT: this can display a Right aligned paragraph

CENTER: Display a centrally aligned paragraph

The <U> tag

This tag is used to display the underline of the Text.

Syntax:  <U> this is the example of u tag </u>

The <EM> Tag :

This tag is italicizes the text that it contains.

Syntax: <EM> this is the example of <em> tag </EM>.

The <STRONG > Tag :

The <STRONG > Tag  is used to display the bold Text .

Syntax: <STRONG> Write some text</STRONG>

The <SUB> Tag:

The <SUB> Tag shows the text as a subscript. Subscript implies that the text is displayed in a size smaller than the normal size  and is positioned slightly below the baseline of the normal text.

Syntax: Hello<SUB> World</SUB>

The <SUP> Tag
This shows the text as a subscript. Subscript implies that the text is displayed in a size smaller than the normal size  and is positioned slightly above the normal body text .

Syntax: Hello<SUP> World</SUP>

The <CENTER> Tag

This tag enable you to display the various objects such  as text and image in center of the web page

Syntax: <CENTER> This is the example of center tag </CENTER>

The <FONT > Tag

 This tag enable you to configure the various properties of the text to be displayed on a web page such as style ,size and color .there are some attribute is

Size—This is used to set the size of Text .The default size of the font is +3

Color—This is set the color of text .The default color is black

Face-  This can set the font style  of the text .The default value of the FACE attribute is Time New Roman.


Program of Structure Tag

<html>
<head>
<title>this is first program of structure tag</title>
</head>
 <body bgcolor="yellow" >
<p>hello this is the paragraph  tag program   </p>
<EM> This is used to display the italic font style</EM>
<STRONG >This is the strong font  example </STRONG>
H<SUB>2</SUB>O
O<SUP>2</SUP>
<Font Color="red" size ="20">hellooo this is the font example </Font>
</body>
</html>


                             

0 comments: