HTML Style List | HTML Background Color Style | HTML Font Style

HTML Style


Define :

The HTML style attribute is used to add styles to an element , such as color, background color, font size, alignment ,position and more .

For Example :

Output :

HTML Style Attribute

The HTML style attribute has the following syntax like property,color,font size

 

 

 

Background Color

The background color is a CSS property.It defines the background color for an HTML element.

Example :

Output :

Text Color

The CSS color defines the text color of HTML element.

 

Output :

Fonts

The CSS font-family property like verdana, sans-serif ,courier defines the font to be used for an html element.

 

Output :

Text-Size

The CSS font-size property like px,pc,rem defines the text-size for an html element.

 

Output :