Earlier quoted context omitted.
"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 len…
If clean and clear is what you're going for, I personally think you've done a good job!
The ﹤main﹥ element
81–90 of 93 posts
Re: The ﹤main﹥ element
#82I 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.
Could you show us one of your websites "without divs, spans"?
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.
Re: The ﹤main﹥ element
#83Earlier quoted context omitted.
That's pretty lame. It just navigation and some text dumped into the body. I'm not 100% sure, but I think having outside of is not up to HTML5 standards.
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.
...
...
Re: The ﹤main﹥ element
#84
[...]
[...]
[...]
Why change the expectations for where a header goes after around two decades?Re: The ﹤main﹥ element
#85Re: The ﹤main﹥ element
#86Earlier quoted context omitted.
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: ... ...
Re: The ﹤main﹥ element
#87The 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: [...] [...] [...] Why change the expectations for where a header goes after around two decades?
Re: The ﹤main﹥ element
#88I 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.
Could you show us one of your websites "without divs, spans"?
Re: The ﹤main﹥ element
#89Has 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…
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: lorem ipsum search 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: search I either have to do some hacky position:absolute things, crazy floats with negative e…
Why do you think this is "hacky"? This is precisely what absolute positioning is for.
Re: The ﹤main﹥ element
#90Question: is there any evidence that search engines actually use/respect semantic tags like , , , 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 sing…