Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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


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.


No, he has this strange structure:

    <header>
        <nav>
        ...
        </nav>
    </header>
    <body>
    ...
    </body>


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: