Comments on: Let’s Talk about Semantics https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: BikeLane https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-2034464 Tue, 06 Oct 2015 21:43:12 +0000 http://html5doctor.com/?p=4440#comment-2034464 So here’s some food for thought…

I’m not sure about the previous post about ROI…Semantic elements within a page offers assistance to applications reading the page in the form of structural meaning….How do you know whether an application is looking for semantic elements to derive meaning?

Just because a browser or “tools” don’t support HTML5 semantic elements, doesn’t mean that there is no return on investment. As the previous post already addressed, search engines may be looking for semantic elements and rank a page higher in the results.

Why wait for others to tell you to change your HTML element selection? Since semantic elements only offer additional semantic meaning to your existing page content, why not take advantage of it as a Web Designer? It is merely adding a change of focus from how the page looks, to how the page could be interpreted, which a good Web Designer will be doing anyway.

As copied from the W3C Web Content Accessibility Guidelines working group 2.0 guidelines general techniques G115: Using semantic elements to markup structure, “The objective of this technique is to mark up the structure of the Web content using the appropriate semantic elements. In other words, the elements are used according to their meaning, not because of the way they appear visually.”

Also search YouTube for “Shay Howe HTML5 Semantics”, there is a good 48 minute video about markup semantics. :)

]]>
By: Bartdude https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-1143311 Thu, 04 Dec 2014 19:21:59 +0000 http://html5doctor.com/?p=4440#comment-1143311 As I read this almost 3 years old article and comments, I realize situation hasn’t changed much… Semantics is still hard to sell cause tools that make a real use of it don’t exist yet or are dedicated to a tiny minority of users therefore with no ROI. I guess we’ll have to wait until semantics have an impact on pagerank to see the clients, project managers and account managers beg for top notch semantic sites…

My personnal semantic nitpicking discussion is about the use of ol and ul tags… Most of the time we use ul, even when there is actually an order. Best example would be navigations: do you randomly build your navigation tree ? Certainly not… You wouldn’t put your “home” in the middle of the nav, and most probably not even at the end. So although there are probably several “natural” orders, there are also many “non-natural” orders, justifying the use of ol in this case and many others, at least from where I see it.

This just to add, if necessary, a proof to your point that discussions about semantics are endless… But so interresting :-)

]]>
By: Jason Burnett https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-29143 Fri, 02 Nov 2012 21:47:56 +0000 http://html5doctor.com/?p=4440#comment-29143 Although I will likely get a great deal of flack for this, I can’t help but feel that we are headed in the wrong direction with regards to the Semantic Web.

I understand the importance of being able to find semantic information in our content and I realize that a semantic structure makes a huge difference in search engine accuracy and when scraping, scavenging. I don’t think that we should avoid semantic declarations, but I also don’t think it should be HTML. Or at least it should be an extension to HTML called HTSL or something.

I wish that HTML had been purified to HT followed by the intended use of said Hyper Text: Markup Language, or Semantic Language. Then in the future, when we have device-specific contexts or audience relative contexts, we don’t have to rewrite the entire spec, we add a flavor of HyperText and call it Contextual Language.

Then, a simple engine would give priority to HT content that was semantically enabled or contextually enabled, etc.

But to extend the HT used to layout a document by adding new arbitrary elements named conspicuously like a media format that is quickly disappearing seems dirty and short sited to me. In other words, I would much prefer to have where the markup language provides the structure, the various other aspects are added to the markup.

Then generalize the markup language to include things like: or or or or . A semantic element (or context element or style element) seems so much more reasonable.

And when complaining about bulky markup by ADDing these elements, I say that device specific browsers could provide an option to recompile the markup to avoid the extra semantics and contexts and whatever they come up with a year from now. If your reader device doesn’t need the extra contexts or can’t really use the semantics, the device can easily get rid of it.

Until then, I am going to struggle with trying to stylize my semantic elements and just put up with being yelled at for my poor element choice. Jeesh.

Thanks for the great article. It clears up a few things and helped clarify my belief in the way things should be.

Jase

]]>
By: Lika https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-29121 Mon, 29 Oct 2012 00:45:05 +0000 http://html5doctor.com/?p=4440#comment-29121 My sample image is disappeared in previous comment.

]]>
By: Lika https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-29120 Mon, 29 Oct 2012 00:42:39 +0000 http://html5doctor.com/?p=4440#comment-29120 Hi,

As for me, this is very interesting because I don’t realy understood the difference between for ex. article and section or section and nav tags.

Before i start to use html 5, I always wrote class=”content”for my main div.

And I have a question about new suggestions for html5 and css3.

Can i write it here?

