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

Not to hand, for sharing here, but just try it with something like your CV, in neat HTML. Set yourself some rules to not use classes (for the lols, not out of ideological hatred) or divs (there is always a better element).

If you can't do it, there is probably more work to do with your document structure. Also try and always have a h1-h6 heading in your articles, sections, asides and even navs, at the top. Headings should not be in a sea of paragraphs, they should be at the top of a content sectioning element, nowhere else.



Out of idle curiosity, which better element am I supposed to use when I'm using flex layout to space out elements on my page?

(e.g., a toolbar with with left- and right- justified elements, among which is an expanding searchbox).


HTML elements are used to describe their content and not have anything to do with layout. While they often have common properties, these can be changed using CSS.

So use the element that best describes its content.




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

Search: