You are not logged in.

#1 2015-09-09 06:49:58

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Styles Of HTML:

Styles Of HTML:


Example:


style="property:value"
<body style="background-color:(Colour name)">
Example:
<body style="background-color:Blue">
<body style="background-color:Red">

Summary:


☛ Style attribute for styling HTML elements
☛ Background-color for background color
☛ Color for text colors
☛ Font-family for text fonts
☛ Font-size for text sizes
☛ Text-align for text alignment

Using Method:


Now you should try these styles by yourself. Every style is given with an example. Globalguideline.com is here for your help if you feel any problem in using these HTML styles then feel free to ask any question.
If you have any questions then comment below.
Here is HTML style tags with examples.

Heading Styles Method:


<h1 style="property:value">This is a heading</h1>
Example: <h1 style="color:blue">This is a heading</h1>

Fonts:


<h1 style="property:value">This is a heading</h1>
Example: <h1 style="font-family:verdana">This is a heading</h1>

Text Size:


<h1 style="property:value">This is a heading</h1>
Example: <h1 style="font-size:300%">This is a heading</h1>

Text Alignment:


<h1 style="property:value">Centered Heading</h1>
<h1 style="text-align:center">Centered Heading</h1>

Paragraph Styles Method:


<p style="property:value">This is a paragraph.</p>
Example: <p style="color:red">This is a paragraph.</p>

Fonts:


<p style="property:value">This is a paragraph.</p>
Example: <p style="font-family:courier">This is a paragraph.</p>

Text Size:


<p style="property:value">This is a paragraph.</p>
Example:
<p style="font-size:160%">This is a paragraph.</p>


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-09 06:49:58

Advertisement
Ads By Google

Re: Styles Of HTML:



Board footer