I don’t know if anybody already speak about this.
I search a little, but can’t find information, maybe I use wrong keywords.

So, I think that it will be very interesting to add displacement (or offset) for background images. You know something like this:

Please notify me if this future is already here :)

]]>
By: fritz stelluto https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-28982 Mon, 01 Oct 2012 21:07:52 +0000 http://html5doctor.com/?p=4440#comment-28982 Interesting piece, I like the “article of clothing” example (was the tag planned like that or are you post-rationalizing? never mind…. :-)

but I don’t think you have made a solid case for the current, arbitrary set of tags, you merely state that the procedure to get more tags added is cumbersome. A whiff of Kafka there.

<article> within <article> can be interpreted as comments, but they could also be excerpts in a blog index for example. There is no way to tell the two apart, and yet the difference is quite important. One is content published by the site owners, the other is (often) unvetted user generated content.

I find the distinction between an article as good you can buy and an article as a collection of words you can read is significant. It helps if you want to build a price comparison scraper for example.

I agree with the <article> within <article> above who said tag names are important to developers, and you should have chosen them more wisely. As someone else suggested in an <article> within <article> above, item would have been a better choice. Anyway, we are stuck with it.

Personally of the semantic element I use header. footer, aside, and nav as they make sense, and boycott article and section as they are so confusing to developers I doubt spider bots take any notice of them.

Basically, the emperor is wearing no articles and I totally agree with Divya.

]]>
By: Mike Robinson https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-28928 Fri, 14 Sep 2012 08:59:28 +0000 http://html5doctor.com/?p=4440#comment-28928 @Edward: <nav> differs from <section> as there is a significant difference between the two types of information they contain. <nav> contains navigational items which are used to assit the user, where as <section> is for sectioning content.

The same logic has to be applied to <article> vs <comment> – A comment is just another piece of content that happens to have a direct relationship to the associated article. Articles themselves can sometimes be a commentary on another article, should they too be considered as appropriate for <comment>? The degree of difference between the main body of content and the related comments is so minor that it is safer to not add a new element.

]]>
By: Edward https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-28926 Thu, 13 Sep 2012 18:33:16 +0000 http://html5doctor.com/?p=4440#comment-28926 If <comment> isn’t necessary because of <article>, why is <nav> exist when we have <section>? Further, the description of article as independently distributable components doesn’t make sense or still has way too many interpretations in many contexts. Does a comment make sense on its own or only with the parent article? (I could see different views with even that very common example). What about parts of a court opinion, an appendix to a book, or any number of domain-specific documents or content? If there are numerous ways for the this to be interpreted, then it really has no value as a standard.

]]>
By: Mike Robinson https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-28919 Tue, 11 Sep 2012 15:39:20 +0000 http://html5doctor.com/?p=4440#comment-28919 @Mike Robinson: Sorry about that! I’ll have a word with the postman.

@Rich: The new elements enable user agents to easily identify the purpose of content on a page, rather than trying to guess based on more arbitrarily named ids and classes. While it is true to say many developers have become accustomed to using appropriate names for their classes, not everyone does and the chosen names most certainly don’t aways match.

The fix for older browsers is pretty stable now, keep the shiv in your base template and you don’t really have to think about it. Using the correct elements in your mark-up will become second nature, taking the same of less amount of time to use as a div+id/class combo. Your clients might not appreciate it, but rarely is the cleanliness of HTML for their benefit. The real benefactors are the user agents, who can use these semantics to parse the pages in more sophisticated ways, such as to power accessibility tools.

These benefits may not be readily available to the developer, but that is not a reason to avoid the new elements. Many of the tools that utilise this either do so quietly or are yet to be created. In fact, any one of us here reading these comments could create tools to take advantage of the new semantics. Why not lay the groundwork for a better future?

]]>
By: Rich https://stevefaulkner.github.io/html5doctored/lets-talk-about-semantics/#comment-28868 Wed, 22 Aug 2012 20:05:18 +0000 http://html5doctor.com/?p=4440#comment-28868 I can’t help but feel that most HTML 5 tags are pointless. While I agree completely about correct semantics you try explaining that to a potential customer. You won’t.

All they are interested in is cost and end results, and shouldn’t we all? Semantics aren’t going to pay the bills.

Any front end dev worth his or her salt will already be well versed with semantics with HTML 4 and it seems like all HTML 5 delivers is new tags which have been named after the most common class names we use on div’s anyway.

And what is the benefit of all this?

You have to fix for older browsers.

What’s the point in that? Another step in completing the site, another potential thing that can go wrong, and another thing that you will have to bill you’re client for that they won’t understand or see the benefit of. A div will do.

]]>