The Web is constantly evolving. Think back to just a few years ago when the internet was full of websites with blinking, animated icons and background midi music … lots of people thought it was really great. Advance a few years forward and, although you still see those things from time to time, the web now contains video clips, rss feeds, sophisticated flash animations, highly interactive databases and, not many people are impressed with the way things used to be.
As the “ideas” about what a website should, or could do were evolving, designers were also striving to streamline the process of developing websites and to make them more efficient, logical, better looking, and predictable. What used to work in the early days of the web was no longer working the way web designers wanted or needed it to.
Cascading Style Sheets to the Rescue.
Cascading Style Sheets, also known as CSS, were introduced to improve the capabilities of web presentation. Prior to CSS, almost all of the html attributes that made up the “look and feel” of a web page were contained within the html on each page directly. This made web page code heavy and often quite clunky. By using Cascading Style Sheets, designers could separate the design elements from the content of a web page and thereby make the pages more efficient, more consistent, more streamlined, and easier to maintain and update.
Using CSS to layout a webpage is quite different from the “old fashioned” table layout and not all designers jumped on the CSS bandwagon. Even today, many designers still prefer to layout their web pages using html table-based design, the way just about everyone used to do it. However, the advantages to using a CSS layout for a web page heavily outweigh any argument given for using html tables.
Although we wouldn’t expect clients to know the intricate details of Cascading Style Sheets (and let’s face it, most clients don’t really want to know much, if anything, about it!), we do think that clients should be aware of the general advantages of using CSS layouts and how they can enhance their websites now and in the future by ensuring that their websites are designed using CSS layout.
Advantages to Using CSS for Web Layout
- Web pages will load faster
No one likes waiting for web pages to load and if a page takes too long to load, many users will often simply leave. Generally, CSS based page layouts require much less html coding than table-based layouts. This usually results in the pages loading more quickly. Moreover, an externally linked CSS file, once loaded the first time, does not have to be reloaded and re-read on every page. When using CSS for layout, browsers can cache (keep in memory) all the formatting and stylizing for your pages instead of having to read and interpret each style tag on every page. This can also result in much faster page loading times! - Visual consistency across pages
One of the strengths of using Cascading Style Sheets in a website layout is that design elements can be defined in a single place (the css file) and will automatically be applied to those elements on the website. No longer does each individual page have to be updated to reflect the new style. This makes for much greater consistency throughout the site. With CSS, you do not have to re-code every element on every page (and check and double check that you didn’t miss some pages!), styling updates are automatic and site-wide. - Accessibility and usability
CSS allows for more interactive style elements, including font size and line heights, which can make web pages more usable for people with disabilities. Web pages that use CSS layouts are also often more compatible with more browsers. What’s more, designers can create specific css files specifically for printing, or mobile devices, as well as the standard computer screen, thereby making websites truly multimedia applications. - CSS is better for SEO
Since pages load faster with CSS Layouts, search engines can more easily crawl through the site. Also, since there is often less coding on the pages and because CSS separates the design elements from the content, it is easier for search engines to determine what a page is about and to index it appropriately. Finally, search engine spiders rely heavily on structural organization (heading (h1, h2, h3, etc) tags) and CSS allows designers to design those elements as needed and to place them within the page layout in a way that is most beneficial for search engine optimization. - Future redesigns will be more efficient (read, less expensive!)
Since CSS layouts separate design elements from content, once a site has been designed using Cascading Style Sheets, making changes to the design is often easier because fewer files need to be updated (often only the css files rather than every page on the website!) This makes for faster and less expensive design changes in the future. Set your site up using CSS now and you can have easier, more efficient and quicker updates in the future.