Settings

Theme

The ﹤main﹥ element

html5doctor.com

164 points by thomasbachem 12 years ago · 92 comments

Reader

SCdF 12 years ago

Has anyone used all of the HTML5 tags in anger? I've tried a couple of times to build something fully "semantic". I struggle to create something that looks good semantically (ie just reading the HTML) and is also laid out on the page in the way I wanted it to be.

There seem to be lots of situations, even in just mildly complicated web pages, where you need to write HTML code solely for graphics / layout reasons that completely breaks the idea of having a purely semantic document.

In the end it just seemed much faster and cleaner to be more flexible with those various structures and to give up on the whole "semantic" document ideal and smash divs around.

I'm ready to fully accept that this is the tables->css revolution all over again and I'm just crap, though, if that's the case.

  • hpaavola 12 years ago

    I think that CSS is the biggest failure here. Let's say I have a blog, so for article page markup should be something like this:

        <html><head></head><body>
            <article>lorem ipsum</article>
            <nav></nav>
            <form>search</form>
            <footer></footer>
        </body></html>
    
    That way screen readers, search engines, etc will get the important stuff first and less important stuff afterwards.

    But since the common way of presenting blog is more like this:

        <nav></nav>        <form>search</form>
        <article></article>
        <footer></footer>
    
    I either have to do some hacky position:absolute things, crazy floats with negative everything, or just reorder the markup. Crazy and hacky is not fun to maintain, so I have to reorder the markup. That's because CSS is made for changing fonts and colors, and not for layouts.
    • jbri 12 years ago

      Flexbox[1] addresses the issue you're talking about - of course, browser support is still a little lacking (No support for IE9 or below, and IE10 doesn't conform to the current spec).

      [1]: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexi...

      • nyrina 12 years ago

        In other words, it's useless for now, and for a few more years.

        God, I wish IE 8 wasn't the latest thing on XP (Still a lot of users on windows XP) and that new features weren't added only in major releases that happens rarely for Microsoft.

        Rarely, that is, compared to other vendors on the market.

        • eli 12 years ago

          I give Google a lot of credit with how they set up Chrome. The first thing they built out was a really nice auto-update function.

    • terabytest 12 years ago

      I think you should try using WAI-ARIA standards[0] instead. That way you can keep your structure the same and give screen readers and such a better description of what's going on in your page.

      [0]: http://www.w3.org/WAI/intro/aria

      • guyguyguyguy 12 years ago

        WAI-ARIA support is abysmal, not only does it vary between screen readers but also between various browsers using the same screen reader.

    • tuxracer 12 years ago

      Does anyone know of any specific screen readers that actually take semantic HTML tags into account? Or is this just a theoretical thing? It would seem to me if screen reader software relied on authors of every random site to properly use semantic markup they wouldn't be in for a good time.

    • eksith 12 years ago

      Actually, you can have nav inside article and still get the important stuff.

        <html>
        	<head></head>
        	<body>
        		<article>
        			<nav></nav>
        			<form></form>
        			<main></main>
        			<aside></aside>
        			<footer></footer>
        		</article>
        	</body>
        </html>
      
      You can additionally include a "skip to content" link up top.
      • hpaavola 12 years ago

        But that is not was I was looking for. In your example navigation is the first thing in the markup, when content should be the first thing. Also, navigation does not belong to article, it belongs to site. And the same goes for footer.

        And those skip to content -links just the kind of hack we should not have to do. There should not be anyhting before the content, markup-wise.

        • eksith 12 years ago

          Not necessarily. Nav inside article functions the same as the contents list in a Wikipedia article so if you don't want that, you can remove it from the article. If you want secondary links to other related content, those should go in a different nav in aside. If you want site-wide links, you can create a separate nav outside the article.

          Also of note, footer can be for the article or the whole page. If you like, you can put footer outside the article and put the site-wide navigation there in addition to any forms.

          Skip to content links aren't hacks, but are in fact part of standard procedure for web accessibility and do solve a problem with fewer steps. Try not to look at things that don't necessarily conform to arbitrary standards of elegance as hacks.

          • hpaavola 12 years ago

            In my example there was a site navigation, not article navigation. And with article navigation, the same problem exists. The article should be before the navigation. But it's not practical at all to implement.

            And what comes to skip to content -links, those definetly are hacks. What they mean is "Dear user, we would have put the content first in the source, but since CSS is not a layout definition language, it was not possible, take this link instead."

            • jwdunne 12 years ago

              Actually, you can use absolute positioning to achieve what you want, in a fixed-width layout. You use CSS to add padding to the top of the content which is equal to the height of your navbar/header and give the navbar/header position absolute and top 0.

              I haven't figured out how to do this with responsive layouts. It's never worked well for me but I will come up with a solution one day.

    • unfletch 12 years ago

      "I either have to do some hacky position:absolute things…"

      Why do you think this is "hacky"? This is precisely what absolute positioning is for.

    • laumars 12 years ago

      Excuse my ignorance, but can you not use div layers to position your data as well as the header / footer tags?

      • hpaavola 12 years ago

        Depends on the meaning of "can" and "div layers". Technically speaking I can do many things, it's just that CSS (before flexbox, as mentioned in the comments) does not have any nice way to say that this element should be displayed before that element and so on.

        Not sure what you ment with the layer thing.

        • laumars 12 years ago

          In the testing I've done with the aforementioned tags, the display ordering happens correctly on all the desktop and mobile browsers I had to hand, when I wrapped the content in div tags as well as the article et al tags. So I'm wondering if what I've done is: 1) "valid" syntax, 2) would still break in the clients being discussed earlier and thus I was testing the wrong clients or 3) missing the point entirely.

          I'm still learning my way through HTML5 (I have had some experience with the markups that proceeded it though), so I just wanted to be clear on the issue :)

          re "div layers", that was a foobar on my part. I meant "div tags". Sorry for the confusion.

          • nilliams 12 years ago

            Unfortunately I think it's 3), you've missed parent's point :) They are not saying that HTML5 tags do not order correctly. They are saying that it's difficult to create a semantic document, where the order of the tags suits screen-readers (i.e. article before nav, as the article is the important part) but the resulting webpage (when styled with CSS) suits viewers (nav at left of article).

      • nyrina 12 years ago

        You can, and that is how it's mostly done now.

        But that isn't semantically correct. A div tag is just a div tag - like all other div tags.

        An article tag is "a div tag", unlike all other div tags. It tells that this is the main part of the webpage.

  • smackay 12 years ago

    I've tried and failed miserably (so far) to use the tags also. It seems they are optimized for a single use-case: single, magazine-style, pages or blog posts. Anything other than this and it starts to fall apart pretty rapidly.

    The alternative would appear to be micro (macro) formats which would offer more flexibility but obviously the chances of standardization on a widespread basis would appear to be remote.

    Given the diversity of web-page content perhaps the goal of a semantic web is simply unattainable - at least in the short-term.

  • coldtea 12 years ago

    >Has anyone used all of the HTML5 tags in anger? I've tried a couple of times to build something fully "semantic".

    Don't. Just use what you need and be pragmatic.

    The biggest proponents of semantic markup have been web designers, people that had no idea what semantic meant until they were told by hack W3C people.

    They tend to oversell the value of semantic markup, because they feel it makes them sound more intelligent and can help upsell their design offerings.

    In real life, nobody cares for semantic markup. Not Google (the main search engine that matters), nor browsers, and of course, not the clients. And as real life experiments with assistive technologies have shown, not even screen readers benefit that much from semantic markup or care about it.

    As for seperation of code and content and re-use -- that's what JSON, DBs, REST APIs etc are for. You are not supposed to reuse your HTML as is in other domains.

    It's mostly a snake oil business, based on an idea that sounds good in theory, but it's more trouble than is worth.

    And it has even less relevance nowadays, when web pages turn into web apps. What's a semantic "web app"? Why do we need semantics here, for something that in the native world we've always done with presentation code, from Interface Builder to Visual Studio?

  • Pxtl 12 years ago

    Yeah, I know we were all excited about the new elements when they were playing about with them, but I was kinda skeptical as a web newbie doing pure productivity apps... I mean, the web is prettymuch an application engine now and we're doubling down on the document metaphor? What?

    I still think that CSS in particular maps terribly to its usage as a complete layout system. I mean, you can do it, but you can code in BF or do incredible things with template metaprogramming in C++. Doesn't make it a clean, pleasant way to work, and doesn't really fit the designed purpose.

    • SkyMarshal 12 years ago

      >I mean, the web is pretty much an application engine now and we're doubling down on the document metaphor? What?

      I've been thinking similarly lately too. They're hardcoding semantics into HTML that may or may not change in the future. Better to avoid hardcoding things that could change or have subjective meaning whenever possible.

      Instead, keep HTML tags simple and enable optional, flexible semantics via attributes and properties, along the lines of schemas (http://schema.org/). Let the internet standardize among schemas, and replace obsolete ones with new and better ones as they arise. Or, if it's not requirement for your particular app, just don't bother with it at all.

  • stan_rogers 12 years ago

    Much of the graphical froufrou can be done using the before and after pseudo elements (which is one of the reasons I'm sort of disappointed that the HTML for the newer designs on the CSS Zen Garden has remained the same, complete with extra divs and spans strictly for styling).

  • designofhomes 12 years ago

    "Has anyone used all of the HTML5 tags in anger? I've tried a couple of times to build something fully "semantic". I struggle to create something that looks good semantically"

    I recently ditched Wordpress and decided to learn HTML and CSS by hand-coding my blog. I used many (but not all) of the new HTML 5 tags including main, section, article, nav, footer. Admittedly a blog is quite a structured type of site that lends itself well to simple semantic markup. I am using html5shiv.js to support IE 6-9 and the site renders mostly fine in those browsers. There are some isues with spacing, but the site is perfectly readable which is the main thing.

    Here's my site: http://www.designofhomes.co.uk (a blog about housing issues in the UK). Admittedly, it's not the most attractive design, but a reasonably clean and clear layout (I hope!) Any feedback on the appearance and structure is very welcome :-)

    Here's what the site looks like in Internet Explorer and Lynx using browsershots.org for testing (this link expires in a day or two)

    http://browsershots.org/http://www.designofhomes.co.uk/

  • rimantas 12 years ago

      > There seem to be lots of situations, even in just mildly
      > complicated web pages, where you need to write HTML code 
      > solely for graphics / layout reasons
    
    It depends on the browsers support desired, but for reasonably modern browsers this should be rarely the case, except for really complex layout. Now when we have multiple backgrounds and background images and generated content there is less demand for extra elements.
  • JonnieCache 12 years ago

    It really depends on what kind of page you're making. If you're doing a heavily optimised landing page where everything has to be just-so, you might need to smash a few divs.

    If you're just making a basic page that's not too designy, you can produce some beautiful looking html. It looks even better in haml. Write some sass for it and you will reach a higher state of markup consciousness.

crazygringo 12 years ago

Question: is there any evidence that search engines actually use/respect semantic tags like <main>, <footer>, <article>, etc.? Or anyone here who knows firsthand from Google?

Just because, if I were writing a search engine, I would already have a bunch of "AI"/heuristics logic to tease these things out, since most sites don't use semantic HTML5 -- and it would probably do a solid job, since it's easy to compare a bunch of pages from a single site and figure out what parts are changing.

Then, if I actually started assuming that <main> or <article> was always the main/article part, it makes it easier for people to "game" the search engine with keyword-stuffing, etc. So, if I ran a search engine, I'd probably just ignore them completely and rely on my own heuristics.

(For example, Google completely ignores HTML language attributes: "Keep in mind that Google ignores all code-level language information, from “lang” attributes to Document Type Definitions (DTD). Some web editing programs create these attributes automatically, and therefore they aren’t very reliable when trying to determine the language of a webpage." [1] So I wouldn't be surprised if semantic HTML is the same deal.)

I've heard it endlessly repeated that semantic HTML helps SEO, and that's why you should use it. But I've never seen concrete evidence of this -- is there anything that actually backs it up?

[1] http://googlewebmastercentral.blogspot.com/2010/03/working-w...

  • frenchy 12 years ago

    From what I understand, the short answer is "No, they don't". The long answer is "They don't yet, but if we keep telling people they do and everyone starts using semantic HTML, they will".

    • tghw 12 years ago

      > and everyone starts using semantic HTML, they will

      Eh, I doubt it. The problem with the "semantic web" is that your semantics might not match my semantics. You might use <article> only for the main content of an article-like page, whereas I might use it for each separate piece of text.

  • whubr 12 years ago

    A few years ago I worked on a digital library system and we would sweat over including proper metadata about articles in meta tags (derived from the Dublin Core attributes entered by the authors). That was until we met with someone at Google who worked on Scholar. He said there was no harm in including that metadata, but they usually had more success inferring things like authors, title, etc from the HTML content of the page so they ignored it for the purposes of indexing. Things may have changed, but basically I think you're right that semantic markup is easy to game so probably doesn't affect SEO. Doesn't mean it's not worth doing though :)

  • eli 12 years ago

    Offtopic, but I'm not sure <article> means what you think it means. It could be an article like in a magazine, but according to the spec it's for any "self-contained composition in a document" like a widget or a comment. Each page could have many <article>s. It's definitely not intended to indicate "this is the main content of the page."

    Lots of people are confused though. This is one of the many problems with semantic markup in the real world.

  • steveklabnik 12 years ago

    In this case, it's more about accessibility with WAI-ARIA than it is about SEO.

WickyNilliams 12 years ago

Why are people hating on HTML semantics? I fear it is out of some fundamental misunderstanding of how semantics work on the web...

First let me be clear that there are (at least) two types of semantics on the web, one for machines (bots and screen readers) and one for meat (humans!).

In writing HTML, the goal is not to use every semantically-rich tag available and avoid everything else like the plague. Where you can convey extra semantic meaning, use the most appropriate tag available; where you cannot, use a div or a span or something else. Use of divs does not make your page less semantic - it is not deductive. However use of the correct semantic tags will make your page more semantic - it is additive!

In writing CSS, the goal is not to avoid classes/IDs altogether to keep your HTML "clean". The machines care not if your HTML is rammed full of classes; though you will certainly care when it comes to maintaining your pristine HTML. When writing CSS the goal isn't even to strive for "semantic" class names. CSS classes convey no semantics, at least not to machines. CSS classes should be used to convey semantics to the meat bags reading the code - devs, interested users etc. Nothing else matters with CSS, write it how you like, in as maintainable a fashion as possible and forget semantics in that domain.

Excellent article discussing the fallacies around semantics: http://nicolasgallagher.com/about-html-semantics-front-end-a...

codeka 12 years ago

Somewhat interesting, perhaps, is the fact that this page itself has the following markup:

    <main id="content" class="group" role="main">
        <div class="main">
        ...
I, too, have tried to use semantic markup. Unfortunately, except for the most straight-forward of layouts, it's very hard to do. Though I guess there was also a time when non-table-based layouts was considered harder than it was worth...
  • mmatants 12 years ago

    Semantic = for developers. I.e. not in the "make it nice for web crawlers" sense, but for readability of template code.

    So for my own workflow, I have been quite comfortable being a "semantic stickler", where markup is written first and with only a general wireframe. CSS classes are added sparingly, to mark separate areas of concern for LESS/SCSS grouping. And then styling work begins, during which I try to avoid adding presentational fluff to markup at all costs. It's hard, but CSS3 allows a surprising amount of power.

    The rule of thumb is: clean template code is worth dirty CSS hacks. CSS is going to be shit anyway, due to its inherent qualities as a language. So might as well make templates awesome.

    And again, this is for developers' sanity more than anything to do with "semantic web" or whatever.

  • Swizec 12 years ago

    Arguably most modern websites might as well be using tables considering how they use divs.

brokenparser 12 years ago

I'm still waiting for some sort of <bull> or <hogwash> element to markup comments and other such tripe. E.g.:

  <user class="spam">Buy my pills!</user>
It would be even more useful if something like this works:

  <user rel="nofollow">Buy pills
    <a href="fizz://example.net/pills">here!</a>
  </user>
This is cleaner than putting the attribute on every anchor, I wouldn't mind crawlers skipping marked comment sections entirely either.
nilved 12 years ago

I was honestly a little baffled to come into this thread and discover people were having trouble with semantic HTML. It's not hard to use, you just need to be inventive with your CSS. A page without divs, spans, strongs and bigs should be everyone's goal.

  • rorrr2 12 years ago

    Could you show us one of your websites "without divs, spans"?

    • verisimilitude 12 years ago

      Not easy, but doable, especially on a straightforward design: e.g. http://tumbledry.org/

      • talmand 12 years ago

        Straightforward design meaning a never-ending single column of content? I would be shocked for such a page to require any creative usage of divs/spans whatsoever.

        Also, just curious, what's the point in having a footer that I can never properly see because new content is injected as I scroll down the page?

        • nickloewen 12 years ago

          Re: footer – if you turn js off, it means that a 'more' link appears at the end of the page, leading you to older pages.

          • talmand 12 years ago

            I would rather that the footer either be sticky or the injection of new content not happen. One shouldn't have to disable Javascript to see content, even if it is the footer.

      • Groxx 12 years ago

        Surprisingly readable, both human and machine. Thanks, that's enlightening :)

    • nilved 12 years ago

      I don't have any live right now, so you'll need to take my word when I say I'm been using semantic HTML for more than a decade (since I started coding.) My rules are no divs, no spans, no imgs (unless the image is part of the content rather than the presentation), no empty elements, no spacers, and no non-semantic classes or IDs. When you try it, remember that :after and :before give you the ability to add arbitrary content to a page, be it text or image.

      If it sounds hard, remember that people said the same thing about making layouts without tables in the early 2000s. Semantic and compliant HTML means a more accessible website and that's more important than literally anything else in web development.

    • arcavorago 12 years ago

      Still under heavy construction and playing with the layout, so forgive the ugliness of the css at the moment, but here is my personal website which I am attempting to do with good semantics and html5/css3 only, (no js).

      http://www.warriors-shade.net

      The actual article area will (should) accommodate the semantic tags well (main, article, aside, figure, etc).

      • rorrr2 12 years ago

        That's pretty lame. It just navigation and some text dumped into the body.

        I'm not 100% sure, but I think having <nav> outside of <body> is not up to HTML5 standards.

        • arcavorago 12 years ago

          I was just trying to show an attempt at no divs/spans in html, and even said it was ugly and a work in progress, so thanks for your kind assessment. That being said,

          1) And what is particularly wrong with that? I said that the design was so that the html5 semantic elements would fit well into the body section, removed from the nav/footer. You might as well just say, "oh, that's just some text dumped into a div,section,etc hoho...".

          2) Actually there is no standard regarding this. Maybe a best practice, but not a standard. http://www.w3.org/html/wg/drafts/html/master/sections.html#t...

          So it sounds like you want someone to show a certain kind of design done semantically. If that's the case, then you should have said specifically what you were looking for in the first place. eg. 3 columns each with 4 rows without divs/spans, etc. In this case this could still be put into my page, just put classes or id's onto the articles or other elements and manage with css.

          It should be noted this is a strange request as well, div's used in the correct way are perfectly valid with html5/css3, so you are unlikely to find anything much more than what I have just shown you...(and again, if that was your original point, you should of just said it in the first place.)

        • dragonwriter 12 years ago

          Implicit body element without an explicit tag as used in the page at issue is, IIRC, consistent with WHATWG HTML, not sure about W3C HTML5.

          • rorrr2 12 years ago

            No, he has this strange structure:

                <header>
                    <nav>
                    ...
                    </nav>
                </header>
                <body>
                ...
                </body>
            • dragonwriter 12 years ago

              When I looked over the source (quickly) it looked like an implicit-body structure. I must have missed the body tags.

    • dukerutledge 12 years ago

      Currently only running in FF because of Fat Arrows and being under dev, but this page only uses divs for the js generated content in the simulation.

      http://eborden.github.io/evolution-of-cooperation/

