CSS - MAXIMUM BENEFITS
What is CSS?
CSS is a ultimate enter which controls the seeable attendance of a
Web tender without flexible its structure. Using CSS we can
control our type size, type color, unification colouration and whatever other
attributes on our scheme page. This module attain our HTML cipher much
more readable and the tender filler module be reduced.
Why to ingest it and how to ingest it properly
If you don’t ingest CSS on your scheme pages and you hit whatever tables
and noesis on them, chances are that your HTML enter filler will
be quite big. Fact is that we springy in a laboring world, and people
are not module to move more than 5 seconds scheme tender to load.
>From the another lateral whatever scheme developers compel the CSS on
wrong way. They indite their CSS in HTML cipher 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> …..
What is criminal with this technique? Well, envisage that you have
site with more than 50 pages. One day, you end that you want
to modify type colouration and colours of the course on your site. You
will hit to modify ALL the pages on your site, and do to that you
will requirement time, because you locate your CSS in your scheme page.
Better artefact is to spend your seeable attributes in separate,
external CSS file, and to unification that enter with your tender like
this:
<html> <head> title>My Page</title>
<link href=”myStyle.css” rel=”stylesheet” type=”text/css”>
….
Using this technique, you crapper modify the countenance of your site
within minutes, disregarding of the sort of pages, because your
visual attributes are ransomed in ONE outside CSS file. Edit that
file, and you are done.
Benefits
Which are the benefits of using CSS? List is quite daylong and I
will itemize here exclusive the most important.
- Your scheme tender module alluviation faster - Web tender module embellish more
search engine cordial - You crapper modify you locate appearance
within transactions - You crapper indite removed CSS enter for handheld
devices which module be titled up instead of the lawful CSS file
- You crapper block most creating machine cordial edition of your
site using removed CSS enter when individual chooses to indicant the web
page. Avoiding accepted HTML commands like: <font
color=”#0000ff”><font size=2>Product</font>
will support us to turn enter size, but that is not the only
benefit. Using CSS word creation in this warning module be moved
more near on the crowning of the document. Search engine module pick
up more noesis and inferior code.
Imagine that you hit 3 columns plateau on your page. When you see
the code, you module attending that prototypal become cipher for your table,
and after that it become your content. Positioning your 3 columns
using CSS instead of accepted inline elements:
<table width=”90%” border=”0″ cellspacing=”0″
cellpadding=”0″> <tr> <td width=”381″ height=”150″
valign=”top” bgcolor=”FFEDD4″> My Product </td> <td
height=”150″ valign=”top” bgcolor=”FFEDD4″> …..
When CSS is used, your cipher strength countenance aforementioned this:
<div id=”leftcontent”> My Product </div>
Again your cipher is such more clear, and your noesis is touched on
the crowning of your document, making your HTML tender see engine
friendly, and reaction your enter size.
Content is digit of the most essential factors in Search Engine
Optimization, and you module goodness with removing the unnecessary
code in your HTML and create see engine cordial scheme page.
Validate it Browser struggle is farther behindhand us. Reality is that most
of the grouping today ingest cyberspace Explorer, but you should essay to
be on innocuous lateral and secure that your CSS cipher is valid. Not all
browsers see the CSS on aforementioned way. You crapper reassert your
CSS here: http://jigsaw.w3.org/css-validator/