CSS can be used to design and format the layout or the style of a web document. It can specify various features of a web page such as font size, font color, spacing, background color and more.
The keyword it use to declare a style is none other than the word style.
For example, to determine the font size of a certain section of a web page you can use <P style=”font-size:15pt”>
Let format the following sentence with style=”font-size:25pt”
<P style=font-size:25pt”>CSS is Great</p>
The actual display is shown below:
CSS is Great
So you can see the power of CSS. Font size is known as an attribute or property of the CSS. Another property is color. The following CSS will give the text a red color.
<p style=”color:red”>RED</p>
The actual display is shown below:
RED
And now you can combine both font size and color together. The structure is
<p style=”font-size:30 pt; color=blue”>I am a BIG BLUE</p>
I am a BIG BLUE
we will learn more later.