chrisfarms 12 years ago

The ARIA roles ideas seem to address the semantics/accessibility issues much better than semantic tags.

Plus with the direction that the Web Components stuff is going, I think they should probably scrap all the semantic elements, just stick to a smaller set of HTML elements that are "functionally" different. Then tell everyone to create their own tag-semantics by extending the basic elements for their use-case and use the standard roles taxonomy to describe the intent of the user-created tags.

It feel a bit like parts of the groups are not talking enough :)

mvzink 12 years ago

This is great news. However, all this discussion of "semantic this-or-that makes my site look like shit" or "semantic tags are just for template clarity" and "well at least web crawlers and Readability can make use of it" is really annoying.

If you think <main> exists to make SEO easier for you, I'm willing to bet that around 7 million blind people in the US alone won't bother trying to use your site. Why? Because their screen reading software won't be able to make it through your mess of markup and get to the part that matters, for one.

It's hard enough getting people to care about accessibility at all, but trying to drive ARIA adoption must be a complete nightmare. <main> is taking one of the most obvious, simple, and useful pieces from ARIA, which just happens to fit in quite sensibly with existing "semantic" tags, and allowing you to remove an important accessibility hurdle without even knowing about ARIA!

I, for one, am extremely glad that I can now make my sites a bit more accessible with almost no extra effort.

