Skip to content
Forum Navigation
You need to log in to create posts and topics.

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>