W3C home > Mailing lists > Public > site-comments@w3.org > September 2020

Re: question about HTML5 Semantic Attribution

From: Coralie Mercier <coralie@w3.org>
Date: Mon, 28 Sep 2020 13:49:04 +0200
Cc: site-comments@w3.org
Message-Id: <732E2386-C812-4B7B-8462-FB65384DAD78@w3.org>
To: infinite sprints <infinitesprints@gmail.com>

> On 28 Sep 2020, at 03:35 , infinite sprints <infinitesprints@gmail.com> wrote:
> https://www.w3.org/html/logo/faq.html
> Hi, I see you have an attribution suggestion in html for the logo.  Can you provide me what it would be with HTML5 Semantic markup?
> Would you be using the figure tag?

Thanks for writing about this. That caused us to update the suggested markup to include an example class value in the span tag, which is the only reason for using <span>.

In HTML5 there was no semantic element added that’s particularly appropriate for marking up an attribution. So to mark up the logo attribution semantically, just wrap it with a <span> or <p> or whatever normal element’s best for your actual context, with a class attribute as needed.

You could be wrapping the HTML logo image itself in a <figure>, as long as the purpose is to associate a caption to the image, and to do so, please use <figcaption>. 
But otherwise, if there’s no caption then there is nothing to gain by using <figure>. Just a normal <img> element on its own is semantically perfect in that case. 


Coralie Mercier  -  W3C Marketing & Communications -  https://www.w3.org
mailto:coralie@w3.org +337 810 795 22 https://www.w3.org/People/Coralie/
Received on Monday, 28 September 2020 11:49:10 UTC

This archive was generated by hypermail 2.4.0 : Monday, 18 April 2022 20:33:55 UTC