WordPress.org

Ready to get started?Download WordPress

Forums

header link: http://gmpg.org/xfn/11 (7 posts)

  1. marthalee
    Member
    Posted 3 years ago #

    WHY does header.php in Twenty ten link to http://gmpg.org/xfn/11???

    ?></title>
    
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

    It doesn't seem to be a css file, or a php file, or anything useable by the program... what (if anything) does it do? Nothing obvious happens if I remove it. Why is it there?

  2. XFN is a HTML profile which describes the meaning of extra semantic data that can be added to the rel attribute of outbound links.

    If you specify relationship information in the link manager for the links you add then this describes the meaning of those attributes to a consumer of your site.

    You can read more about XFN here: http://gmpg.org/xfn/

  3. marthalee
    Member
    Posted 3 years ago #

    OK, yes, http://gmpg.org/xfn has much the same information as /xfn/11.

    Neither seems to be a page that the program can use--both seem to be display pages to be read. Yet they are hidden away from both visitor and many site owners in the header file. What's the point? And especially if--I am a bit unclear here--IF this page must be successfully accessed on the way to loading the WordPress page. Seems like it would just slow things down and add bazillions of "hits" to gmpg.org, all to no end.

  4. The link will not get hit for every page load.

    It is there so that a user agent that wants to extract the XFN metadata know what the profile being used on the page is.

    For more info on rel=profile you can read this: http://microformats.org/wiki/rel-profile

    In general a user agent that was aware of XFN would just know what that profile meant and would not access the url everytime the page loaded.

    Much the same as a browser doesn't go and load the DTD specified in the DOCTYPE element at the top of every HTML page.

  5. kutlayegen
    Member
    Posted 3 years ago #

    So? We should remove it?

  6. Frankie Jarrett
    Member
    Posted 3 years ago #

    @kutlayegen it's up to you, I know I am because my theme isn't validating

    It's throwing an error during W3C markup validation..."profile" not an acceptable value for "rel".

    http://validator.w3.org

    //Frankie

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    You should bear in mind that the HTML 5 spec is still in draft form and, as such, is likely to change over the next 2 - 3 years.

Topic Closed

This topic has been closed to new replies.

About this Topic