HTML5's time is back
lists.w3.org
lists.w3.org
This is how I hear W3C announcements on such things:
"A specialist committee of 500 have reviewed a sample of so-called 'internet sites' as found on the so-called 'internet'. We have noticed that often times people like to have so-called 'headers' and 'footers' in their website. We have decided then that in your best interests that we have officially sanctioned a <header> and <footer> tag. Thank you, thank you. We also have noticed that occasionally people put times and dates in their web pages. Therefore we have sanctioned a <date> tag for your convenience. We are glad to contribute to the evolution of the web."
It is so arbitrary and detached from real world web development. This isn't 'bringing the web forward' in any sense. I don't know what the answer is but it certainly isn't this.
By having an agreed upon structure you allow the internet to get smarter. Data mining, search engines, usability, etc...
E.g <phone> tag that is always expected to have a phone number. That way when it's rendered on certain devices it will always have a phone number that can be interacted with.
Sure you can achieve that now with text parsing but there's better ways to evolve the web and that's what standards are for and the introduction to new elements that are semantically accurate.
* Emphasise headings
* Allow users to skip past header sections automatically
* Ignore information unrelated to the content (aside sections)
* Allow users to navigate by heading structure
* Voice certain parts differently - links are an obvious candidate, but screen readers could put on different voices for quotes
* Etc etc etc.
Semantic web is suppose to elicit meaning from content, not presentation.
The whole concept of semantic markup is extremely fishy to me. On the one hand you're supposed to remove presentation directions but on the other it's supposed to give presentation clues to screen readers?
Think of screen readers as having internal styling. Links are read in a different voice because the screen reader is applying a default audio style to the page.
Audio styling is part of CSS2.1 [1] but isn’t widely supported or widely written (classic chicken/egg problem). If you want to you can (at least theoretically) over-ride a screen reader’s default presentation of your markup.
If usability is the only answer and it's doing precisely the opposite of what semantic HTML is supposed to achieve, namely separation of content and presentation, it appears to me that we've not really decided what semantic HTML is, it just sounds kinda cool and has a happy side effect of making it easier for screen readers to parse.
So many of these new tags seem too narrow, a victim of the old fashioned thinking of the w3c where everything, to them, is still a document.
Why use article instead of div? Will it really make mining easier or will you get loads of false positives? If my site creates hourly weather reports, are they articles? Why can't I define my own tag of weatherreport? Is there any point?
To quote ryan's original comment:
This isn't 'bringing the web forward' in any sense. I don't know what the answer is but it certainly isn't this.
It would seem to me that decentralized, ad-hoc microformat micro-standards would make more sense than a slow, bureaucratic process. The web will adopt good ideas, useful semantics, etc., so I don't really see the benefit of a 5+ year process of introducing a few new tags.
For example, pre-HTML5 sites often use a variety of <div id="head">, <div id="heading">, <div id="header">, etc. If each website is a separate entity that's fine, but if we have a longer term goal of creating some kind of global project - a programmable, mashable, indexable web - it's easier with a pre-agreed vocabulary.
I agree there may be a better way to do it and tag names could be taken to far, but with iterative development we'll get something that works and can be used by everyone (which is better than a perfect solution that never leaves the drawing board), IMO.
This wouldn’t work so great if every website used different headline tags.
It reminds me of the battles about CSS vs Tables for layout where screen readers were always wheeled out as an argument for not using tables. Expect that all the shipping screen readers seemed to cope fairly well with tables.
(There are many ways in which your markup can break screen-readers but the issues are often more subtle and complex than 'use this tag or that tag' and require someone to actually test in a specific screen reader)
It’s pretty cool actually: You can rotate with two fingers to switch between different ways of navigating the page: headline to headline, link to link, container to container, line to line and so on.
I suggest you try it out when you have the chance. (If you want you can test out HN to see how the experience here could be significantly improved if headline tags were used correctly.) Here is a short video if you can’t try yourself: http://www.youtube.com/watch?v=rxlxx6RXbs8
Do you really think accessibility advocates were asking everyone to correctly use headline tags for fun?
Accessibility is an important part of HTML and the Web itself, so in that sense this sort of thing is most certainly contributing to the evolution of the Web.
I'm sure there are readability-like algorithms to figure this out, but I'd also imagine that they're not 100% accurate and need hints from the page's creator from time to time (just like readability).
Right now, if you're a developer wanting to display dates and times in the user's timeline you have to write custom JS, but if encoded as <time> this job could be done by standardised JS libraries, widely distributed browser extensions or even browsers themselves.
Similarly, users could set their browsers to always (or just on request, e.g. as a contextual pop up) display times in 24h system or in their local non-gregorian calendar, which would help especially children or people with less education to understand more of the web.
I feel the same way. Tags have always been, until recently, only added when a new behavior was to be implemented (ex: canvas, video, etc).
We have pretty much worked out how to get stuff done, it's time to start harnessing the results and start reporting on what is out there.
Classifying the information can only be a good thing.
Not really. <th> versus <td> comes to mind.
- Why do keep the redundant <a> element while we can add the href attribute to all elements?
- Why do keep <br> while we can generalize the line structure via <nl>? (NB: I'm not sure about the exact element name)
Is removing <time> in favor of <data> really different from these statements?
1) How do I provide data in a meaningful, semantic, machine-readable format?
2) How do I display data in a web browser, on a phone or in print? Do I use columns? What type of navigation options should I provide to the user in this instance?
XML solves (1). XSLT/HTML (as a UI layout description format only) can solve (2).
Attempts to merge the two concepts together will end in certain failure.
There's a saying about the perfect being the enemy of something, can't remember it though.
You have until next Tuesday to put the <time> element back in the spec. If you don't, we'll do it for you.
Lots of love,
HTML WG Chairs
I respectfully request that the <time> rollback happen at 2am on Sunday.
http://lists.w3.org/Archives/Public/public-html/2011Nov/0012...
(Probably only funny if you have had to do timezone handling in your code before)