rel-author: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(section and discussion markup for query param issue)
(a bit of editorial boilerplate, working this into a proper draft (given popular Google implementation))
Line 1: Line 1:
<entry-title>rel author</entry-title>
<entry-title>rel author</entry-title>
<span class="h-card">[[User:Tantek|Tantek Çelik]]</span> (Editor)
----
<dfn style="font-style:normal;font-weight:bold">rel-author</dfn> 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 [[microformats|microformat]] standards suitable for embedding data in HTML/HTML5, and Atom/RSS/XHTML or other XML.
== Summary ==
== Summary ==
rel=&quot;author&quot; 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).
'''<code>rel=&quot;author&quot;</code>''' 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 Erin could contain a link like:
E.g. a page or a post written by a person "Erin Smith" could contain a link like:
<source lang=html4strict>
<source lang=html4strict>
<a href="http://erin.example.com/" rel="author">Erin Smith</a>
<a href="http://erin.example.com/" rel="author">Erin Smith</a>
Line 35: Line 38:


== see also ==
== see also ==
* [[rel-author-issues]]
* [[hAtom]]
* [[hNews]]
* [[rel-faq]]
* [[rel-faq]]
* [[rel-me]]
* [[existing-rel-values]]
* [[existing-rel-values]]

Revision as of 00:15, 31 July 2012

<entry-title>rel author</entry-title> 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).

Implementations

This section is informative.

Google

An interesting rel="author" implementation set of examples is brought up by Google in a video posted on Youtube:

extensions

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:

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)
  • ...

see also