HTML Paragraphs

The HTML style attribute is used to add styles to an object, such as color, font, size, and more.

Example

I am Red

I am Blue

I am Big



The HTML Style Attribute

To set the HTML feature style, it can be done with a style attribute.

<tagname style="property:value;">


Background Color

The CSS-background color scheme defines the background color of the HTML object.

Example

Set the background color for a page to powderblue:

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

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

</body>