Mobile app version of vmapp.org
Login or Join
Barnes591

: Proper format to markup article author for Google rich snippets and HTML5 The Google guideline Author information in search results tells us that we need to use the following format to link

@Barnes591

Posted in: #GoogleSearch #Html5 #Hyperlink #Markup #RichSnippets

The Google guideline Author information in search results tells us that we need to use the following format to link to the article author:

<a href="[profile_url]?rel=author">Author</a>


However, HTML5 specification has another construction for that:

<a href="http://author's-domain.com" rel="author">Author</a>


So what option should we use on an HTML5 website? Maybe, something like that

<a href="[profile_url]?rel=author" rel="author">Author</a>


, which is proper in both specifications?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes591

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nickens628

Although their documentation doesn't say so, using the rel attribute is supported by Google, so both should work.

The 'in-URL' ?rel= syntax exists for blog users, who may not have access to edit the page's HTML tags, but the HTML5 separate attribute version is more 'correct' so I'd recommend:

<a href="[profile_url]" rel="author">Author</a>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme