Advantages of CSS
CSS allows us to declare rules that tell the browser how we want our document to look to users. We can make certain HTML tags look a certain way.
Say we want anything contained within a <font> tag to look a certain way, we can use CSS to tell the browser what font to use, what size, what colour, whether we want it underlined, and on and on.
So rather than typing:
<font size="5" color="red" face="Tahoma">text</font>
Every single time, we can tell the browser to make anything in a font tag, red, and in tahoma text, it saves alot of typing, it makes things so much easier.
CSS isn't limited to this, we can use it for positioning elements, background colours, to help make our tables look more attractive, to make our links more attractive, the list goes on, there are a few ways we can implement CSS, firstly let me introduce you to the style attribute.
|