Kiro 12 years ago

I still haven't found one good reason to use any of the semantic HTML5 tags instead of just good old divs. This didn't convince me.

  • dredmorbius 12 years ago

    For tools which simplify/standarize webpage presentation (e.g., Pocket, Instapaper, Readability) this makes parsing easier.

    I'm leaning strongly toward favoring a browser model which just says buggerall to the site's layout and applies a user-specified preference of styling consistently. I'm already pretty much doing this myself via my own CSS mods using Stylebot, and in most cases it makes sites vastly more readable and less distracting.

    In particular crap such as Buzzfeed (I call my styling "unbuzzed"): https://plus.google.com/104092656004159577193/posts/G6pzJBLK...

  • aroberge 12 years ago

    The nightmare of divs makes it hard to find the end div unless someone is disciplined enough to indent the code consistently OR if comments are inserted at the end of divs as in

        <div class="header">
            ...
        </div>  <!-- header-->
    
    Using semantic tags makes it much easier to see the structure.
    • joe5150 12 years ago

      I indent religiously, and I comment, but I use a lot of static site generator-type software and I've yet to find one that doesn't completely ruin the indentation in the output, even with the various kinds of HTML-prettify plugins.

  • hober 12 years ago

    <header>…</header> header {…}

    is slightly shorter than

    <div class=header>…</div> .header {…}

    • talmand 12 years ago

      It's easy to present a special use example as a benefit over the current trend. It doesn't mean it would hold up over multiple comparisons.

      Although, any example that I could provide that would show the exception would also likely be a special use example. So it turns into a your mileage may vary situation.

      But, I've not always seen a slightly shorter amount of typing as a benefit to this sort of thing.

    • jacques_chester 12 years ago

      And what does

          <main role="main"> 
      
      buy us?
      • desas 12 years ago

        You only have to specify the role for IE, once that complies you can use <main> rather than <div role="main"> or <main role="main">

