<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HTML5 Doctor &#187; seo</title>
	<atom:link href="http://html5doctor.com/tag/seo/feed/" rel="self" type="application/rss+xml" />
	<link>http://html5doctor.com</link>
	<description>helping you implement HTML5 today</description>
	<lastBuildDate>Wed, 01 Feb 2012 09:28:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>HTML5 and Search Engine Optimisation (SEO)</title>
		<link>http://html5doctor.com/html5-seo-search-engine-optimisation/</link>
		<comments>http://html5doctor.com/html5-seo-search-engine-optimisation/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 14:30:58 +0000</pubDate>
		<dc:creator>Bruce Lawson</dc:creator>
				<category><![CDATA[Elements]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Structure]]></category>
		<category><![CDATA[bing]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=2821</guid>
		<description><![CDATA[<p>Through our handy Ask The Doctor service, we get a lot of e-mails asking us about <abbr>HTML</abbr>5's effect on Search Engine Optimisation (SEO). While we can't answer in great detail (Messrs Google, Yahoo, Bing, and their friends haven't sent us in-depth details of their algorithms), we've rounded up some useful facts from Google, the world's most dominant search engine.</p>]]></description>
			<content:encoded><![CDATA[<p>Through our handy <a href="http://html5doctor.com/ask-the-doctor/">Ask The Doctor</a> service, we get a lot of e-mails asking us about <abbr>HTML</abbr>5&#8242;s effect on Search Engine Optimisation (SEO). While we can&#8217;t answer in great detail (Messrs Google, Yahoo, Bing, and their friends haven&#8217;t sent us in-depth details of their algorithms), we&#8217;ve rounded up some useful facts from Google, the world&#8217;s most dominant search engine.</p>
<p>At the moment, <a href="http://googlewebmastercentral.blogspot.com/2010/03/microdata-support-for-rich-snippets.html">Google indexes HTML5 microdata</a> (<a href="/microdata/">more about microdata</a>) but does not reward you for using the new <abbr>HTML</abbr>5 structural elements, but neither does it penalise you:</p>
<blockquote cite="http://www.google.com/support/forum/p/Webmasters/thread?tid=2d4592cbb613e42c&amp;hl=en">
<p>As <abbr>HTML</abbr>5 gains in popularity and as we recognize specific markup elements that provide value to our indexing system, this is likely to change, but at the moment I would not assume that you would have an advantage by using <abbr>HTML</abbr>5 instead of older variants&hellip;.</p>
<p>Personally, I would recommend using <abbr>HTML</abbr>5 where you think that it already makes sense, perhaps reverting to <abbr>HTML</abbr>4 if you can determine that the browser won&#8217;t support the elements of <abbr>HTML</abbr>5 that you use properly. While this will not result in an advantage for your content in our search results, it generally wouldn&#8217;t be disadvantageous either.</p>
<footer><cite><a href="http://www.google.com/support/forum/p/Webmasters/thread?tid=2d4592cbb613e42c&amp;hl=en">Google Webmaster Central: Does semantic html5 matter to google yet</a></cite></footer>
</blockquote>
<p><img src="http://html5doctor.com/wp-content/uploads/2011/01/search-engine-logos.jpg" alt="Logo's for Google, Yahoo and Bing" /></p>
<p>But they will take account of <abbr>HTML</abbr>5 once it becomes widespread, and they seem to be encouraging experimentation:</p>
<blockquote cite="http://www.google.com/support/forum/p/Webmasters/thread?tid=1d3850aec4e3dd96&amp;hl=en">
<p>Our general strategy is to wait to see how content is marked up on the web in practice and to adapt to that. If we find that more and more content uses <abbr>HTML</abbr>5 markup, that this markup can give us additional information, and that it doesn&#8217;t cause problems if webmasters incorrectly use it (which is always a problem in the beginning), then over time we&#8217;ll attempt to work that into our algorithms&hellip;.</p>
<p><abbr>HTML</abbr>5 is still very much a work in progress, so it&#8217;s great to see bleeding-edge sites making use of the new possibilities <img src='http://html5doctor.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<footer><cite><a href="http://www.google.com/support/forum/p/Webmasters/thread?tid=1d3850aec4e3dd96&amp;hl=en">Google Webmaster Central: How well does Googlebot deal with non-standard tags?</a></cite></footer>
</blockquote>
<p>The Doctors&#8217; advice on <abbr>SEO</abbr> is to follow Google&#8217;s time-honoured guidelines: <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=100782">write valid, cross-browser, accessible <abbr>HTML</abbr></a>, <a href="http://www.youtube.com/watch?v=GIn5qJKU8VM">don&#8217;t misuse markup or &#8220;cloak&#8221; with <abbr>CSS</abbr></a>, make a site with a clear hierarchy and text links, and <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=35769#1">write good content</a>:</p>
<blockquote cite="http://www.google.com/support/webmasters/bin/answer.py?answer=35769#1">
<p>Create a useful, information-rich site, and write pages that clearly and accurately describe your content.</p>
<footer><cite><a href="http://www.google.com/support/webmasters/bin/answer.py?answer=35769#1">Google Webmaster Guidelines: Design and content guidelines</a></cite></footer>
</blockquote>
<p>Happy New Year. May your hat remain white.</p>
<h2>HTML5 microdata and schema.org</h2>
<p>Added October 2011:</p>
<p><a href="http://schema.org/">Schema.org</a> is a consortium of Bing, Google and Yahoo!. On its website it says</p>
<blockquote><p>[schema.org] provides a collection of schemas, i.e., html tags, that webmasters can use to markup their pages in ways recognized by major search providers. Search engines including Bing, Google and Yahoo! rely on this markup to improve the display of search results</p></blockquote>
<p>schema.org uses <a href="/microdata/">HTML5 microdata</a> with new elements like <a href="/the-time-element/"><code>&lt;time&gt;</code></a>. So, yes: in this special case (using these markup patterns) will ensure that this HTML5 will assist search engines to categorise your content (which is not the same as guaranteeing a higher ranking, of course).</p>
<h2>Multiple &lt;h1&gt;s on a page</h2>
<p>The new <a href="/outlines/">HTML5 outlining algorithm</a> allows multiple &lt;h1&gt;s in a page. We get lots of questions about whether developers will be penalised by Google which, according to myth, disallowed this.</p>
<p>I say &#8220;myth&#8221; because Google has always allowed multiple &lt;h1&gt;s on a page, provided that it&#8217;s organic rather than trying to game the system, as this video shows:</p>
<p><iframe width="400" height="233" src="http://www.youtube.com/embed/GIn5qJKU8VM?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>However, don&#8217;t go too crazy with the &lt;h1&gt;-only approach as it removes any hierarchy from your pages in browsers that don&#8217;t implement the outline algorithm and screenreaders that sit on top of them.</p>
<div id="crp_related">
<h3>Related Posts:</h3>
<ul class="related">
<li><a href="http://html5doctor.com/the-nsfw-element/" rel="bookmark" class="crp_title">The nsfw element</a></li>
<li><a href="http://html5doctor.com/microdata/" rel="bookmark" class="crp_title">Extending HTML5 — Microdata</a></li>
<li><a href="http://html5doctor.com/time-and-data-element/" rel="bookmark" class="crp_title">Goodbye time, datetime, and pubdate. Hello data and value.</a></li>
<li><a href="http://html5doctor.com/outlines/" rel="bookmark" class="crp_title">Document Outlines</a></li>
<li><a href="http://html5doctor.com/youtube-and-vimeo-support-html5-video/" rel="bookmark" class="crp_title">YouTube and Vimeo support HTML5 Video</a></li>
</ul>
</div>
<p><a href="http://html5doctor.com/html5-seo-search-engine-optimisation/" rel="bookmark">HTML5 and Search Engine Optimisation (SEO)</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on January 11, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/html5-seo-search-engine-optimisation/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Your Questions #13</title>
		<link>http://html5doctor.com/your-questions-13/</link>
		<comments>http://html5doctor.com/your-questions-13/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 14:15:52 +0000</pubDate>
		<dc:creator>Richard Clark</dc:creator>
				<category><![CDATA[Questions]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[custom tags]]></category>
		<category><![CDATA[h1]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[hgroup]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=2382</guid>
		<description><![CDATA[The clinic is getting busy with more <abbr>HTML</abbr>5 ailments. This week, we'll cover server-side validation, immutable images with <code>&#60;canvas&#62;</code>, retrieving drawn objects from a <code>&#60;canvas&#62;</code>, creating custom tags, the <code>role</code> attribute, and the effects of <code>&#60;hgroup&#62;</code> on <abbr>SEO</abbr>.]]></description>
			<content:encoded><![CDATA[<p><img src="http://html5doctor.com/wp-content/uploads/2009/07/html5doctor-treatment.gif" alt="Doctor treating a patient illustration" class="alignright size-full wp-image-424" /> The clinic is getting busy with more <abbr>HTML</abbr>5 ailments. This week, we&#8217;ll cover server-side validation, immutable images with <code>&lt;canvas&gt;</code>, retrieving drawn objects from a <code>&lt;canvas&gt;</code>, creating custom tags, the <code>role</code> attribute, and the effects of <code>&lt;hgroup&gt;</code> on <abbr>SEO</abbr>.</p>
<section>
<h2>Server-side validation</h2>
<p>Brian asked:</p>
<blockquote>
<p>We currently use <abbr>PHP</abbr>-Tidy to validate the <abbr>HTML</abbr> mark-up of content regions of our site. Our content regions have images that represent modules in our system that get translated into code for things like processing video, forms, etc. I&#8217;ve been making the move to upgrade these modules to use new <abbr>HTML</abbr>5 elements, but I&#8217;m finding that Tidy is stripping out these elements and I&#8217;m doing a lot of dancing around these issues right now. Are you aware of any server-side processing scripts that have been updated to work with <abbr>HTML</abbr>5 and perhaps with <abbr>ARIA</abbr> support as well?</p>
</blockquote>
<p>The current contender is <a href="http://code.google.com/p/html5lib/">html5lib</a>. The <abbr>PHP</abbr> version is v0.1, so <abbr title="Your Mileage May Vary">YMMV</abbr>.</p>
<p>It seems that <a href="http://lists.w3.org/Archives/Public/html-tidy/2010JanMar/0005.html"><abbr>HTML</abbr>5 support won’t be coming to Tidy anytime soon</a>.</p>
<p>Good luck! Peace &#8211; Oli</p>
</section>
<section>
<h2>Immutable image with <code>&lt;canvas&gt;</code></h2>
<p>Mike asked:</p>
<blockquote>
<p>We do have a medical app and we want to use <code>&lt;canvas&gt;</code> to let docs draw over a still picture.  The only thing I cannot do is keep the picture unchanged when they use an &#8220;eraser&#8221; (basically a white pen). I haven&#8217;t found any example on the web so may be it&#8217;s impossible. It seems that the background image either part of the <code>canvas</code> of a <code>div</code> containing the canvas becomes part of the canvas itself. If it&#8217;s possible what&#8217;s the secret? Thanks</p>
</blockquote>
<p>This is possible in a variety of ways. Here&#8217;s a quick demonstration of <a href="http://jsbin.com/icumi3/2">one of the solutions</a>. Open the demo up in Firefox 3.6 or later, drop an image in the box, draw over it, and click the &#8220;Drawn image as PNG&#8221; button to retrieve what you drew (without the background image).</p>
<p>Here&#8217;s what&#8217;s happening: the canvas is sitting inside of a <code>&lt;div&gt;</code> containing my still image, but I&#8217;m drawing on the nested <code>&lt;canvas&gt;</code> (I think you had it the other way around, which was causing your problems).</p>
<p>Hope that helps, Remy</p>
</section>
<section>
<h2>Retrieving objects from <code>&lt;canvas&gt;</code></h2>
<p>DJ asked:</p>
<blockquote>
<p>I wanted to know if there is any way in which the drawn objects say rectangle, circle, line, &hellip; within canvas can be identified based on the selection at later point in time (after they are drawn).</p>
<p>If there are no direct <abbr>API</abbr>s how could we achieve it. Do we have to store the co-ordinates of each of the created object within and do the object identification based on mouse cursor? Thanks</p>
</blockquote>
<p>Unfortunately, there&#8217;s no way to retrieve these objects unless you write your own system to handle it. There&#8217;s no native support for this in <code>&lt;canvas&gt;</code>.</p>
<p>It sounds like you actually need to use <abbr>SVG</abbr>, which will allow to you to hook event listeners and query the <abbr>DOM</abbr> tree that&#8217;s created. If you need some convincing that <abbr>SVG</abbr> is the right tool for the job, have a look at the <a href="http://raphaeljs.com/">Raphaël JavaScript Library</a>. It uses <abbr>SVG</abbr> exclusively and is able to create some very impressive drawings and animations.</p>
<p>Cheers, Remy</p>
</section>
<section>
<h2>Custom tags</h2>
<p>Mike asked:</p>
<blockquote>
<p>So by using some JavaScript I can insert unfamiliar tags into <abbr>IE</abbr>, and using <abbr>CSS</abbr> I can format them. My question is why stop with <abbr>HTML</abbr>5 tags like section and nav? What are the pros and cons of custom tags like <code>&lt;content&gt;</code>, <code>&lt;story&gt;</code>, <code>&lt;comment&gt;</code>, <code>&lt;blog&gt;</code> or even <code>&lt;mike&gt;</code>, <code>&lt;was&gt;</code>, <code>&lt;here&gt;</code>?</p>
</blockquote>
<p>Custom elements go against having a standard like <abbr>HTML</abbr>5. Standards map out the set of elements, attributes, and <abbr>API</abbr>s that the browsers need to implement so web developers can use them, and they provide those developers with a common approach to marking up a web page.</p>
<p>If custom elements were allowed, we would have an infinite number of ways to mark up content, many of which would share a common goal but require different implementations. As an example, here is a number of different elements I can dream up for some primary content: <code>&lt;article&gt;</code>, <code>&lt;blog&gt;</code>, <code>&lt;entry&gt;</code>, <code>&lt;post&gt;</code>, <code>&lt;page&gt;</code>, <code>&lt;main&gt;</code>, <code>&lt;primary&gt;</code>, <code>&lt;content&gt;</code>, <code>&lt;document&gt;</code>, <code>&lt;doc&gt;</code>, <code>&lt;blogpost&gt;</code>, <code>&lt;publication&gt;</code>, <code>&lt;thenameofthearticlewithnospacesorpunctuation&gt;</code>, <code>&lt;item&gt;</code>, <code>&lt;block&gt;</code>, <code>&lt;blob&gt;</code>, <code>&lt;text&gt;</code>, <code>&lt;txt&gt;</code>, and <code>&lt;paper&gt;</code>. Many of them are bad ideas, but hopefully you see my point. This doesn&#8217;t even account for the more predictable <code>&lt;contentone&gt;</code>, <code>&lt;contenttwo&gt;</code>, <code>&lt;articlefifty&gt;</code> that would likely also be used.</p>
<p>This sort of markup would make <abbr>HTML</abbr> a nightmare to maintain. A developer coming into an existing site would have to learn which elements have been used and what their purpose is. And it&#8217;s not just painful for developers. Browser vendors would have to find ways to parse these elements and define how they should be used. Is this element supposed to be block-level? Is it interactive? Should it impact the document outline? And what about search engines? How do they know that <code>&lt;myobscureelement&gt;</code> defines the most important content on the page, the content that should really be indexed?</p>
<p>Standards narrow the possibilities and ensure developers, browsers, and machines (search engines and the like) are all speaking the same language. Many people spend a great deal of time debating the specification, trying to reach consensus on which proposals should be standardized and how they should be implemented.</p>
<p>So stick to the standards! They exist for everyone&#8217;s benefit. As browsers continue to implement the specification correctly (even <abbr>IE</abbr> is catching up), our jobs will be made easier and we can spend more time creating really cool things <img src='http://html5doctor.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>John Alsopp&#8217;s fantastic article <a href="http://www.alistapart.com/articles/semanticsinhtml5">Semantics in <abbr>HTML</abbr>5</a> goes into more detail about this issue. You can also see where some of the element names came from by looking at the work Hixie did researching <a href="http://code.google.com/webstats/2005-12/classes.html">class names in Google&#8217;s index</a>.</p>
<p>Regards, Mike</p>
</section>
<section>
<h2>The <code>role</code> attribute, SEO, and <code>&lt;hgroup&gt;</code></h2>
<p>Robson asked:</p>
<blockquote>
<p>What about the role attribute? Was it dropped from specification? What will be the &#8220;role&#8221; of the role attribute in <abbr>HTML</abbr>5?</p>
<p>Today, just the home page should have the name of the site into a H1 element. On others pages, the H1 should be used to the title of the articles. How do search engines interpret the HGROUP and multiples HEADER and H1 elements today? How to implement the HGROUP and the HEADER today without impact the SEO? Thanks, guys!</p>
</blockquote>
<p>To answer your first three questions, <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#annotations-for-assistive-technology-products-(aria)"><code>role</code> is in</a>. You can use it belt-and-suspenders style until assistive technology catches up with <abbr>HTML</abbr>5. Just be careful: “<q>Authors may use the <abbr>ARIA</abbr> role and aria-* attributes on <abbr>HTML</abbr> elements, in accordance with the requirements described in the <abbr>ARIA</abbr> specifications, except where these conflict with the strong native semantics described below</q>”.</p>
<p>For the second part of your question, that&#8217;s not true. You can use more than one <code>&lt;h1&gt;</code> in <abbr>HTML</abbr> 4/<abbr>XHTML</abbr> 1. It&#8217;s not advised to make every heading <code>&lt;h1&gt;</code> in <abbr>HTML</abbr> 4/<abbr>XHTML</abbr> 1 (because historically some people did that to spam), but it may be appropriate in some cases — e.g., site name and page title. Using two <code>&lt;h1&gt;</code>&#8216;s on a single page has no effect on <abbr>SEO</abbr>.</p>
<p>With regard to <code>&lt;hgroup&gt;</code> and <code>&lt;header&gt;</code>, you’re asking the wrong question. Search engines care about high-quality, relevant content. Search engines penalise spamming, but writing markup according to the specification is not spamming. The <abbr>HTML</abbr>5 editor works at Google, so they’re well aware of the spec. html5doctor.com <em>has</em> implemented <code>&lt;hgroup&gt;</code> and <code>&lt;header&gt;</code>, and it hasn&#8217;t hurt our search engine rankings any <img src='http://html5doctor.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>For more, see our articles on <a href="http://html5doctor.com/the-header-element/">the header element</a> and <a href="http://html5doctor.com/the-hgroup-element/">the hgroup element</a>.</p>
<p>You probably don’t want to use <code>&lt;h1&gt;</code> everywhere anyhow, as <abbr>CSS</abbr> selectors are not that smart. <em>If</em> you wrap every <code>&lt;h1&gt;</code>-<code>&lt;h6&gt;</code> in a sectioning element (<code>&lt;section&gt;</code>, <code>&lt;article&gt;</code>, <code>&lt;nav&gt;</code>, <code>&lt;aside&gt;</code>), you don’t have to worry about keeping a logical order for your headings. Doing this means you don’t need to overwrite <abbr>CSS</abbr> as much. The old style, however, with the requirement to keep a logical order for your headings, still works.</p>
<p>Again, you&#8217;re concerned with the wrong thing. Good SEO = good content. Worrying about placement or what search engines think is a waste of time — worry about good content.</p>
<p>Peace &#8211; Oli</p>
</section>
<section>
<h2>Got a question for us?</h2>
<p>That wraps up this round of questions. If you&#8217;ve got a query about the <abbr>HTML</abbr>5 spec or how to implement it, you can <a href="http://html5doctor.com/ask-the-doctor/">get in touch</a> with us and we&#8217;ll do our best to help.</p>
</section>
<div id="crp_related">
<h3>Related Posts:</h3>
<ul class="related">
<li><a href="http://html5doctor.com/your-questions-answered-11/" rel="bookmark" class="crp_title">Your Questions Answered #11</a></li>
<li><a href="http://html5doctor.com/your-questions-16/" rel="bookmark" class="crp_title">Your Questions #16</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-7/" rel="bookmark" class="crp_title">Your Questions Answered #7</a></li>
<li><a href="http://html5doctor.com/your-questions-5/" rel="bookmark" class="crp_title">Your Questions Answered #5</a></li>
<li><a href="http://html5doctor.com/your-questions-18/" rel="bookmark" class="crp_title">Your Questions 18</a></li>
</ul>
</div>
<p><a href="http://html5doctor.com/your-questions-13/" rel="bookmark">Your Questions #13</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on September 28, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/your-questions-13/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Your questions answered #2</title>
		<link>http://html5doctor.com/your-questions-answered-2/</link>
		<comments>http://html5doctor.com/your-questions-answered-2/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 08:39:09 +0000</pubDate>
		<dc:creator>Jack Osborne</dc:creator>
				<category><![CDATA[Questions]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[web sockets]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://html5doctor.com/?p=618</guid>
		<description><![CDATA[Last month we decided to pull together a post that covered some of the emails that were sent in through the contact page. Since the publication of the last post we have received a lot more questions regarding the HTML 5 spec and have decided that some of these  warranted another post.]]></description>
			<content:encoded><![CDATA[<p><img src="http://html5doctor.com/wp-content/uploads/2009/07/html5doctor-treatment.gif" alt="Doctor treating a patient illustration" class="alignright size-full wp-image-424" />Since the launch of the site we&#8217;ve be welcoming questions regarding the HTML 5 spec through the <a href="/contact/">contact form</a>.  It doesn&#8217;t matter if you think your question is too &#60;H1&#62;big&#60;/H1&#62; or &#60;small&#62;small&#60;/small&#62; we&#8217;re here to help.</p>
<p>Last month we decided to pull together a post that covered some of the emails that were sent in through the contact page. Since the publication of the last post we have received a lot more questions regarding the HTML 5 spec and have decided that some of these  warranted another post.</p>
<h2>Content Type</h2>
<p>Christian asked:</p>
<blockquote><p>
In checking out various implementations of html5 around the web with a quick &#8220;view source&#8221;, I find everyone seems to specify content type in the headers like so; &#60;meta http-equiv=&#8221;content-type&#8221; content=&#8221;text/html;charset=utf-8&#8243;&#62; even though it&#8217;s already a part of the HTTP header.</p>
<p>Does it really need to be in both locations, or can we all cut out that redundancy as long as our servers are specifying the content type appropriately in the HTTP header?
</p></blockquote>
<p>If you take a look at Dr.Bruce&#8217;s weblog <a href="http://www.brucelawson.co.uk/" title="Bruce Lawson">http://www.brucelawson.co.uk/</a> you will see that most of the information can be cut out and simplified. As more and more sites make the jump to HTML 5 you will be able to see what elements can and cannot be left out. If you&#8217;re interested in checking out more sites then please feel free to visit our sister site <a href="http://html5gallery.com">HTML 5 Gallery</a> where you will be able to view the source of plenty of sites that are already sporting HTML 5 elements in their markup.</p>
<p>If you&#8217;re looking to take your reading even further then Dr. Remy has recently published an article entitled <a href="/html-5-boilerplates/" title="HTML 5 Boilerplates">HTML5 boilerplates</a> which should give you more information on the above.</p>
<h2>HTML 5 &amp; SEO</h2>
<p>Julio asked:</p>
<blockquote><p>
I&#8217;m thinking of using HTML 5 in my projects as soon as possible, but I need to be sure that everything will work just as fine as HTML 4. My question is: Google (and other search engines) is already indexing HTML 5 sites? In terms of SEO, will I have any drawbacks?
</p></blockquote>
<p>In answer to your question, yes Google is indexing HTML 5 sites. Between <a href="/about/" title="the HTML 5 doctors">us</a> we run several sites built with HTML 5 markup and none of the Doctors have had any issues with our sites being indexed or competitive on key phrases.</p>
<aside><q>Yes, Google is indexing <abbr>HTML<abbr> 5.</q></aside>
<p>In fact if you look at the source code of google.com you&#8217;ll see that their doctype is declared as &#60;! doctype html&#62; meaning it&#8217;s using HTML 5! Another site that is part of the Google group, Youtube, has also recently created a mock-up of their layout that can be found at <a href="http://www.youtube.com/html5">http://www.youtube.com/html5</a> and this definitely shows that they are thinking about it. One last fact to help settle your nerves, if we&#8217;ve not managed to do it already, is that Ian Hickson who is writing the bulk of the HTML 5 spec works for Google so we don&#8217;t think you&#8217;ll have any problems.</p>
<h2>HTML 5 Templates</h2>
<p>Klaus asked:</p>
<blockquote><p>
Where can if find HTML 5 Templates?
</p></blockquote>
<p>When this email came in, we weren&#8217;t too sure by what Klaus meant so we&#8217;re tackling his question with two responses.</p>
<p>For static HTML pages you&#8217;d be hard pushed to find a better resource than Remy&#8217;s boilerplate explained here: <a href="/html-5-boilerplates/" title="HTML 5 templates">http://html5doctor.com/html-5-boilerplates/</a></p>
<p>However, if you are looking for some HTML 5 WordPress themes then have a look at the following:</p>
<ul>
<li><a href="http://www.brucelawson.co.uk/2009/redesigning-with-html-5-wai-aria/" title="Bruce Lawson HTML 5 wordpress theme">http://www.brucelawson.co.uk/2009/redesigning-with-html-5-wai-aria/</a></li>
<li><a href="http://diggingintowordpress.com/2009/07/free-html-5-wordpress-theme/" title="Digging into WordPress HTML 5 theme">http://diggingintowordpress.com/2009/07/free-html-5-wordpress-theme/</a></li>
<li><a href="http://www.thatstandardsguy.co.uk/blog/2009/04/03/brave-new-world-wordpress-theme/" title="That Standards guy HTML 5 wordpress theme">http://www.thatstandardsguy.co.uk/blog/2009/04/03/brave-new-world-wordpress-theme/</a></li>
</ul>
<h2>WebSocket Support</h2>
<p>Dave asked:</p>
<blockquote><p>
There&#8217;s a lot of features, and I can&#8217;t find anywhere that lists current support in major browser versions (and/or with Google Gears).  The particular one I&#8217;m looking for is WebSocket support
</p></blockquote>
<p>This is a good resource for checking the state of browser support for a particular feature: <a href="http://a.deveria.com/caniuse/">http://a.deveria.com/caniuse/</a> Regarding web workers specifically, we&#8217;ve come across a library that implements Web Sockets and falls away when it&#8217;s available natively.</p>
<p>None of the doctors have used these personally but feel that they will be useful in answer to your question:</p>
<ul>
<li><a href="http://orbited.org/ title="Orbited.org"">http://orbited.org/</a></li>
<li><a href="http://molly.com/html5/html5-0709.html" title="Molly on HTML 5">http://molly.com/html5/html5-0709.html</a></li>
<li><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML_5)" title="HTML 5 layout engines">http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML_5)</a></li>
<li><a href="http://wiki.whatwg.org/wiki/Implementations_in_Web_browsers" title="Working group on implementation in web browsers">http://wiki.whatwg.org/wiki/Implementations_in_Web_browsers</a></li>
</ul>
<h2>Reusing Elements Within Same Page</h2>
<p>Daniel asked:</p>
<blockquote><p>
Dear Doctor,<br />
Just a quick confirmation please. Am I right in thinking that nav, like header and footer, can be used more than once in a single page?  For example, surrounding a menu at the top of the page and surrounding next/previous buttons at the bottom. Come to think of it, is it fair to say that all tags except html, head and body can be used more than once?<br />
Thanks in advance, doctor.<br />
I&#8217;ll be back soon about my dodgy knee.
</p></blockquote>
<p>Yes, for more information please reference this article &#8211; <a href="/designing-a-blog-with-html5/" title="designing a blog with HTML 5">http://html5doctor.com/designing-a-blog-with-html5/</a> and this diagram of a single blog entry (of course, there can be many blog entries on a page) <a href="http://html5doctor.com/wp-content/uploads/2009/06/html5-article-outline.gif" title="diagram of HTML 5 blog">http://html5doctor.com/wp-content/uploads/2009/06/html5-article-outline.gif</a> probably.</p>
<p>Other articles that we have already covered on the site &#8211; <a href="/the-header-element/" title="HTML 5 header element">http://html5doctor.com/the-header-element/</a>, <a href="/the-footer-element/" title="HTML 5 footer element">http://html5doctor.com/the-footer-element/</a> and a great article on the <a href="/nav-element/" title="HTML 5 nav element">http://html5doctor.com/nav-element/</a>.</p>
<h2>Learning HTML/XHTML Before Reading About HTML 5</h2>
<p>Manuel asked:</p>
<blockquote><p>
Hi, I&#8217;m new to this field and I would like to learn HTML.</p>
<p>If I understand correctly, most future web sites will be written in HTML5 (served using the text/html MIME type) and just a few sites will use XHTML5 (served using the application/xhtml+xml MIME type). As a consequence, I will focus on HTML5.</p>
<p>HTML5 can use both the HTML syntax and the stricter XHTML syntax, but since I&#8217;m starting from scratch I suppose I could safely ignore the XHTML syntax and focus on the HTML syntax (HTML 4.1/5). Why bother about XHTML syntax in 2009? Unfortunately all modern introductory book/online resources about HTML are focused on the XHTML syntax. Where I could learn the pure HTML syntax without any reference to the useless and distracting (for my purposes) XHTML syntax?
</p></blockquote>
<p>Your best bet would be to get into the good coding practices of <abbr>XHTML</abbr> (lowercase tag, always closing tags, etc.) while writing HTML, there are a number of resources on the Internet for learning HTML 4.01 which you shouldn&#8217;t have any problems finding. A particular favorite of mine when I was starting out was <a href="http://htmldog.com/">HTMLDog</a>.</p>
<p>We understand the issue of a number of the resources use the XHTML sytax but as I said above this will get you into good coding habits when writing HTML (particularly as HTML is less strict).</p>
<blockquote><p>
thank you for your quick reply. You won me: I will learn XHTML (from HTMLDog). Just a last question: when in the next future I will make the transition to HTML5 (served using the text/html MIME type) I hope the XHTML syntax validates anyway, so that I will have just to change the doctype of my pages to &#60;!DOCTYPE html&#62;. Right? (My fear is that the XHTML syntax will require a XHTML5 doctype).
</p></blockquote>
<p>This is correct though you won&#8217;t get the extra semantics added by HTML 5. For that I suggest you read the articles that appear on the site. If you want to use semantic class naming in your current XHTML I suggest you see the related links after &#8216;Automated Conversion&#8217; in this post. &#8211; <a href="/your-questions-answered-1/">http://html5doctor.com/your-questions-answered-1/</a></p>
<h2>There we have it folks&hellip;</h2>
<p>Another quick round up of some of the more difficult questions we&#8217;ve had to respond to over the last few weeks. We hope that you&#8217;ll find this article helpful and remember that if you have a question that hasn&#8217;t been covered in an article so far feel free to get in touch, you never know, your question might just appear in one of these posts.
<div id="crp_related">
<h3>Related Posts:</h3>
<ul class="related">
<li><a href="http://html5doctor.com/your-questions-answered-3/" rel="bookmark" class="crp_title">Your Questions Answered #3</a></li>
<li><a href="http://html5doctor.com/your-questions-answered-1/" rel="bookmark" class="crp_title">Your questions answered #1</a></li>
<li><a href="http://html5doctor.com/html-5-xml-xhtml-5/" rel="bookmark" class="crp_title">HTML 5 + XML = XHTML 5</a></li>
<li><a href="http://html5doctor.com/your-questions-17/" rel="bookmark" class="crp_title">Your Questions #17</a></li>
<li><a href="http://html5doctor.com/your-questions-14/" rel="bookmark" class="crp_title">Your Questions #14</a></li>
</ul>
</div>
<p><a href="http://html5doctor.com/your-questions-answered-2/" rel="bookmark">Your questions answered #2</a> originally appeared on <a href="http://html5doctor.com">HTML5 Doctor</a> on August 20, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://html5doctor.com/your-questions-answered-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

