How to Gain Maximum from CSS

by Hiroshi on November 10, 2008

in CSS

CSS is a simple file which controls the visual appearance of a web page without compromising its structure. Why to use it and how to use it properly. If you don’t use CSS on your web pages and you have many tables and content on them, chances are that your HTML file size will be quite heavy. Fact is that we live in a busy world, and people will not wait more than 5 seconds for web page to load. Some web developers implement the CSS on wrong way. They write their CSS in HTML code of the page, like this:

<html>
<head> 
<title>My Page</title>
<style>
A { font-family: Verdana; font-size:8pt; color:black; text-decoration:none } 
</style>
</head>
<body>some content</body>
</html>

Correct way is to link the external CSS file in the pages. i.e.

<link rel='stylesheet' href='css/styles.css' type='text/css' media='all' />

Related Posts

Previous post:

Next post: