Friday, 14 March 2014

Begginer Formatting In Html.


Hi Friends The Second Chapter In Basic Html Is Basic Html Formatting. This Is A Very Important Part Of Html To Make Your Webpage Attractive. The More Attractive A Webpage Is The More Numbers Of Visitors It Attracts.

Q- What Are Attributes ?

A- Atrributes Are The Special Codes Which Modifies The Behavioures Of The Html Tags.

<Body Bgcolor="Color">

Body Tag Is Used To Define The Background Color Of The Webpage Using The Attribute Bgcolor="Color Of Your Choice". Example:- <Body Bgcolor="Red">

<Body Background="Path">

Body Tag Is Also Used To Define The Background Picture Of The Webpage Using The Attributes Background="Path Of The File With The Picture's Extension". Picture With The Extensions JPEG Should Be Written As.JPG. Example="C:\Photos\Sunshine.jpg".

<Hr>

Hr Tag Is Use To Draw A Horizontal Line. Hr Stands For Horizontal Rule. It Can Be Used To Start A New Part Of Any Document Or The Ending Of Any Paragaph Or Document.

<Font>

Font Tag Is Used To Modify The Color, Face And Size Of The Text. It Contains The Following Attributes:-
  1. Face-It Is Use To Change The Font Style.
  2. Color-It Is Used To Change The Font Color.
  3. Size-It Is Used To Change The Font Size.The Maximum Font Size Is 7.
Example:-<Font Size="6" Color="Red" Face="Monotype Corsiva">Text</Font>

<Basefont>

Basefont Tag Is Used To Modify The Color, Face And Size Of The Whole Document. It Contains The Following Attributes:-

  1. Face-It Is Use To Change The Font Style.
  2. Color-It Is Used To Change The Font Color.
  3. Size-It Is Used To Change The Font Size.The Maximum Font Size Is 7.
Example:-<Base Font="6" Color="Red" Face="Monotype Corsiva">

Keeping All Together:-

<Html>

<Head>

<Title>

My First Webpage

</Title>

</Head>

<Body Background="E:\Photos\Ymg Portal\Html Document\HTMLWallpaper.jpg">

<Font Face="Monotype Corsiva" Color="Blue" Size="5">

This Is My First Webpage.

<Br>

I Am New To Html And I Have Learned This All From The Ymg Portal Blog.

<P>

This Is My First Paragraph

</P>

<P>

This Is My Second Paragrah

<Hr>

<Hr>

This Is The Second Part Of The Html For The Html Beginners For Basic Formatting In Html.

</Font>

<Hr>

<Hr>

</Body>

</Html>


Output Of The Html Document:-              
                                                                                                







 


 

0 comments:

Post a Comment