HTML Style

The style can change the appearance of the element.



The style can change the appearance of the element.

Style is one of the attributes of an element. This attribute can modify and enhance the appearance of that element.
For example, you can specify the background color of that element. To work with this attribute, you must learn the CSS's valid properties.
To use the style, you must first add the style attribute to the element.
Then add the properties according to the following pattern.

<tag style="property1:value1 ; property2 : value2; ...">Element Content</tag>
View in Code Editor

Writing style instructions is based on the rules of the CSS. Which we will explain in the CSS section.

<< : HTML Comment HTML ID Attribute : >>