Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Microformats: Semantic Markup and Com... > Exploring Social Connections with XF...

Exploring Social Connections with XFN

With a bit of context established for how microformats fit into the overall web space, let’s now turn to some practical applications of XFN, which is by far the most popular microformat you’re likely to encounter. As you already know, XFN is a means of identifying relationships to other people by including a few keywords in the rel attribute of an anchor tag. XFN is commonly used in blogs, and particularly in “blogroll” plug-ins such as those offered by WordPress.[10] Consider the following HTML content, shown in Example 2-1, that might be present in a blogroll.

Example 2-1. Example XFN markup

<div>
    <a href="http://example.org/matthew" rel="me">Matthew</a>
    <a href="http://example.com/users/jc" rel="friend met">J.C.</a>
    <a href="http://example.com/users/abe" rel="friend met co-worker">Abe</a>
    <a href="http://example.net/~baseeret" rel="spouse met">Baseeret</a>
    <a href="http://example.net/~lindsaybelle" rel="child met">Lindsay Belle</a>
    </div>

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint