Which HTML5 tag should I use to mark up an author’s name?

前端 未结 9 2090
悲&欢浪女
悲&欢浪女 2021-01-30 03:36

For example of a blog-post or article.

header

John My articl

9条回答
  •  生来不讨喜
    2021-01-30 04:24

    HTML5 has an author link type:

    
    

    The weakness here is that it needs to be on some sort of link, but if you have that there's a long discussion of alternatives here. If you don't have a link, then just use a class attribute, that's what it's for:

    John
    

提交回复
热议问题