Learn CSS

color

The color property sets the color of the text.

<h1 style="color:Tomato;">Hello World</h1>

Example:

Example of the color property

More information at w3schools

background-color

The background-color property sets the background color.

<h1 style="background-color:DodgerBlue;">Hello World</h1>

Example:

Example of the color property

More information at w3schools

font-size

The font-size property sets the font size.

<h1 style="font-size:80px;">Hello World</h1>

Example:

Example of the color property

More information at w3schools

margin

The margin property sets the outer space of an element.

<h1 style="margin: 25px">Hello World</h1>

Example:

Example of the color property

More information at w3schools

border

The border property sets the border of an element.

<h1 style="border-style: solid">Hello World</h1>

Example:

Example of the color property

More information at w3schools

Download PDF

Download PDF from CSS section