Empowering CSS3
Christopher Schmitt ChristopherSchmitt.com http://twitter.com/@teleject Christopher Schmitt ChristopherSchmitt.com http://twitter.com/@teleject how do we go about solving our problems? we solve problems by realizing The Limitations and we realize that Our Experience limits our thinking
It’s Always a Plumbing Problem
Our browsers Limit our design
Test limitations to gain new experience HTML5+CSS3
Semantic Markup 91 http://www.w3.org/TR/html4/index/elements.html
United States of America
HTML 4.01 Transitional DTD:XHTML 1.0 Transitional DTD:
....
...
EXERCISE • Go to HTML validator at http://validator.w3.org/ #validate_by_input • Then type the following HTML (below) and hit validate:
Hello world
Relearning Syntax
• Attribute quotes “not really” required • UPPERCASE and lowercase HTML elements allowed • So is CaMeLcAse typing. • No more need to do self-closing tags like or
• Also, no more minimalization. So, this is okay:
- • Basically, everything that was bad from HTML4 in XHTML5 is good again. • Full circle, baby! DIV ID=”header”
DIV ID=”nav”
DIV ID=”section”
DIV ID=”sidecolumn” DIV ID=”article”
DIV ID=”footer”
• Marc Grabsanki says: • Article is unique content to that document • Section is a thematic grouping of content, typically with a heading - pretty generic • Aside is content that is tangentially related, like a sidebar div has no meaning whatsoever, so there is nothing semantic about divs ArtiCLE vs ASIDE VS SECTION
• Bruce Lawson says: • Aside is for something tangentially related to its parent element. Or, if a sibling to the main content, it can be used to make sidebars of navigation, recent comments, colophons, author bios etc. • Article is a discrete piece of content that could be syndicated - a blog post, a news item, a comment, a widget • Section can also contain articles. for example, you could have a page with a