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:-
- Face-It Is Use To Change The Font Style.
- Color-It Is Used To Change The Font Color.
- Size-It Is Used To Change The Font Size.The Maximum Font Size Is 7.
<Basefont>
Basefont Tag Is Used To Modify The Color, Face And Size Of The Whole Document. It Contains The Following Attributes:-
- Face-It Is Use To Change The Font Style.
- Color-It Is Used To Change The Font Color.
- Size-It Is Used To Change The Font Size.The Maximum Font Size Is 7.
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