rel-author: Difference between revisions
Callionica (talk | contribs) |
(indieweb.org, add indieweb rel-author to See Also, simplify See Also section) |
||
(20 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:rel author}} | |||
<span class="h-card">[[User:Tantek|Tantek Çelik]]</span> (Editor) | <span class="h-card">[[User:Tantek|Tantek Çelik]]</span> (Editor) | ||
---- | ---- | ||
Line 7: | Line 7: | ||
E.g. a page or a post written by a person "Erin Smith" could contain a link like: | E.g. a page or a post written by a person "Erin Smith" could contain a link like: | ||
< | <syntaxhighlight lang="html"> | ||
<a href="http://erin.example.com/" rel="author">Erin Smith</a> | <a href="http://erin.example.com/" rel="author">Erin Smith</a> | ||
</ | </syntaxhighlight> | ||
The <code>rel="author"</code> attribute indicates that the destination of the link represents the author of the current page (or post). | The <code>rel="author"</code> attribute indicates that the destination of the link represents the author of the current page (or post). | ||
== Examples in the wild == | == Examples in the wild == | ||
Add permalinks of | Add permalinks of articles (no homepages) using rel=author, with any particularly interesting details about their usage: | ||
* [http://harpers.org/archive/2015/10/the-mother-of-all-questions/?single=1 Harpers.org] | * [http://harpers.org/archive/2015/10/the-mother-of-all-questions/?single=1 Harpers.org] | ||
Line 22: | Line 22: | ||
The Variety page is interesting because it uses multiple rel=author, with the intent to scope the authorship to the containing article element (as described in the [http://www.w3.org/TR/html/links.html#link-type-author HTML spec]) | The Variety page is interesting because it uses multiple rel=author, with the intent to scope the authorship to the containing article element (as described in the [http://www.w3.org/TR/html/links.html#link-type-author HTML spec]) | ||
(Any homepages added to these examples will be reverted, and the editing accounts banned.) | |||
== Implementations == | == Implementations == | ||
Line 27: | Line 29: | ||
Plenty of implementations in the IndieWebCamp community, in particular: | Plenty of implementations in the IndieWebCamp community, in particular: | ||
* The [https:// | * The [https://indieweb.org/authorship authorship algorithm] uses [[rel-author]]. | ||
== articles == | == articles == | ||
Line 50: | Line 52: | ||
Google has proposed an alternate mechanism for specifying rel=author on sites/CMSs that don't permit authors to specify the rel attribute, using a query parameter added to the URL instead. e.g. the above example with query parameter: | Google has proposed an alternate mechanism for specifying rel=author on sites/CMSs that don't permit authors to specify the rel attribute, using a query parameter added to the URL instead. e.g. the above example with query parameter: | ||
< | <syntaxhighlight lang="html"> | ||
<a href="http://erin.example.com/?rel=author">Erin Smith</a> | <a href="http://erin.example.com/?rel=author">Erin Smith</a> | ||
</ | </syntaxhighlight> | ||
This technique is explained in the following video: | This technique is explained in the following video: | ||
Line 65: | Line 67: | ||
== see also == | == see also == | ||
* [[rel-author-issues]] | * [[rel-author-issues]] | ||
* [ | * [https://indieweb.org/rel-author IndieWeb: rel-author How To and Examples] | ||
* [[rel-faq]] | * [[rel-faq]] | ||
* [[rel-me]] | * [[rel-me]] |
Latest revision as of 22:49, 2 July 2024
Tantek Çelik (Editor)
rel-author is for linking from an article or post (e.g. marked up with hAtom) to a page or site representing its author. rel-author is one of several open microformat standards suitable for embedding data in HTML/HTML5, and Atom/RSS/XHTML or other XML.
Summary
rel="author"
is for relating an article or post to a page or site representing its author, typically to give them credit for their work (or portions of it, like books, articles, blog posts etc).
E.g. a page or a post written by a person "Erin Smith" could contain a link like:
<a href="http://erin.example.com/" rel="author">Erin Smith</a>
The rel="author"
attribute indicates that the destination of the link represents the author of the current page (or post).
Examples in the wild
Add permalinks of articles (no homepages) using rel=author, with any particularly interesting details about their usage:
The Harpers page is interesting because it uses multiple rel=author, but clearly intends to scope the authorship to the containing div class="article" element. This doesn't follow any spec.
The Variety page is interesting because it uses multiple rel=author, with the intent to scope the authorship to the containing article element (as described in the HTML spec)
(Any homepages added to these examples will be reverted, and the editing accounts banned.)
Implementations
This section is informative.
Plenty of implementations in the IndieWebCamp community, in particular:
- The authorship algorithm uses rel-author.
articles
This section is informative.
Articles and blog posts about rel=author:
- 2013-08-20 http://moz.com/blog/google-plus-correlations
- 2014-08-28 http://searchengineland.com/goodbye-google-authorship-201975
past implementations
This section is informative.
Past implementations.
Dropped 2014-08-28[1].
An interesting rel="author" implementation set of examples is brought up by Google in a video posted on Youtube:
- Authorship markup video and the respective implementation procedure.
query parameter alternative
Google has proposed an alternate mechanism for specifying rel=author on sites/CMSs that don't permit authors to specify the rel attribute, using a query parameter added to the URL instead. e.g. the above example with query parameter:
<a href="http://erin.example.com/?rel=author">Erin Smith</a>
This technique is explained in the following video:
- Authorship markup using URL parameters video and the new implementation procedure with the help of Google Profile (and hopefully, this type of implementation can be used on any other personal BIO page of respective author).
query param issues
- While I understand the motivation here, this is not a good idea. There will definitely be someone who has ?rel= as an actual query param meaning something in their app, and this will just break things. Singpolyma 17:56, 12 August 2011 (UTC)
- ...