Alignment: - It is used to set the alignment like i.e. left, right and center.

Syntax-      <left> …………</left>

<Right> ………………. </right>

<Center>……………</center>

                             Or

<Div align=”right”> ……………</div>

<P align=”right”> ……………</p>

<P align=”justify”> ……………</p>

 

Ex-             <left>Computer World</left>

<center> Computer World </center>

<right> Computer World </right>

Result-        Computer World

                                                          Computer World

                                                                                                Computer World

Heading Tag: - It is used to define the heading list of html document. There are six levels of heading (H1 to H6). H1 is the largest level and H6 is the lowest level of heading.

Syntax: -     <H1>…………………</H1>

          <H2>…………………</H2>

          <H3>…………………</H3>

          <H4>…………………</H4>

          <H5>…………………</H5>

          <H6>…………………</H6>

 

Ex: -            <H1>Quantum</H1>

<H2>Quantum</H2>

<H3>Quantum</H3>

<H4>Quantum</H4>

<H5>Quantum</H5>

<H6>Quantum</H6>

 

Result: -      Quantum

Quantum

Quantum

Quantum

Quantum

Quantum

 

Note:-                   <H1 align=“center”> QCA</H1>

<H1align=“right”> QCA</H1>

 

Paragraph and lines Break Tags

Paragraph<P>:- It is an empty tag which is used to change the Paragraph of the document.

Syntax: -     <P>

Ex: -           <p>

 

Break <Br>: - It is also an empty tag which is used to break the line between the documents.

Syntax: -     <Br>

Ex: -           <Br>

Adding comment: - It is used to add comment but comment is not display into the webpage.

Syntax: -     <!  …………message ………..>

Ex: -           <!  ……………computer ………..>

 

Address, Block Quote and Pre Tags

Address tag: - It is used to make text italic.

Syntax: -     <Address> ………………..</Address>

Ex: -           <Address> Computer </Address>

Blockquote: - It is used to add extra indents to the entire Paragraph from the left as well as the right.

Syntax: -     <Blockquote> ……………………………</Blockquote>

Ex: -           <Blockquote> ………………………………</Blockquote>

 

Pre tag: - It is used to display the text exactly in the same way as you typed it.

Syntax: -     <pre>……………………. </pre>

Ex: -           <pre>

                             Roll             Name                    Add            Course

                             1                 Raj                       Chapra        DCA

                             2                 Mohan                  Patna          Tally

                             3                 Rahul                   Delhi           DTP

                             </pre>

 

Result: -

                             Roll             Name          Add            Course

                             1                 Raj              Chapra        DCA

                             2                 Mohan        Patna          Tally

                             3                 Rahul          Delhi           DTP

 

Bold: - It is used to make the text bold.

Syntax: -     <B>…………………………… </B>

Italic: - It is used to make the text italic.

Syntax: -     <I>…………………………… </I>

Underline: - It is used to make the text underline.

Syntax: -     <U>…………………………… </U>

Strike: - It is used to create a line middle of the text.

Syntax: -     <Strike> …………………………. </Strike>

Ex: -           <Strike> Computer </Strike>

                             Or

          <S> Computer </S>

Result: - It is used to make the text subscript.

Syntax: -     <Sub>………………. </Sub>

Ex: -           H <Sub> 2 </Sub> 0

Result: - It is used to make the text superscript.

Syntax: -     <Sup>………………. </Sup>

Ex: -           4<Sup> 2 </Sup> 0

Result: -      420

Strong: - It is used to bold the text.

Syntax: -     <Strong>………………. </Strong>

Ex: -           <Strong> …………….. </Strong>

EM Tag: - It is used to Italic the text.

Syntax: -     <EM>………………. </EM>

Ex: -           <EM>……………… </EM>

HR: - This tag is used to insert a horizontal line on the page.

Align           - It defines the alignment of the line i.e. left, right and center.

No shade     - It prevents any shadings effect.

Size             - It defines the thickness of the line.

Width         - It defines the width of the line.

Color          - It defines the line color.

 

Ex: -           <Hr align=“center”size=“20”width=“50%”Noshade>

Or

<Hr align=“center”size=“20”width=“50%”Color=“Red”>

 

 Font Tag

Font Color: - It is used to change the font text color.

Syntax: -     < Font color=“color name”> ……………… </font>

Ex: -           < Font color= “red”> ……………… </font>

Font Size: - It is used to define the font size. There are seven levels of font size (1 to 7). 1 is the smallest and 7 is the largest level.

Syntax: -     <font size=“size”>………………… </font>

Ex: -           <font size=“5”>………………… </font>

Font Face: -It is used to define the font writing style.

Syntax: -     <Font face=“font name”> ……………… </font>

Ex: -           <Font face=“Monotype corsiva”> ……………… </font>

 

<font color= “Red” Size= “5” face= “Arial”>

…………………………………………………………………

…………………………………………………………………

</font>

 

Setting the Background Colors

Background Color: - It is used to set the background colors.

Syntax: -     <body bgcolor=“Color name”>

Ex: -           <body bgcolor=“blue”>

Background Wallpaper: - It is used to set the wallpaper in background.

Syntax: -     <body background=“path”>

Ex: -           <body background=“C:WINDOWSWebWallpaperAzul.jpg”>