HTML Styles - E-Commence Website Development | SEO Experts | Wordpress Development | Today Infotech

Thursday, 3 May 2018

HTML Styles

Example

I am Red
I am Blue
I am Big

he HTML Style Attribute

Setting the style of an HTML element, can be done with the style attribute.
The HTML style attribute has the following syntax:
<tagname style="property:value;">
The property is a CSS property. The value is a CSS value.
You will learn more about CSS later in this tutorial.

HTML Background Color

The background-color property defines the background color for an HTML element.
This example sets the background color for a page to powderblue:

Example

<body style="background-color:powderblue;">

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>

No comments:

Post a Comment