While not a web standard in the sense of a W3C standard, CSS is becoming, if not already, a layout standard. For good reasons too. The "old" method of tables, still in use of course, should be avoided if at all possible, and for lots of good reasons. Tables do a lot of things that, more than 5 years ago made life easier, but they didn't make them correct.
Tables take longer to load than CSS, in many ways. For one, the code in and of it self takes longer. Secondly if you are using a CSS style sheet for more than one page, the sheet doesn't need to be loaded again to go in between pages. There is no need to have miles of code in your pages too, it is much easier to read CSS than it is to sort through tables.
Another great benefit of having one style sheet for a bunch of pages is that changing your layout on every page can be done simultaneously. If I change the parameters of one div tag is goes through the entire site. If you used tables, you would have to change each and every page, what a pain.
Going back to our W3C post, it's easier to write valid CSS once you get the hang of it. Part of the reason tables are bad is that they don't play well for web accessibility. This means that for the blind, who use web page readers, elements on the page don't come out verbally, as they may appear visually to us. This is especially important to educational and government institutions, but that certainly doesn't mean that it shouldn't be important to you too. Especially if your business web page isn't web accessible, you don't shut your doors to blind people, do you? Of course not.
There is a downside to CSS though. It doesn't render the same in Internet Explore as it does in Firefox. Which can create quite a headache for web designers sometimes. There are "hacks" for these issues, most notably perhaps is the box model hack, but hacks are hacks for a reason. It's a cheap way of coding and it also isn't web accessible.
If you're looking to learn about CSS, or more information I suggest you check out these pages:
CSS Zengarden
W3C Schools CSS Tutorials
Thursday, June 14, 2007
Understand Web Standards - CSS & Tables
Posted by
Eric
at
10:28 AM
2
comments
Labels: css, Understanding Web Standards, W3C
Wednesday, June 13, 2007
Understanding Web Standards - W3C
The beauty of the web is that anyone (with a little knowledge and/or money) can have a web page. The first step in claiming your spot on the web is to claim a domain name. Then you code the page. Just like any other job, there is a wrong way and a right way.
For many occupations, such as lawyers, doctors, and teachers there are boards, such as the state bar association, medical boards, and education boards, that certify that a person or entity is entitled to practice.
There is a similar board for web pages, the W3C, or World Wide Web Consortium. Unlike the previously mentioned boards, they don't have any real power except to say that the code on your site doesn't meet standards. Instead, it relies on social pressure. It is similar to how the MPAA works. Technically, no movie needs to receive a rating, and it could be put into theaters with no guidelines whatsoever. What stops this from happening is that movie studios, the people who invest money in a movie, won't publish a movie if it doesn't receive a rating. Which in turn means, chances are conglomerate theaters, such as Hollywood Theaters won't play it, and you probably won't see it.
This peer pressure of sorts doesn't happen on the web to the extent it does in the movie industry. It comes into play in different ways, however. One frequent question that comes up around the design of websites is, "How do I increase my rank in Google?" While there are a variety of ways, one of them is having good coding practices. Also, most employers ask that their web designers are knowledgeable about them, if not comply with them as much as possible.
It can be difficult to find a page that validates with no errors to W3C standards. For instance, even Google, the simple logo and white page search engine, shows 51 errors. By comparison 10 ink studios shows only 9. Many of the web pages we design have less than that. Our CSS (cascading style sheets) validate 100% for all of our clients.
It's something that most people aren't aware of, but starting with a strong foundation is a great start to having a great web page. If you would like to test your web page for W3C compliance you can check out their validation page.
Posted by
Eric
at
10:35 AM
0
comments
Labels: Understanding Web Standards, W3C