Documente Academic
Documente Profesional
Documente Cultură
Daniel M. Frommelt
Sean Sieg
University of Wisconsin - Platteville
CSS Benefits of Web Standards
Presentation and documentation are online @
http://www.uwplatt.edu/~web/webstandards
CSS Benefits of Web Standards
• Concept of Web Standards
• Concept of DIV “skeleton” structure
• Concept of CSS “skins” markup
• Reasons to make the switch
Web Standard Basics
“Web Standards?”
http://www.w3.org
Web Standard Basics
http://www.webstandards.org/about/
Web Standard Basics
Table Design
• Tables can build a nice layout
• Tables are predictable
However,
• Tables bloat the code
• Can we eliminate tables?
DIV “skeleton” structure
Table Purpose
“Tables should not be used purely as a means to
layout document content as this may present
problems when rendering to non-visual media.
Additionally, when used with graphics, these tables
may force users to scroll horizontally to view a
table designed on a system with a larger display.
To minimize these problems, authors should use
style sheets to control layout rather than
tables.”
http://www.w3.org/TR/html4/struct/tables.html#h-11.1
DIV “skeleton” structure
DIV Design
Use DIVs to create the skeleton of the page.
• There should be no display-specific
information in the XHTML
• The Goal: separate the information from
the layout / presentation of the page
• Layout is entirely controlled by CSS
DIV “skeleton” structure
DIV Design
Identify major sections of the page
– Masthead (Logo and Title)
– Menu
– Content
– Search
– Footer
Don’t overuse the DIVs!
Don’t worry about positioning in the XHTML!
Current Topics
DIV Structure?
• Learning curve of DIV
• WYSIWYG Editors
CSS “skinning”
Skinning Concept
• The skin is the design placed over the
skeleton structure
Skinning Concept
• Like a cell phone, web pages can have
“face plates” (skins) that are
changeable
• The CSS skins have nothing to do with
the XHTML markup
• External CSS file
• Easily modifiable
• Faster Redesign
CSS “skinning”
http://www.csszengarden.com
Emphasis on Information
In 1995, Al Gore coined the phrase:
“Information Superhighway”
NOT
“Design Superhighway”
http://www.nortropic.com/lis341/cgold/superway.html
Reasons to follow Web Standards
Emphasis on Information
• Web is about delivering information
• Design must be secondary
• You cannot control what user agent will
open the page, so you must be ready
• Backward and forward compatibility is
essential
Reasons to follow Web Standards
Backward Compatibility
• Compliant with older browser without
having to make a separate set of pages
Forward Compatibility
• More compliant user agents get better
designed / presented information
Bandwidth Savings
Using web standards saves on bandwidth
• Code reduction with limited markup
provides cleaner and simpler code
• CSS files are cached
Reasons to follow Web Standards
Slashdot Example
Slashdot is a well known site:
• Copied the index on July 22, 2003
• HTML 3.2 code
• Table driven design
Reasons to follow Web Standards
In Conclusion
“Don’t Panic”
CSS Benefits of Web Standards