Inline, Embedded, External CSS part 1

Inline CSS



Using an inline style is one of the ways to insert a style sheet. With an inline style, a unique style is applied to a single element.

In order to use an inline style, add the style attribute to the relevant tag

The example below shows how to create a paragraph with a gray background and white text:<p style="color:white; background-color:gray;">
This is an example of inline styling.
</p>

Result:
The style attribute can contain any CSS property.

Comments

Popular posts from this blog

font-family part 1