On Tue, 5 Oct 2004 14:50:49 +1000, Luke Moulton <[EMAIL PROTECTED]> wrote: > Recent discussions about building a footer with numerous linked items > styled as an unordered list has got me thinking about correct semantics > verses light code/css.
So far lightest code I've seen is achieved using semantic coding and CSS. > In using strictly correct semantics to mark-up content I think sometimes > we run the risk of developing over complicated and bloated code. > Building an inline, styled un-ordered list with appropriate css can add > a bit of bulk to your css. > > So on one hand there's smaller file sizes, uncomplicated CSS (with fewer > hacks) but imperfect semantics, and on the other there's perfect > semantics bloated CSS with a few hacks thrown in for good measure. > > Where does one draw the line? What are the alternatives? The only 'lighter' version I can think of is unstyled footer with links thrown in. Chances are big that you will want to style those links, so you will have some CSS. As for "bloated" CSS - I don't think it is appropriate word in this case. And don't forget - CSS is cached. In most cases n*9+9 eight extra bytes for unordered list are not critical, and usually there is a lot of code in other places to strip them off. I every byte counts and there are no more options left - why not to go with 'bare links' version. Regards, Rimantas ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
