CSS: Add some styleeee 'baby'


CSS creates the magic of web pages. Want to make your links light up when you hover over them? BOOM! CSS! Want to add a border and change the font? BOOM! CSS!

CSS stands for 'Cascading Style Sheet'. In layman's terms, it let's you add style to elements. There are three ways of applying CSS:

1) Inline: You put the style within the tag of the element.

2) Block: You put the style in <style> tags, and it applies to all elements of that type within the page.

3) External: Your CSS is contained in an external file, and applies to all elements of that type across all pages that link to the style-sheet.

We are going to look at the pro's and con's of using each, and what you should use each one for.