HTML Introduction
Menu
HTML Forms
Menu
HTML Graphics
Menu
HTML Media
Menu
HTML API
Menu
HTML Styles
The HTML style attribute adds style to an element, such as color, font, size, and more.
The HTML style attribute has the following syntax:
<tagname style=”property:value;”>
The property is a CSS property. The value is a CSS value.
Example
I am normal
I am red
I am blue
I am big
This is a paragraph.
This is a text
This is a text
Centered Heading
Output:
I am normal
I am red
I am blue
I am big
This is a paragraph.
This is a heading
This is a heading
Centered Heading