News for hackers. Stuff that matters.
Re:HTML5's time is back by grandalf on Thursday November 03, 2011 @11:26PM (#3194829)
Pardon the devil's advocate question, but to what extent is semantic markup (other than with microformats) relevant to today's web? I mean, how is it used by anyone? I've tried to use semantic markup and it's not really a very effective abstraction for many kinds of data and UX.
Re:HTML5's time is back by robin_reala on Friday November 04, 2011 @05:50AM (#3195492)
Ask anyone who accesses the web through a screen reader and they’ll tell you it’s extremely useful. Not to be flippant, but well structured markup allows a screen reader to:

* 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.

Re:HTML5's time is back by mattmanser on Friday November 04, 2011 @07:39AM (#3195662)
Hang on a sec, that's what CSS does for the sighted, we don't expect the HTML to tell the browser how to layout the page, so why are you expecting the HTML to be able to tell a screen reader how to present it.

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?

Re:HTML5's time is back by robin_reala on Friday November 04, 2011 @08:06AM (#3195716)
When you build a site with CSS you’re over-riding the browser’s built in stylesheet. If you don’t provide your own CSS then the site is readable without, because the browser lends basic visual meaning to semantic markup.

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.

[1] http://www.w3.org/TR/CSS21/aural.html

Re:HTML5's time is back by mattmanser on Friday November 04, 2011 @08:47AM (#3195816)
I know, although I disagree that almost any site without its css stylesheet is really readable, but the original question was how is semantic HTML useful.

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.

Re:HTML5's time is back by strickjb9 on Friday November 04, 2011 @10:19AM (#3196131)
HTML shouldn't need CSS + JavaScript to incorporate basic functions. The point of these new elements is to DEFINE semantics that we can take advantage of TOMORROW. This goes far beyond screen readers.
Re:HTML5's time is back by kiiski on Friday November 04, 2011 @08:10AM (#3195723)
The HTML doesn't tell the screen reader how to present the content; it just tells what the content is, and the screen reader then decides the best way to present it (web devs just aren't qualified to decide that).
Re:HTML5's time is back by davnola on Friday November 04, 2011 @06:57AM (#3195585)
To give just one example, microdata and RDFa (as well as microformat) contribute to Google search snippets, map location etc.: http://www.google.com/support/webmasters/bin/answer.py?answe...
Re:HTML5's time is back by grandalf on Friday November 04, 2011 @12:18PM (#3196609)
Microformats are the one case that does seem obvious/sensible to me.

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.