learning to love html and cssPresentation Transcript
learning to love html(for grumpy developers) @jongalloway
hi!http://weblogs.asp.net/jgalloway
why? falling in love the honeymoonmarriage counseling
why?lessons from javascript
falling in lovewhat does a document offer? structured content not design not logic
why?it’s what we share with designers with our usersthe only code you write that the world sees
falling in loveavoiding the cheap floozycode smells difficult to maintain trapped supporting browsers (and versions) reliance on grids / frameworks / tools
falling in lovelove it for what it is… a document format
falling in lovedocument vs. application tools developersbut you deliver documents
true love♥ html
the honeymoonjoy!clean code (occupy your codebase!)
the honeymoonjoy!clean code is flexible (story time)
the honeymoonjoy!adaptive layout
the honeymoonjoy!seo: a structured document is machine readable
the honeymoonclear communicationsemantic markup is easier, cleaner asp.net templates
the honeymoonselectors get so easy! css jquery testing$(section.mentions header img).hide()
marriage counseling
marriage counselingyour html as an api separation of concerns smoothly factored pieces agree
marriage counselingbrowsersstop fixating on browsers you are not your browser your browser doesn’t matter to users land of a thousand browserscommon ground resets? okay… normalize is better! http://necolas.github.com/normalize.css/
marriage counselingprogressive enhancementbuild for your main use case enhance using feature detection
marriage counselingprogressive enhancementshim for downlevel modernizr conditional comments content fallback