CSS and HTML
By Admin 13th Sep 2011 5:36 AM, In
Cascading Style Sheet (CSS) is a single file that contains all the styling factors of a website such as layout, positioning, font, color etc. This file can be referenced as and when required by the HTML code. The basic purpose of this file is to separate the document content and document presentation. This makes it easy for the web developers and web designers to change their code or layouts without getting in each other’s way.
Advantages of Cascading Style Sheet (CSS)
- Less Code and Easy Maintenance: CSS are global settings. We define styles at a common place so that whenever any changes need to be made, to the styling factors of a page, we need not mess with the code every time! Because styles are defined by a common style – class, and the class is used at various locations, the actual written code is less and thus is easy to maintain.
- Speed: The sites using CSS load faster, because table layouts are not used in CSS. This means that they do not require as much memory and hence enables us to navigate faster from one page to another.
- Search Engine Results: With all the styling separated from the code, we are able to incorporate more content and reduce the code on a webpage. This presents the search engine crawlers with more content than code. This in turn increases the chances of a higher ranking in search results.
- Bandwidth: With CSS sheets stored externally, these files are requested only when a visitor requests for your webpage. Hence reducing bandwidth.
Cascade Style Sheet has it’s own advantages. It’s good to see many web developers preferring this style of coding. It serves multifold purposes. And everyone is happy – the developers, the designers, the SEO experts and the website visitors!
Image Credit: https://tinyurl.com/tgqalc4