| |
Make Your Website Efficient With CSS Code
It may take you a minute to learn how to use css code but it is worth it. CSS (cascading style sheets) is efficient and it saves time when modifying your site. It may seem complicated but it's not -- learn the basics and before you know it building your website will be a snap!
CSS information can be obtained from various sources. Style information can be either attached as a separate document or embedded in the HTML document. Multiple style sheets can be imported.
Beside giving you complete control over the look and feel of your website css code allows you to separate the design phase from the content part of a site. Also, site-wide alterations can be made by editing one document.
There's a Google benefit to coding with style sheets too -- it only has to look at your content instead of the many tags found in a non-css website. More importantly this type of website will rank more favorably with the Google search engine.
- Some Advantages of Using CSS:
- More control over the appearance of your site.
- File sizes become smaller because less HTLM code is used.
- Your pages appear the same on all platforms and browsers.
- It makes web pages quicker to download.
- CSS site have better search engine rankings.
- They are easy to adapt to mobile phones, PDAs and web TV.
- CSS sites are more accessible to users with disabilities.
- Style Sheet Sources:
- External stylesheets, i.e. a separate CSS-file referenced from the document.
- Embedded style, blocks of CSS information inside the HTML document itself.
- Your pages appear the same on all platforms and browsers.
- Inline styles, inside the HTML document, style information on a single element, specified using the "style" attribute.
- Steps to Validate CSS:
- Go to www.w3c.org -- the World Wide Web Consortium
- Select the CSS Validator on the left side of the page
- Enter your web address in the address box

Return from CSS Code Guide.

|