Re: question about HTML5 Semantic Attribution

Hello,

> 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

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