<?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>HTMLCenter Web Development Blog &#187; HTML Tutorials</title>
	<atom:link href="http://www.htmlcenter.com/blog/category/html-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.htmlcenter.com</link>
	<description>Web Development Help and Tutorials</description>
	<lastBuildDate>Sat, 04 Feb 2012 02:56:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Firefox and HTML5</title>
		<link>http://www.htmlcenter.com/blog/firefox-and-html5/</link>
		<comments>http://www.htmlcenter.com/blog/firefox-and-html5/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 00:33:14 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[eric meyer]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[html5doctor]]></category>
		<category><![CDATA[reset]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=2191</guid>
		<description><![CDATA[Earlier this evening, I was reminded of just how primitive the HTML5 support was in Firefox 3.5/3.6. While we have seen three major version releases since 3.5, it was actually still the latest version of Firefox less than 6 months ago (and was that way for almost 2 years). Therefore, Firefox 3.5.x still holds a [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/what-is-html5/' rel='bookmark' title='What Is HTML5?'>What Is HTML5?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Earlier this evening, I was reminded of just how primitive the HTML5 support was in <strong>Firefox 3.5/3.6</strong>. While we have seen <strong>three major version releases</strong> since 3.5, it was actually still the latest version of Firefox <strong>less than 6 months ago</strong> (and was that way for almost 2 years). Therefore, Firefox 3.5.x still holds a decent amount of market share (probably as much as, if not more than IE6 did a year or two ago). Looking at a handful of websites for which I have analytics data, versions of Firefox prior to 4 still accounted for anywhere between 2% and 15% of the total visits to those sites last month. With all of that information, it&#8217;s probably still important to make sure your sites work in versions of Firefox as far back as 3.5.</p>
<p>There are two <strong>somewhat major gotchas</strong> in the way Firefox 3.x handled HTML5. The first is easily fixed with a few lines of CSS. The second can only really be fixed if you rewrite some of your HTML.<span id="more-2191"></span></p>
<h2>Block vs. Inline</h2>
<p>When Firefox first introduced support for new HTML5 elements, all of those new elements were <strong>treated as inline</strong>. Therefore, if you want Firefox 3.5.x to treat your new HTML5 elements the same way newer versions of Firefox, Chrome, Safari, Opera and even IE (IE7 &amp; 8 require an HTML5 script like <a href="http://code.google.com/p/html5shiv/">HTML5 Shim/Shiv</a> to add support), you need to include a little bit of reset CSS.</p>
<p>Thankfully, <a href="http://html5doctor.com">the HTML5 Doctor</a> has provided us with <a href="http://html5doctor.com/html-5-reset-stylesheet/">a nice HTML5 branch of Eric Meyer&#8217;s reset stylesheet</a> that includes a line that explicitly declares which HTML5 elements should be treated as block-level (hat-tip to <a href="http://twitter.com/#!/KeriHenare">Keri Henare</a> for <a href="http://twitter.com/KeriHenare/status/104338982745292800">pointing me to that reset stylesheet</a>).</p>
<p>If you, like me, use a separate reset stylesheet (I tend to include the <a href="http://developer.yahoo.com/yui/reset/">Yahoo! User Interface reset CSS</a> in all of my projects), you can still just copy the necessary code from the HTML5 Doctor sheet and paste it in at the top of your custom stylesheet.</p>
<p>I&#8217;ve included that specific block of code below, but I would still recommend visiting <a href="http://html5doctor.com/html-5-reset-stylesheet/">the HTML5 Doctor article</a> to keep up with any changes or additional information you might need.</p>
<pre>article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}</pre>
<h2>Anchors Aweigh</h2>
<p>The second major issue is quite a bit more frustrating. One of the great new features introduced in HTML5 is the ability to wrap <strong>block-level elements</strong> and even multiple elements in a <strong>single anchor tag</strong>. For instance, you can now do something like:</p>
<pre>&lt;a href="http://google.com/"&gt;
&lt;p&gt;This is a paragraph&lt;/p&gt;
&lt;p&gt;&lt;img src="http://example.com/img.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;More text below the image&lt;/p&gt;
&lt;/a&gt;</pre>
<p>Unfortunately, when Firefox 3.x sees code written like that, it <strong>tries to &#8220;fix&#8221; it</strong>. The DOM (document object model) then gets all messed up, and your elements end up <strong>all over the screen</strong> (or they don&#8217;t show up at all), instead of being arranged the way you would expect.</p>
<p>Sadly, at this time, the only solution I see is to stick with only using anchor tags inside of your block-level elements; not wrapping them around multiple block elements.</p>
<h2>Thoughts?</h2>
<p>Of course, I didn&#8217;t even begin to touch on all of the CSS3 (which, despite what the buzz around the Web might lead you to believe, is not HTML5) features and functions that are missing from Firefox; but for the most part, that falls into the category of graceful degradation.</p>
<p>Do you have better solutions? Are you at all worried about making your site work in Firefox 3.5 or 3.6? Are there other serious issues I might have missed? Let me know.</p>
<p><strong>As a sidenote</strong>, if you (like me) don&#8217;t have access to a copy of Firefox 3.x on your computer anymore, you can still <a href="http://oldversion.com/Mozilla+Firefox.html">grab one from OldVersion</a>. The instructions I posted back in April 2007 explaining <a href="http://www.htmlcenter.com/?p=102">how to install multiple copies of Firefox</a> still work just fine, if you need to install 3.x alongside the newest version(s).</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/what-is-html5/' rel='bookmark' title='What Is HTML5?'>What Is HTML5?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/firefox-and-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some HTML5 &#8220;Features&#8221; You Might Not Expect</title>
		<link>http://www.htmlcenter.com/blog/some-html5-features-you-might-not-expect/</link>
		<comments>http://www.htmlcenter.com/blog/some-html5-features-you-might-not-expect/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 02:02:18 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[details]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[required]]></category>
		<category><![CDATA[summary]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=2166</guid>
		<description><![CDATA[As we continue to transition whole-hog into HTML5 with new Web development, there are a few things you might need to know before deciding how to handle certain situations. I have discovered two somewhat major gotchas over the last few months that really made me reconsider my usage of the new technology. While articles, asides, [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/what-is-html5/' rel='bookmark' title='What Is HTML5?'>What Is HTML5?</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As we continue to transition whole-hog into HTML5 with new Web development, there are a few things you might need to know before deciding how to handle certain situations. I have discovered two somewhat major gotchas over the last few months that really made me reconsider my usage of the new technology.</p>
<p>While articles, asides, headers, footers, etc. are a fantastic way to introduce semantics into your page designs, there are a few elements and attributes that might not do quite what you&#8217;d expect.<span id="more-2166"></span></p>
<h2>Details &amp; Summary</h2>
<p>To begin with, let&#8217;s take a look at the &lt;details&gt; and &lt;summary&gt; elements. From my understanding of the new spec, the &lt;details&gt; element is supposed to include information about the page or article (such as author information, copyright, etc.). The &lt;summary&gt; element is supposed to be the really important information from that &lt;details&gt; umbrella.</p>
<p>What you might not know, however, is that some browsers (namely Chrome) handle the &lt;details&gt; and &lt;summary&gt; elements differently than other browsers currently do. I&#8217;m honestly not sure which browser implementation is correct, but they are pretty drastically different.</p>
<p>When a &lt;details&gt; element is used, Chrome automatically collapses its contents, adds an arrow next to it and adds an onclick handler to it so that the full content of the &lt;details&gt; element are shown only when clicked. If you include a &lt;summary&gt; tag inside the &lt;details&gt; element, that &lt;summary&gt; information will be the only text initially shown.</p>
<p>Any styles applied to the &lt;details&gt; element are essentially ignored by Chrome.</p>
<h2>Form Handling</h2>
<p>Another gotcha to watch out for is the way modern browsers handle forms. At this point, I believe Chrome, Safari, Firefox and Opera have all implemented ways to handle &#8220;required&#8221; elements in forms. In each of those browsers, if any form element has the &#8220;required&#8221; attribute, the browser will refuse to allow the user to submit the form until each of those elements has a value.</p>
<p>There are two issues I&#8217;ve experienced with these implementations.</p>
<p>First of all, each browser uses a completely different style of warning messages. There is no way (at least, as of yet) to style those warning messages. Last time I checked, the messages in Opera and Firefox were fairly attractive, but the messages in Chrome were incredibly ugly (sometimes the bubble in which the warning message appears doesn&#8217;t even stretch to the width of the message).</p>
<p>Another issue is that the implementation of these attributes is still being tested. There are minor (sometimes inconsistent) bugs in each of the browsers. A few months ago, when I was using the required attribute on a form, I found that some of the browsers had a lot of trouble recognizing when a radio button or select element had a value. No matter what value was chosen for those elements, the browser continued to stop the submission of the form, indicating that they were required.</p>
<h2>Conclusion</h2>
<p>The bottom line is, HTML5 brings with it some great possibilities; but it is still a very volatile technology. If you are going to use HTML5 for your projects, it might be a good idea to check on them fairly regularly to make sure that they still look the way you initially designed them. Of course, that said, even if you use XHTML1 or HTML4 with CSS2; the constant evolution of browsers might warrant a regular check on your pages anyway.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/what-is-html5/' rel='bookmark' title='What Is HTML5?'>What Is HTML5?</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/some-html5-features-you-might-not-expect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML Presentations with Opera</title>
		<link>http://www.htmlcenter.com/blog/html-presentations-with-opera/</link>
		<comments>http://www.htmlcenter.com/blog/html-presentations-with-opera/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 02:33:59 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[powerpoint]]></category>
		<category><![CDATA[projection]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=2159</guid>
		<description><![CDATA[Because Opera is not an extremely popular browser, most developers probably aren&#8217;t aware of one of its greatest features: Opera Show mode. Opera Show mode is the official name of the full screen mode for Opera (technically, it&#8217;s only called Opera Show when a projection media style sheet &#8211; discussed below &#8211; is present); and [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/opera-10-released/' rel='bookmark' title='Opera 10 Released'>Opera 10 Released</a></li>
<li><a href='http://www.htmlcenter.com/blog/applying-css/' rel='bookmark' title='Applying CSS'>Applying CSS</a></li>
<li><a href='http://www.htmlcenter.com/blog/opera-95-available/' rel='bookmark' title='Opera 9.5 Available'>Opera 9.5 Available</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-2160" style="float: right; margin: 0 0 1em 1em; border: none;" title="Opera-logo-PNG" src="http://www.htmlcenter.com/wp-content/uploads/2011/07/Opera-logo-PNG-300x105.png" alt="" width="300" height="105" />Because Opera is not an extremely popular browser, most developers probably aren&#8217;t aware of one of its greatest features: Opera Show mode. <a href="http://help.opera.com/Windows/9.22/en/display.html#fullscreen">Opera Show mode</a> is the official name of the full screen mode for Opera (technically, it&#8217;s only called Opera Show when a projection media style sheet &#8211; discussed below &#8211; is present); and it brings with it a great possibility.</p>
<p><a href="http://dev.opera.com/articles/view/html-css-slideshows/">More than two years ago</a>, Opera added support for the <code>projection</code> media mode in CSS. Whenever the browser is expanded to full screen mode, it activates the <code>projection</code> media, allowing you to apply a completely different stylesheet to the full screen page than you have in other settings.<span id="more-2159"></span></p>
<p>To take things a step further, if you include page-break instructions within the <code>projection</code> style sheet, Opera will treat each page as a separate screen, allowing you to use the Page Up and Page Down buttons on your keyboard to navigate from screen to screen.</p>
<p>With these features, you can actually use Opera to display a presentation built entirely with HTML and CSS (that&#8217;s right, no JavaScript and no Flash is necessary). Because you can build the presentation with HTML, you can make it more robust than a PowerPoint presentation, and it is infinitely more flexible and portable (after all, even if someone doesn&#8217;t have Opera on their computer, they can still view the contents of your presentation without any proprietary software).</p>
<p>To make things really flexible, I would recommend creating one style sheet for the <code>screen</code> that will style your presentation as a nice Web page for all browsers; creating an extended style sheet for the <code>projection</code> media that splits each slide into a separate page; and creating one more style sheet for <code>print</code> so that visitors (and you) can print out a nice, clean version of the presentation&#8217;s contents (of course, if you&#8217;re feeling really froggy, you could also create a <code>mobile</code> style sheet). Personally, I set mine up so that the &#8220;Notes&#8221; for each slide appear below each slide&#8217;s content when viewed in a normal window, and then have the notes hidden when viewed in Opera Show (along with some nice styling, obviously).</p>
<p>On a related note, don&#8217;t forget that the latest version of Opera supports almost as much of the CSS3 spec as Webkit, and that Opera supports SVG images; so you can do some really nice things with your slides.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/opera-10-released/' rel='bookmark' title='Opera 10 Released'>Opera 10 Released</a></li>
<li><a href='http://www.htmlcenter.com/blog/applying-css/' rel='bookmark' title='Applying CSS'>Applying CSS</a></li>
<li><a href='http://www.htmlcenter.com/blog/opera-95-available/' rel='bookmark' title='Opera 9.5 Available'>Opera 9.5 Available</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/html-presentations-with-opera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comments in HTML5</title>
		<link>http://www.htmlcenter.com/blog/comments-in-html5/</link>
		<comments>http://www.htmlcenter.com/blog/comments-in-html5/#comments</comments>
		<pubDate>Mon, 16 May 2011 20:54:12 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[semantic]]></category>
		<category><![CDATA[structure]]></category>
		<category><![CDATA[whatwg]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=2090</guid>
		<description><![CDATA[As we&#8217;ve discussed on this blog in the past, HTML5 introduces a lot of new elements that are intended specifically to imply semantic information. One of the elements being introduced is the &#60;article&#62; element. For the most part, the &#60;article&#62; element is supposed to denote a block of information that can stand on its own [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/a-look-into-html5-and-css3/' rel='bookmark' title='A Look Into HTML5 and CSS3'>A Look Into HTML5 and CSS3</a></li>
<li><a href='http://www.htmlcenter.com/blog/some-html5-features-you-might-not-expect/' rel='bookmark' title='Some HTML5 &#8220;Features&#8221; You Might Not Expect'>Some HTML5 &#8220;Features&#8221; You Might Not Expect</a></li>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As we&#8217;ve discussed on this blog in the past, HTML5 introduces a lot of new elements that are intended specifically to imply semantic information. One of the elements being introduced is the <code>&lt;article&gt;</code> element.</p>
<p>For the most part, the <code>&lt;article&gt;</code> element is supposed to denote a block of information that can stand on its own (essentially, the main content of the page or post). When developing a blog template. The spec currently describes the <code>&lt;article&gt;</code> element with the following verbiage:<span id="more-2090"></span></p>
<blockquote><p>The article element represents a self-contained composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication.</p></blockquote>
<p>In my mind, it seems like only the page content (or the article content) would qualify under most circumstances to stand on its own without the context of any other element on the page.</p>
<p>However, there is another application for the <code>&lt;article&gt;</code> element that might not be quite so obvious: comments. That&#8217;s right, comments and replies are supposed to be wrapped in their own <code>&lt;article&gt;</code> tags. Although I can&#8217;t envision too many comments or replies that would be able to stand on their own without the context of the surrounding content. However, that&#8217;s what the spec implies right now.</p>
<p>The one major difference, though, is that comments and replies are supposed to be <code>&lt;article&gt;</code> elements nested inside of a higher-level <code>&lt;article&gt;</code> element. Any time an &lt;article&gt; is nested inside of another <code>&lt;article&gt;</code>, the inner element will be considered to be a reply or comment on the outer element.</p>
<p>Therefore, when marking up the structure of a Web page — especially a blog article — you would most likely use nested &lt;article&gt; elements. The outermost <code>&lt;article&gt;</code> element would wrap the entire content area (the title, the content of the post, plus all comments and meta information about the post). Then, each individual comment on the post would be wrapped inside of another <code>&lt;article&gt;</code> tag. If someone replies to a comment, that reply would occur inside of that comment&#8217;s <code>&lt;article&gt;</code> element, wrapped in its own <code>&lt;article&gt;</code> tag. The mark-up for a blog post with one comment and one reply to that comment, might look something like:</p>
<pre style="width: 96%; padding: 1%; margin: 1%; overflow-x: auto;"><code>&lt;article&gt;
	&lt;hgroup&gt;
    	&lt;h1&gt;Title of Post&lt;/h1&gt;
        &lt;h2&gt;Subtitle of post&lt;/h2&gt;
    &lt;/hgroup&gt;
    &lt;p&gt;This is some content for the post.&lt;/p&gt;
    &lt;section class="comments"&gt;
    	&lt;h1&gt;Discussion:&lt;/h1&gt;
        &lt;article&gt;
        	&lt;h1&gt;Comment title&lt;/h1&gt;
            &lt;p&gt;This is a comment on the article.&lt;/p&gt;
            &lt;article&gt;
            	&lt;h1&gt;Re: Comment title&lt;/h1&gt;
                &lt;p&gt;This is a reply to the comment above.&lt;/p&gt;
            &lt;/article&gt;
        &lt;/article&gt;
    &lt;/section&gt;
&lt;/article&gt;</code></pre>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/a-look-into-html5-and-css3/' rel='bookmark' title='A Look Into HTML5 and CSS3'>A Look Into HTML5 and CSS3</a></li>
<li><a href='http://www.htmlcenter.com/blog/some-html5-features-you-might-not-expect/' rel='bookmark' title='Some HTML5 &#8220;Features&#8221; You Might Not Expect'>Some HTML5 &#8220;Features&#8221; You Might Not Expect</a></li>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/comments-in-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Is HTML5?</title>
		<link>http://www.htmlcenter.com/blog/what-is-html5/</link>
		<comments>http://www.htmlcenter.com/blog/what-is-html5/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 01:42:37 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[cssquirrel]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[sitepoint]]></category>
		<category><![CDATA[web standards]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=2077</guid>
		<description><![CDATA[There&#8217;s been a lot of talk about HTML5 and all of the new elements it introduces. Forms will be built and used completely differently, the structure of documents will be much more semantic, and new features will be available to website and application developers. But, what are these semantic elements? Are they really anything new? [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/firefox-and-html5/' rel='bookmark' title='Firefox and HTML5'>Firefox and HTML5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been a lot of talk about HTML5 and all of the new elements it introduces. Forms will be built and used completely differently, the structure of documents will be much more semantic, and new features will be available to website and application developers.</p>
<p>But, what are these semantic elements? Are they really anything new? Will they change the structure of your document at all? The simple answer is &#8220;no&#8221;. The new elements, for the most part, just make your documents easier to parse and understand (for machines and for people using assistive technology). Very few of the new elements are really all that new; they&#8217;re just the same old elements with new names for new purposes.<span id="more-2077"></span></p>
<p>Let&#8217;s take a look at some of the new elements. To start, we have the following:</p>
<ul>
<li>header</li>
<li>footer</li>
<li>aside</li>
<li>section</li>
<li>article</li>
<li>nav</li>
<li>hgroup</li>
<li>output*</li>
</ul>
<p>Basically, each of the elements mentioned above is nothing more than a specialized <code>&lt;div&gt;</code> tag (or possibly a <code>&lt;span&gt;</code> tag, though, I believe these are all block elements by default). With the exception of the <code>&lt;output&gt;</code> tag, they don&#8217;t really serve any different purpose, nor do they have any different attributes than a normal <code>div</code>. However, they will be invaluable in providing semantic data for the document.</p>
<p><a href="http://www.w3schools.com/html5/tag_output.asp">The <code>&lt;output&gt;</code> tag</a> is a little different, in that it actually does have some new attributes, and has a very specific purpose. It is basically the equivalent of the empty <code>&lt;div&gt;</code> many application developers used to act as a container for information returned from an AJAX request; but, when used properly, it may actually return information in HTML5 documents without any server interaction (calculations between two inputs, etc.).</p>
<p>Next, we have another list of elements:</p>
<ul>
<li>details and summary</li>
<li>figure and figcaption</li>
</ul>
<p>Essentially, these two pairs of tags are nothing more than fancy <code>fieldset</code> and <code>legend</code> tags. However, as far as I know, browsers will not render them quite the same way fieldsets and legends have been traditionally rendered.</p>
<p>The details and summary tags help express some information about the website or document currently being viewed (copyright information, etc.). You must use the summary tag as the first child of the details element; otherwise your document will not validate properly.</p>
<p>The figure and figcaption tags do not have the same restrictions. The figcaption element can be used anywhere within the figure element; but the concept remains the same. The figcaption is intended to act as a &#8220;legend&#8221; for the figure container.</p>
<h2>So, then, what is truly different about HTML5?</h2>
<p>To begin with, we do have a few new elements that are very different from anything we&#8217;ve seen in previous iterations of HTML.</p>
<ul>
<li>audio, video and source</li>
<li>canvas</li>
<li>ruby, rp and rt (for East Asian characters)</li>
</ul>
<p>HTML5 also includes some additional tags that are meant specifically for semantic purposes and, by default, do not make any difference in the appearance of the document. These are similar to the classic &lt;b&gt;, &lt;i&gt;, &lt;strong&gt;, &lt;em&gt;, &lt;del&gt;, etc. tags, but offer even more detailed information about the text. Many of them actually have their own attributes that help machines determine exactly what the text infers. Some of these are:</p>
<ul>
<li>mark</li>
<li>time</li>
<li>meter</li>
</ul>
<h3>Document Outlines</h3>
<p>In addition, the outlines of HTML5 documents will eventually be interpreted differently than previous versions of HTML documents. Rather than attempting to imply an outline based on the levels of headings within the document (something marked with an <code>&lt;h1&gt;</code> at the top is a top-level item, an <code>&lt;h2&gt;</code> marks the beginning of a second-level item, etc.).</p>
<p>However, HTML5 documents are expected to have more explicit outline definitions. The <code>&lt;section&gt;</code> and <code>&lt;article&gt;</code> tags are intended to separate the items within the outline. In fact, every new block level element (<code>&lt;header&gt;, &lt;section&gt;, &lt;article&gt;, &lt;footer&gt;</code>, etc.) is supposed to start with an <code>&lt;h1&gt;</code> heading. If a <code>&lt;section&gt;</code> or <code>&lt;article&gt;</code> is nested within another <code>&lt;section&gt;</code> or <code>&lt;article&gt;</code>, the outer element will be considered a top-level item in the outline, while the inner item will be a second-level item in the outline.</p>
<p>If you plan to use any headings that should be left out of the outline (subtitles, for example), you should use the <code>&lt;hgroup&gt;</code> tag to bind them together. So, if you have an article with the title of &#8220;<strong>What is HTML5?</strong>&#8221; and a subtitle of &#8220;<em>A short guide to the new HTML5 elements</em>&#8220;, you would use the following code to keep the subtitle from showing up as the second level of the outline:</p>
<pre><code>&lt;hgroup&gt;
&lt;h1&gt;What is HTML5?&lt;/h1&gt;
&lt;h2&gt;A short guide to the new HTML5 elements&lt;/h2&gt;
&lt;/hgroup&gt;</code></pre>
<h2>Further Reading</h2>
<p>If you are interested in reading more about HTML5, you can check out <a href="http://www.w3schools.com/html5/html5_reference.asp">the current list of elements allowed in HTML5</a> over at the W3C (though, please keep in mind that the list is somewhat in flux, and is actually being discussed in <a href="http://cssquirrel.com/blog/2010/06/15/693comic-update-html5-unicorn-heuristics/">two completely separate working groups</a>).</p>
<p>If you&#8217;re interested in actually learning how to use the new elements, you can take the <a href="https://learnable.com/courses/learn-html5-201">SitePoint &#8220;HTML5 Live&#8221; course with John Allsopp</a>. Be aware that this course is not intended for complete beginners. The course expects that students already have a good HTML foundation, and really only explores how the new elements differ from existing HTML elements. Also (at least, when I took the course &#8211; as part of the first group to take the course), it was put together as a live course; so John does make some mistakes and misstatements throughout. If you&#8217;re expecting a perfectly edited, top-of-the-line, professional course, you should look for local training in your area. However, for less than $10, I don&#8217;t see any reason not to at least try the course. I thoroughly enjoyed it, and got a lot of fantastic information out of it.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/firefox-and-html5/' rel='bookmark' title='Firefox and HTML5'>Firefox and HTML5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/what-is-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Captions in HTML5</title>
		<link>http://www.htmlcenter.com/blog/captions-in-html5/</link>
		<comments>http://www.htmlcenter.com/blog/captions-in-html5/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 14:09:17 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[figcaption]]></category>
		<category><![CDATA[figure]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[semantic web]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=2073</guid>
		<description><![CDATA[As more and more browsers begin to support HTML5 and its elements, one of the nice things we can all begin using is the &#60;figcaption&#62; tag. When coupled together with the new &#60;figure&#62; tag, the &#60;figcaption&#62; tag semantically connects a caption with an illustration (not necessarily an image illustration; it can be a text illustration). [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/what-is-html5/' rel='bookmark' title='What Is HTML5?'>What Is HTML5?</a></li>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
<li><a href='http://www.htmlcenter.com/blog/firefox-and-html5/' rel='bookmark' title='Firefox and HTML5'>Firefox and HTML5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As more and more browsers begin to support HTML5 and its elements, one of the nice things we can all begin using is <a href="http://www.w3schools.com/html5/tag_figcaption.asp">the <code>&lt;figcaption&gt;</code> tag</a>. When coupled together with <a href="http://www.w3schools.com/html5/tag_figure.asp">the new <code>&lt;figure&gt;</code> tag</a>, the <code>&lt;figcaption&gt;</code> tag semantically connects a caption with an illustration (not necessarily an image illustration; it can be a text illustration).<span id="more-2073"></span></p>
<p>Essentially, the <code>&lt;figure&gt;</code> and <code>&lt;figcaption&gt;</code> tags work together in almost exactly the same way the <code>&lt;fieldset&gt;</code> and <code>&lt;legend&gt;</code> tags work together. However, the <code>&lt;figure&gt;</code> and <code>&lt;figcaption&gt;</code> tags do not have any default styles applied to them (<code>&lt;fieldset&gt;</code> generally has a default inset border around it, and <code>&lt;legend&gt;</code> normally has a negative top margin applied).</p>
<p>The <code>&lt;figcaption&gt;</code> tag is a block-level element, and is treated as such in IE9, Firefox 4 and all recent versions of Chrome and Safari. Because it is an HTML5 element, it is not supported (without a JavaScript work-around like the HTML5 Shiv) in Internet Explorer 8 or earlier. Also, in Firefox 3.x, the <code>&lt;figcaption&gt;</code> element is treated as an inline element rather than block.</p>
<p>You can <a href="http://html5doctor.com/the-figure-figcaption-elements/">read more about the <code>&lt;figure&gt;</code> and <code>&lt;figcaption&gt;</code> elements</a> and see some examples on HTML Doctor&#8217;s website.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/what-is-html5/' rel='bookmark' title='What Is HTML5?'>What Is HTML5?</a></li>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
<li><a href='http://www.htmlcenter.com/blog/firefox-and-html5/' rel='bookmark' title='Firefox and HTML5'>Firefox and HTML5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/captions-in-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free HTML5 Mobile Training From O&#8217;Reilly</title>
		<link>http://www.htmlcenter.com/blog/free-html5-training/</link>
		<comments>http://www.htmlcenter.com/blog/free-html5-training/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 00:16:49 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[Web News]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=1809</guid>
		<description><![CDATA[Beginning on October 6, 2010, O&#8217;Reilly will offer a free 10-week HTML5 mobile course. The live sessions will be held each Tuesday at 3PM Pacific Time. It appears you can download the sessions at a later point but there will be a fee for the download. Here&#8217;s an overview of what the instructor notes you [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/nokia-offers-user-experience-mobile/' rel='bookmark' title='Nokia Offers Free User Experience Evaluation for Mobile Apps'>Nokia Offers Free User Experience Evaluation for Mobile Apps</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Beginning on October 6, 2010, <a href="http://training.oreilly.com/html5mobile/">O&#8217;Reilly will offer</a> a free 10-week HTML5 mobile course. The live sessions will be held each Tuesday at 3PM Pacific Time. It appears you can download the sessions at a later point but there will be a fee for the download.</p>
<p>Here&#8217;s an overview of what the instructor notes you will learn during the course:</p>
<ul>
<li>Discover what&#8217;s new in HTML5, CSS3, and JavaScript for mobile  development</li>
<li>Build your own Twitter App with these technologies</li>
<li>Create apps that detect the orientation of mobile devices</li>
<li>Use geolocation and maps in a location-based app</li>
<li>Enable mobile users to use your app offline</li>
<li>Use HTML5 web forms to create an address book app</li>
<li>Create drawings and animation with JavaScript and HTML5&#8242;s canvas  element</li>
<li>Use HTML5&#8242;s audio and video elements to build a movie trailer  app</li>
</ul>
<p>You should have some basic knowledge of CSS and HTML for the course. They also recommend that you are on a Mac but you can participate if you use a PC or Linux.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/' rel='bookmark' title='Use HTML5 Elements in Today&#8217;s Browsers'>Use HTML5 Elements in Today&#8217;s Browsers</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/nokia-offers-user-experience-mobile/' rel='bookmark' title='Nokia Offers Free User Experience Evaluation for Mobile Apps'>Nokia Offers Free User Experience Evaluation for Mobile Apps</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/free-html5-training/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Favicon for Apple Devices</title>
		<link>http://www.htmlcenter.com/blog/creating-a-favicon-for-apple-devices/</link>
		<comments>http://www.htmlcenter.com/blog/creating-a-favicon-for-apple-devices/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 01:32:22 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[apple-touch-icon]]></category>
		<category><![CDATA[bookmark]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ipod touch]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=1807</guid>
		<description><![CDATA[I&#8217;m making this post as much for my own reference as for anyone else&#8217;s. As you may or may not be aware, Apple devices (the iPod Touch, the iPhone and the iPad) use their own icons for bookmarked websites and apps, rather than utilizing the standard favicon. In order to create an icon for use [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/creating-a-favicon-for-your-website/' rel='bookmark' title='Creating a Favicon for Your Website'>Creating a Favicon for Your Website</a></li>
<li><a href='http://www.htmlcenter.com/blog/surfing-the-web-on-mobile-devices/' rel='bookmark' title='Surfing The Web On Mobile Devices'>Surfing The Web On Mobile Devices</a></li>
<li><a href='http://www.htmlcenter.com/blog/web-development-for-the-iphone/' rel='bookmark' title='Web Development for the iPhone'>Web Development for the iPhone</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m making this post as much for my own reference as for anyone else&#8217;s. As you may or may not be aware, Apple devices (the iPod Touch, the iPhone and the iPad) use their own icons for bookmarked websites and apps, rather than utilizing the standard favicon.<span id="more-1807"></span></p>
<p>In order to create an icon for use on those devices, you should start with a 114&#215;114 canvas. Apparently the iPod Touch and older iPhones use an icon size around 57&#215;57, the iPad uses a slightly larger resolution and the new iPhone 4 devices use 114&#215;114. Using the 114&#215;114 resolution allows the icon to look great on iPhone 4 devices, and has little impact on the quality of the icon on older devices.</p>
<p>Then, add the icon and save it as a PNG file. By default, any transparent areas within the PNG will be black when displayed on the iDevice screen (since I don&#8217;t have a device capable of utilizing custom wallpapers, I can&#8217;t explicitly say whether the transparent areas are actually transparent of if they are just black). If you don&#8217;t want the background of your icon to be black, you will need to fill it with a solid color.</p>
<p>Also, by default, the iDevices will add the glossy, 3D effect overlaid on the icon. I know it&#8217;s possible to override that in some way, but I don&#8217;t know how. If you have some insight into this, please share it in the comments.</p>
<p>Finally, when you&#8217;re ready to implement the icon, save it as a PNG, upload it to your Web server and add the following code to the head of your Web pages:</p>
<p><code>&lt;link rel="apple-touch-icon" href="<span style="color: #c00;">/path/to/icon.png</span>" /&gt;</code></p>
<p>Once you&#8217;ve added that code, you can open your website on your iDevice and use the bookmark menu to add it to your home screen. Then, on your home screen, you&#8217;ll see the new icon you created.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/creating-a-favicon-for-your-website/' rel='bookmark' title='Creating a Favicon for Your Website'>Creating a Favicon for Your Website</a></li>
<li><a href='http://www.htmlcenter.com/blog/surfing-the-web-on-mobile-devices/' rel='bookmark' title='Surfing The Web On Mobile Devices'>Surfing The Web On Mobile Devices</a></li>
<li><a href='http://www.htmlcenter.com/blog/web-development-for-the-iphone/' rel='bookmark' title='Web Development for the iPhone'>Web Development for the iPhone</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/creating-a-favicon-for-apple-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use HTML5 Elements in Today&#8217;s Browsers</title>
		<link>http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/</link>
		<comments>http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 02:48:12 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[john allsopp]]></category>
		<category><![CDATA[section]]></category>
		<category><![CDATA[sitepoint]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=1771</guid>
		<description><![CDATA[I am taking John Allsopp&#8217;s HTML5 Live course offered by SitePoint (a great deal, by the way), right now, and he shared a neat little tip that I wanted to pass on. You can use many of the new HTML5 elements (header, article, section, etc.) right now, even in older browsers like Internet Explorer 7. [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/what-is-html5/' rel='bookmark' title='What Is HTML5?'>What Is HTML5?</a></li>
<li><a href='http://www.htmlcenter.com/blog/firefox-and-html5/' rel='bookmark' title='Firefox and HTML5'>Firefox and HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I am taking <a href="http://courses.sitepoint.com/html5-live">John Allsopp&#8217;s HTML5 Live course</a> offered by SitePoint (a great deal, by the way), right now, and he shared a neat little tip that I wanted to pass on. You can use many of the new HTML5 elements (header, article, section, etc.) right now, even in older browsers like Internet Explorer 7.</p>
<p>All you need to do is add an extra &#8220;boolean attribute&#8221; to the element, and you can then style them with CSS in almost all of the browsers currently being used.<span id="more-1771"></span></p>
<p>Instead of simply using something like:</p>
<p><code>&lt;header&gt;This is my HTML5 header&lt;/header&gt;</code></p>
<p><code> </code></p>
<p><code>&lt;section&gt;This is an HTML5 section&lt;/section&gt;</code></p>
<p>and then trying to style them with something like:</p>
<p><code>section { display: block; }</code></p>
<p><code> </code></p>
<p><code>header { display: block; }</code></p>
<p>You would, instead, use code like:</p>
<p><code>&lt;header header="true"&gt;This is my HTML5 header&lt;/header&gt;</code></p>
<p><code> </code></p>
<p><code>&lt;section section="true"&gt;This is my HTML5 section&lt;/section&gt;</code></p>
<p>and the following CSS:</p>
<p><code>[header] { display: block; }</code></p>
<p><code> </code></p>
<p><code>[section] { display: block; }</code></p>
<p>I honestly don&#8217;t know why it works, but I have tested it in IE7, IE8, Chrome and Firefox, and all four browsers seemed to handle this code without any trouble.</p>
<p>Oddly, though, when I tried to do the same thing with the new HTML5 <code>&lt;footer&gt;</code> element, it didn&#8217;t seem to work. It&#8217;s entirely possible that I had a typo in my code or something (let me know if you try it and get it to work), but I couldn&#8217;t figure out what the issue was.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/what-is-html5/' rel='bookmark' title='What Is HTML5?'>What Is HTML5?</a></li>
<li><a href='http://www.htmlcenter.com/blog/firefox-and-html5/' rel='bookmark' title='Firefox and HTML5'>Firefox and HTML5</a></li>
<li><a href='http://www.htmlcenter.com/blog/captions-in-html5/' rel='bookmark' title='Captions in HTML5'>Captions in HTML5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/use-html5-elements-in-todays-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Handy YouTube Tricks</title>
		<link>http://www.htmlcenter.com/blog/some-handy-youtube-tricks/</link>
		<comments>http://www.htmlcenter.com/blog/some-handy-youtube-tricks/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 21:17:24 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=1769</guid>
		<description><![CDATA[I&#8217;m sure there have been times when you&#8217;ve wanted to link to a particular part of a YouTube video but, if you&#8217;re anything like me, you had no idea how to go about doing so. Well, you have two options: You can link to the video on YouTube and specify the minute and second at [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/free-youtube-to-ipod-converter/' rel='bookmark' title='Free YouTube to iPod Converter'>Free YouTube to iPod Converter</a></li>
<li><a href='http://www.htmlcenter.com/blog/embed-youtube-videos-with-valid-code/' rel='bookmark' title='Embed YouTube Videos With Valid Code'>Embed YouTube Videos With Valid Code</a></li>
<li><a href='http://www.htmlcenter.com/blog/my-endless-ebay-love/' rel='bookmark' title='My endless eBay love'>My endless eBay love</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure there have been times when you&#8217;ve wanted to link to a particular part of a YouTube video but, if you&#8217;re anything like me, you had no idea how to go about doing so. Well, you have two options:</p>
<ol>
<li>You can link to the video on YouTube and specify the minute and second at which you want the video to start playing.</li>
<li>You can embed the video and specify the second at which you would like the video to start playing.<span id="more-1769"></span></li>
</ol>
<h2>Linking to YouTube</h2>
<p>To link to the video on YouTube and specify a starting point, you need to add a URL hash at the end of the link with the minutes and seconds specified. The link might look something like:</p>
<p><code>http://www.youtube.com/watch?v=EWhalXA7z2I#t=02m55s</code></p>
<p>The link above will lead to the 2:55 mark in that particular video. All you need to do is add &#8220;#t=&#8221; to the end of the URL, then specify the minutes in two digits, followed by the letter &#8220;m&#8221; (for minutes), followed by the seconds (two digits), followed by the letter &#8220;s&#8221; (for seconds).</p>
<p>Unfortunately, at this time, this feature seems to be a little spotty and unreliable, especially when trying to watch the video with YouTube&#8217;s HTML5 player. However, it can be a pretty handy little tip for the right situations.</p>
<p>You can <a href="http://www.youtube.com/watch?v=EWhalXA7z2I#t=02m55s">try it out in your own browser</a> and see if it works for you.</p>
<h2>Starting an Embedded Video at a Specific Point</h2>
<p>To embed a video and have it start playing at a specific point in the video, you need to take a slightly different approach, but it&#8217;s still just as simple. Instead of using the URL hash with minutes and seconds specified, you will simply add a &#8220;start&#8221; parameter to the end of the embed URL and provide the starting point in seconds. Therefore, if I were to embed the video shown above, I would use code similar to the following:</p>
<p><code>&lt;object width="640" height="385"&gt;<br />
&lt;param name="movie" value="http://www.youtube.com/v/EWhalXA7z2I&amp;hl=en_US&amp;fs=1&amp;start=175"&gt;&lt;/param&gt;<br />
&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;<br />
&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;<br />
&lt;embed src="http://www.youtube.com/v/EWhalXA7z2I&amp;hl=en_US&amp;fs=1&amp;start=175" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;<br />
&lt;/object&gt;</code></p>
<p>Notice the <code>&amp;start=175</code> at the end of the <code>param name="movie"</code> URL and the end of the <code>embed</code> source URL. That tells YouTube to start playing the video at the 175 second mark (which is 2 minutes and 55 seconds for those with poor math skills).</p>
<p>The embedded video should then act something like the following video (if WordPress doesn&#8217;t butcher my embed code):</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="320" height="193" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/EWhalXA7z2I&amp;hl=en_US&amp;fs=1&amp;start=175" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="320" height="193" src="http://www.youtube.com/v/EWhalXA7z2I&amp;hl=en_US&amp;fs=1&amp;start=175" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h2>Credits</h2>
<p>I found these two tips in the following locations. Thanks to those authors for providing this information.</p>
<ul>
<li><a href="http://www.mattcutts.com/blog/link-to-youtube-minute-second/">Link to a specific part of a YouTube video</a> &#8211; Matt Cutts&#8217; Blog</li>
<li><a href="http://www.mydigitallife.info/2008/10/14/youtube-allows-you-to-start-playing-embed-video-at-specific-start-time/">YouTube Allows You to Start Playing Embed Video at Specific Start Time</a> &#8211; My Digital Life</li>
</ul>
<p>As you can see from the date stamps on both blog entries, neither of these are new YouTube features, but I suspect they will still be new to many of us users.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/free-youtube-to-ipod-converter/' rel='bookmark' title='Free YouTube to iPod Converter'>Free YouTube to iPod Converter</a></li>
<li><a href='http://www.htmlcenter.com/blog/embed-youtube-videos-with-valid-code/' rel='bookmark' title='Embed YouTube Videos With Valid Code'>Embed YouTube Videos With Valid Code</a></li>
<li><a href='http://www.htmlcenter.com/blog/my-endless-ebay-love/' rel='bookmark' title='My endless eBay love'>My endless eBay love</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/some-handy-youtube-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

