Standard head section of a WordPress Theme

# Valid DOCTYPE declaration:

The declaration must be the very first thing in your HTML document, before the <html> tag. The declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.

# tag includes language_attributes():

Displays the language attributes for the html tag. Builds up a set of html attributes containing the text direction and language information for the page.

# Correct XFN profile link in tag:

XFN™ (XHTML Friends Network) is a simple way to represent human relationships using hyperlinks. In recent years, blogs and blogrolls have become the fastest growing area of the Web. XFN enables web authors to indicate their relationship(s) to the people in their blogrolls simply by adding a ‘rel’ attribute to their tags.

For reference:
<head profile=”http://gmpg.org/xfn/11″> or <link rel=”profile” href=”http://gmpg.org/xfn/11″ /> or (Exception: Wholly HTML 5 themes must not have the profile, as HTML 5 does not support it.)

# Correct content-type meta declaration:

The html meta tag HTTP-EQUIV CONTENT-TYPE allows you to specify the media type (i.e. text/html) and the character set. As different languages have different default character sets, this can be important in ensuring that your page displays correctly in all browsers. So using this meta tag can be very important.

For reference:
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /> OR <meta charset=”<?php bloginfo(‘charset’); ?>” /> declared before <title>

Leave comment

Your email address will not be published. Required fields are marked with *.