Working with HTML5 & CSS3(stuff.contrast.ie)
stuff.contrast.ie
Working with HTML5 & CSS3
http://stuff.contrast.ie/talks/newwebtech2010/
3 comments
There is a bit of bad advice in here. You would want to do
<ul>
<li>something</li
><li>something else</li
><li>yet another thing</li>
</ul>
This allows you to use display: inline-block. If you put each li on a separate line there will be a single space between the elements.Yes, it does. However, there are other, nicer ways of doing this. For example, you could use a comment that is broken over the line. Using tags like that is asking for trouble in editing, particularly if your code is shared.
But this advice was intended more generally. If you look at the code, and indeed the full source in the spec[1], you'll see that this is a coding style used for all elements; even elements that will never be rendered. It is ugly as hell, easy to break, and difficult for many people to parse.
That's why I recommended avoiding it.
1: http://www.whatwg.org/specs/web-apps/current-work/#the-secti...
But this advice was intended more generally. If you look at the code, and indeed the full source in the spec[1], you'll see that this is a coding style used for all elements; even elements that will never be rendered. It is ugly as hell, easy to break, and difficult for many people to parse.
That's why I recommended avoiding it.
1: http://www.whatwg.org/specs/web-apps/current-work/#the-secti...
Interesting article.
I wish he hadn't dropped "Why the $f not?" line. I'm not offended, but it comes off as unprofessional in otherwise well written content.
I wish he hadn't dropped "Why the $f not?" line. I'm not offended, but it comes off as unprofessional in otherwise well written content.
Previously anything that came out of W3C was more akin to something a company that didn't listen to its customers would produce but it seems like they broke that habit with HTML5. There are some technical details that are still up in the air (i.e. video codec -- but I'm not really sure what the status of that is) but one certainly good quality of HTML5 is that you have to be almost stupid to write non-validating markup.
Also, there are a lot of little things that they implemented that are really valuable to rich apps. For instance, custom data attributes -- which I wrote about a few months ago (herp derp, self promotion: http://bradhe.wordpress.com/2010/08/31/custom-data-attribute...) -- finally fixes the coupling (or decoupling, actually) issue that has been present in HTML + JS apps until now!