peferron 12 years ago

Thanks for posting this. I just replaced the <section> I was using on one of my projects by a <main>. In the context of this project, this particular container was always meant to be unique anyway; and it had been bothering me a bit these past few days to know that I wasn't using <section> quite as intended. Using a <div class="main"> wasn't a very sexy alternative either.

Quite sure that when I read the list of HTML5 elements a while back, <main> wasn't in the list! Glad it got added.

jpswade 12 years ago

Firefox 21, Chrome 26, and a WebKit r140374 have all implemented basic support for <main>.

They have all mapped the ARIA role="main" to the <main> element so assistive technologies can now recognise the <main> element without issue.

wiradikusuma 12 years ago

The good thing is it'll be easier for robots to crawl pages to find the, well, main content. E.g. scrapers for websites without RSS support.

The bad thing is if the robot is a search engine spider, people will use try to serve different 'main'.

jebblue 12 years ago

The header goes inside of body now? If so then now header no longer means header. For that matter, main seems to be doing what body is supposed to do? Personally I think it should be:

  <header role="banner">
  [...]
  </header>
  <body id="content" class="group" role="main">

  <div id="divcontent1" class="aclass" role="arole">
  [...]
  </div>

  </body>
  <footer role="contentinfo">
  [...]
  </footer>
Why change the expectations for where a header goes after around two decades?
thezilch 12 years ago

Sure I do, and there are many more HTML5 tags not mentioned by the article (eg. figure and figcaption). MDN does a great job listing, describing, and stating browser support, for each: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML...

phpnode 12 years ago

it's annoying that it can't be used more than once per page. It would be useful to also have a <content> element, e.g.

    <article>
        <header>...</header>
        <content>...</content>
        <footer>...</footer>
    </article>
Andrex 12 years ago

This is completely off-topic, but I wanted to say I love the font used for the headings on this site. "Quicksand," is it? Nice and playful without being completely unprofessional, very good pick.

derefr 12 years ago

Sounds convenient for one major use: letting web-scraping and readability-like tools know that everything outside of <main> is alright to throw away.

  • pestaa 12 years ago

    I consider navigation not alright to throw away, but wouldn't put it in <main> either.

    • wtetzner 12 years ago

      For something like Readability, you don't want to keep the navigation. The whole point is to get just the content, and make it readable.

    • oneeyedpigeon 12 years ago

      But if I'm using a readability tool to access your content, I certainly don't want the navigation to be a part of it.

robinduckett 12 years ago

Down?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection