Styles
HTML provides the option to style your elements adding color, changing the size, the alignment or the font of a text and much more. The way to do this is by using this attribute: style.
Let's use the style attribute:
This is a paragraph in red color.
This is a paragraph in green color.
This is a paragraph in blue color.
The result:
This is a paragraph in red color.
This is a paragraph in green color.
This is a paragraph in blue color.
Let's change the size of the sentence below:
This is a heading
This is the same heading with a changed size
The result:
This is a heading
This is the same heading with a changed size
You can also change the font of the text:
This is some centered text
The result:
This is some centered text