<?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>Wales Web Design</title>
	<atom:link href="http://www.waleswebsite.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.waleswebsite.com</link>
	<description>Information about Web Design</description>
	<lastBuildDate>Mon, 31 Oct 2011 11:04:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>HTML5 Input Types (Continue)</title>
		<link>http://www.waleswebsite.com/2010/07/20/html5-input-types-continue-2/</link>
		<comments>http://www.waleswebsite.com/2010/07/20/html5-input-types-continue-2/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 03:00:33 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[input types]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[Date Pickers]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[pickers]]></category>
		<category><![CDATA[range]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=57</guid>
		<description><![CDATA[Input Type &#8211; range The range type is used for input fields that should contain a value from a range of numbers. The range type is displayed as a slider bar. You can also set restrictions on what numbers are accepted: &#60;input type=&#8221;range&#8221; name=&#8221;points&#8221; min=&#8221;1&#8243; max=&#8221;10&#8243; /&#62; Use the following attributes to specify restrictions for [...]]]></description>
			<content:encoded><![CDATA[<h2>Input Type &#8211; range</h2>
<p>The range type is used for input fields that should contain a value from a range of numbers.</p>
<p>The range type is displayed as a slider bar.</p>
<p>You can also set restrictions on what numbers are accepted:</p>
<p>&lt;input type=&#8221;range&#8221; name=&#8221;points&#8221; min=&#8221;1&#8243; max=&#8221;10&#8243; /&gt;</p>
<p>Use the following attributes to specify restrictions for the range type:</p>
<table>
<tbody>
<tr>
<th align="left" width="20%">Attribute</th>
<th align="left" width="20%">Value</th>
<th align="left" width="50%">Description</th>
</tr>
<tr>
<td>max</td>
<td><em>number</em></td>
<td>Specifies the maximum value allowed</td>
</tr>
<tr>
<td>min</td>
<td><em>number</em></td>
<td>Specifies the minimum value allowed</td>
</tr>
<tr>
<td>step</td>
<td><em>number</em></td>
<td>Specifies legal number intervals (if step=&#8221;3&#8243;, legal numbers could be -3,0,3,6, etc)</td>
</tr>
<tr>
<td>value</td>
<td><em>number</em></td>
<td>Specifies the default value</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>Input Type &#8211; Date Pickers</h2>
<p>HTML5 has several new input types for selecting date and time:</p>
<ul>
<li>date &#8211; Selects date, month and year</li>
<li>month &#8211; Selects month and year</li>
<li>week &#8211; Selects week and year</li>
<li>time &#8211; Selects time (hour and minute)</li>
<li>datetime &#8211; Selects time, date, month and year (UTC time)</li>
<li>datetime-local &#8211; Selects time, date, month and year (local time)</li>
</ul>
<p>The following example allows you to select a date from a calendar:</p>
<p>Date: &lt;input type=&#8221;date&#8221; name=&#8221;user_date&#8221; /&gt;</p>
<p>&nbsp;</p>
<p>Input type &#8220;month&#8221;: <a href="http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_form_month" target="_blank">Try it yourself</a></p>
<p>Input type &#8220;week&#8221;: <a href="http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_form_week" target="_blank">Try it yourself</a></p>
<p>Input type &#8220;time&#8221;: <a href="http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_form_time" target="_blank">Try it yourself</a></p>
<p>Input type &#8220;datetime&#8221;: <a href="http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_form_datetime" target="_blank">Try it yourself</a></p>
<p>Input type &#8220;datetime-local&#8221;: <a href="http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_form_datetime-local" target="_blank">Try it yourself</a></p>
<hr />
<h2>Input Type &#8211; search</h2>
<p>The search type is used for search fields, like a site search, or Google search.</p>
<p>The search field behaves like a regular text field.</p>
<hr />
<h2>Input Type &#8211; color</h2>
<p>The color type is used for input fields that should contain a color.</p>
<p>The Opera browser will allow you to select a color from a color picker, Google&#8217;s Chrome will only allow hexadecimal color values to be submitted:</p>
<p>Color: &lt;input type=&#8221;color&#8221; name=&#8221;user_color&#8221; /&gt;</p>
<p>&nbsp;</p>
<h2>HTML5 &lt;input&gt; Tag</h2>
<table>
<tbody>
<tr>
<th align="left" width="150">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td><a href="http://www.w3schools.com/html5/tag_input.asp">&lt;input&gt;</a></td>
<td>Defines an input field</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/20/html5-input-types-continue-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Input Types</title>
		<link>http://www.waleswebsite.com/2010/07/19/html5-input-types/</link>
		<comments>http://www.waleswebsite.com/2010/07/19/html5-input-types/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 03:00:48 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[input types]]></category>
		<category><![CDATA[types]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[number]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=48</guid>
		<description><![CDATA[HTML5 New Input Types HTML5 has several new input types for forms. These new features allow for better input control and validation. This chapter covers the new input types: email url number range Date pickers (date, month, week, time, datetime, datetime-local) search color Browser Support Input type IE Firefox Opera Chrome Safari email No 4.0 [...]]]></description>
			<content:encoded><![CDATA[<h2>HTML5 New Input Types</h2>
<p>HTML5 has several new input types for forms. These new features allow for better input control and validation.</p>
<p>This chapter covers the new input types:</p>
<ul>
<li>email</li>
<li>url</li>
<li>number</li>
<li>range</li>
<li>Date pickers (date, month, week, time, datetime, datetime-local)</li>
<li>search</li>
<li>color</li>
</ul>
<hr />
<h2>Browser Support</h2>
<table>
<tbody>
<tr>
<th align="left" width="25%">Input type</th>
<th align="left" width="15%">IE</th>
<th align="left" width="15%">Firefox</th>
<th align="left" width="15%">Opera</th>
<th align="left" width="15%">Chrome</th>
<th align="left" width="15%">Safari</th>
</tr>
<tr>
<td>email</td>
<td>No</td>
<td>4.0</td>
<td>9.0</td>
<td>10.0</td>
<td>No</td>
</tr>
<tr>
<td>url</td>
<td>No</td>
<td>4.0</td>
<td>9.0</td>
<td>10.0</td>
<td>No</td>
</tr>
<tr>
<td>number</td>
<td>No</td>
<td>No</td>
<td>9.0</td>
<td>7.0</td>
<td>5.1</td>
</tr>
<tr>
<td>range</td>
<td>No</td>
<td>No</td>
<td>9.0</td>
<td>4.0</td>
<td>4.0</td>
</tr>
<tr>
<td>Date pickers</td>
<td>No</td>
<td>No</td>
<td>9.0</td>
<td>10.0</td>
<td>5.1</td>
</tr>
<tr>
<td>search</td>
<td>No</td>
<td>4.0</td>
<td>11.0</td>
<td>10.0</td>
<td>No</td>
</tr>
<tr>
<td>color</td>
<td>No</td>
<td>No</td>
<td>11.0</td>
<td>12</td>
<td>No</td>
</tr>
</tbody>
</table>
<p><strong>Note:</strong> Opera has the best support for the new input types. However, you can already start using them in all major browsers. If they are not supported, they will behave as regular text fields.</p>
<hr />
<h2>Input Type &#8211; email</h2>
<p>The email type is used for input fields that should contain an e-mail address.</p>
<p>The value of the email field is automatically validated when the form is submitted.</p>
<p>E-mail: &lt;input type=&#8221;email&#8221; name=&#8221;user_email&#8221; /&gt;</p>
<p><strong>Tip:</strong> Safari on the iPhone recognizes the email input type, and changes the on-screen keyboard to match it (adds @ and .com options).</p>
<p>&nbsp;</p>
<h2>Input Type &#8211; url</h2>
<p>The url type is used for input fields that should contain a URL address.</p>
<p>The value of the url field is automatically validated when the form is submitted.</p>
<p>Homepage: &lt;input type=&#8221;url&#8221; name=&#8221;user_url&#8221; /&gt;</p>
<p><strong>Tip:</strong> Safari on the iPhone recognizes the url input type, and changes the on-screen keyboard to match it (adds .com option).</p>
<p>&nbsp;</p>
<h2>Input Type &#8211; number</h2>
<p>The number type is used for input fields that should contain a numeric value.</p>
<p>You can also set restrictions on what numbers are accepted:</p>
<p>Points: &lt;input type=&#8221;number&#8221; name=&#8221;points&#8221; min=&#8221;1&#8243; max=&#8221;10&#8243; /&gt;</p>
<p>&nbsp;</p>
<p>Use the following attributes to specify restrictions for the number type:</p>
<table>
<tbody>
<tr>
<th align="left" width="20%">Attribute</th>
<th align="left" width="20%">Value</th>
<th align="left" width="50%">Description</th>
</tr>
<tr>
<td>max</td>
<td><em>number</em></td>
<td>Specifies the maximum value allowed</td>
</tr>
<tr>
<td>min</td>
<td><em>number</em></td>
<td>Specifies the minimum value allowed</td>
</tr>
<tr>
<td>step</td>
<td><em>number</em></td>
<td>Specifies legal number intervals (if step=&#8221;3&#8243;, legal numbers could be -3,0,3,6, etc)</td>
</tr>
<tr>
<td>value</td>
<td><em>number</em></td>
<td>Specifies the default value</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/19/html5-input-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Web Storage</title>
		<link>http://www.waleswebsite.com/2010/07/18/html5-web-storage/</link>
		<comments>http://www.waleswebsite.com/2010/07/18/html5-web-storage/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 03:00:09 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web storage]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=44</guid>
		<description><![CDATA[Storing Data on the Client HTML5 offers two new objects for storing data on the client: localStorage &#8211; stores data with no time limit sessionStorage &#8211; stores data for one session Earlier, this was done with cookies. Cookies are not suitable for large amounts of data, because they are passed on by EVERY request to [...]]]></description>
			<content:encoded><![CDATA[<h2>Storing Data on the Client</h2>
<p>HTML5 offers two new objects for storing data on the client:</p>
<ul>
<li>localStorage &#8211; stores data with no time limit</li>
<li>sessionStorage &#8211; stores data for one session</li>
</ul>
<p>Earlier, this was done with cookies. Cookies are not suitable for large amounts of data, because they are passed on by EVERY request to the server, making it very slow and in-effective.</p>
<p>In HTML5, the data is NOT passed on by every server request, but used ONLY when asked for. It is possible to store large amounts of data without affecting the website&#8217;s performance.</p>
<p>The data is stored in different areas for different websites, and a website can only access data stored by itself.</p>
<p>HTML5 uses JavaScript to store and access the data.</p>
<hr />
<h2>The localStorage Object</h2>
<p>The localStorage object stores the data with no time limit. The data will be available the next day, week, or year.</p>
<p>How to create and access a localStorage:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
localStorage.lastname=&#8221;Smith&#8221;;<br />
document.write(localStorage.lastname);<br />
&lt;/script&gt;</p>
<p>&nbsp;</p>
<p>The following example counts the number of times a user has visited a page:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
if (localStorage.pagecount)<br />
{<br />
localStorage.pagecount=Number(localStorage.pagecount) +1;<br />
}<br />
else<br />
{<br />
localStorage.pagecount=1;<br />
}<br />
document.write(&#8220;Visits &#8220;+ localStorage.pagecount + &#8221; time(s).&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
&lt;/script&gt;</p>
<p>&nbsp;</p>
<h2>The sessionStorage Object</h2>
<p>The sessionStorage object stores the data for one session. The data is deleted when the user closes the browser window.</p>
<p>How to create and access a sessionStorage:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
sessionStorage.lastname=&#8221;Smith&#8221;;<br />
document.write(sessionStorage.lastname);<br />
&lt;/script&gt;</p>
<p>&nbsp;</p>
<p>The following example counts the number of times a user has visited a page, in the current session:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
if (sessionStorage.pagecount)<br />
{<br />
sessionStorage.pagecount=Number(sessionStorage.pagecount) +1;<br />
}<br />
else<br />
{<br />
sessionStorage.pagecount=1;<br />
}<br />
document.write(&#8220;Visits &#8220;+sessionStorage.pagecount+&#8221; time(s) this session.&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
&lt;/script&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/18/html5-web-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Canvas (Continue)</title>
		<link>http://www.waleswebsite.com/2010/07/17/html5-canvas-continue/</link>
		<comments>http://www.waleswebsite.com/2010/07/17/html5-canvas-continue/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 03:00:17 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[canvas]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Circle]]></category>
		<category><![CDATA[Gradient]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Line]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=41</guid>
		<description><![CDATA[Understanding Coordinates The fillRect method above had the parameters (0,0,150,75). This means: Draw a 150&#215;75 rectangle on the canvas, starting at the top left corner (0,0). The canvas&#8217; X and Y coordinates are used to position drawings on the canvas. &#160; More Canvas Examples Below are more examples of drawing on the canvas element:  - [...]]]></description>
			<content:encoded><![CDATA[<h2>Understanding Coordinates</h2>
<p>The fillRect method above had the parameters (0,0,150,75).</p>
<p>This means: Draw a 150&#215;75 rectangle on the canvas, starting at the top left corner (0,0).</p>
<p>The canvas&#8217; X and Y coordinates are used to position drawings on the canvas.</p>
<p>&nbsp;</p>
<h2>More Canvas Examples</h2>
<p>Below are more examples of drawing on the canvas element:</p>
<h2> - Line</h2>
<p>&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;</p>
<p>&lt;canvas id=&#8221;myCanvas&#8221; width=&#8221;200&#8243; height=&#8221;100&#8243; style=&#8221;border:1px solid #c3c3c3;&#8221;&gt;<br />
Your browser does not support the canvas element.<br />
&lt;/canvas&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>var c=document.getElementById(&#8220;myCanvas&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
var cxt=c.getContext(&#8220;2d&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
cxt.moveTo(10,10);<br />
cxt.lineTo(150,50);<br />
cxt.lineTo(10,50);<br />
cxt.stroke();</p>
<p>&lt;/script&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>&nbsp;</p>
<h2>- Circle</h2>
<p>&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;</p>
<p>&lt;canvas id=&#8221;myCanvas&#8221; width=&#8221;200&#8243; height=&#8221;100&#8243; style=&#8221;border:1px solid #c3c3c3;&#8221;&gt;<br />
Your browser does not support the canvas element.<br />
&lt;/canvas&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>var c=document.getElementById(&#8220;myCanvas&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
var cxt=c.getContext(&#8220;2d&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
cxt.fillStyle=&#8221;#FF0000&#8243;;<br />
cxt.beginPath();<br />
cxt.arc(70,18,15,0,Math.PI*2,true);<br />
cxt.closePath();<br />
cxt.fill();</p>
<p>&lt;/script&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>&nbsp;</p>
<h2>- Gradient</h2>
<p>&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;</p>
<p>&lt;canvas id=&#8221;myCanvas&#8221; width=&#8221;200&#8243; height=&#8221;100&#8243; style=&#8221;border:1px solid #c3c3c3;&#8221;&gt;<br />
Your browser does not support the canvas element.<br />
&lt;/canvas&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>var c=document.getElementById(&#8220;myCanvas&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
var cxt=c.getContext(&#8220;2d&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
var grd=cxt.createLinearGradient(0,0,175,50);<br />
grd.addColorStop(0,&#8221;#FF0000&#8243<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
grd.addColorStop(1,&#8221;#00FF00&#8243<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
cxt.fillStyle=grd;<br />
cxt.fillRect(0,0,175,50);</p>
<p>&lt;/script&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<h2>- Image</h2>
<p>&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;</p>
<p>&lt;canvas id=&#8221;myCanvas&#8221; width=&#8221;200&#8243; height=&#8221;100&#8243; style=&#8221;border:1px solid #c3c3c3;&#8221;&gt;<br />
Your browser does not support the canvas element.<br />
&lt;/canvas&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>var c=document.getElementById(&#8220;myCanvas&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
var cxt=c.getContext(&#8220;2d&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
var img=new Image();<br />
img.src=&#8221;img_flwr.png&#8221;;<br />
cxt.drawImage(img,0,0);</p>
<p>&lt;/script&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<h2>HTML5 &lt;canvas&gt; Tag</h2>
<table>
<tbody>
<tr>
<th align="left" width="150">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td><a href="http://www.w3schools.com/html5/tag_canvas.asp">&lt;canvas&gt;</a></td>
<td>Defines graphics</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/17/html5-canvas-continue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Canvas</title>
		<link>http://www.waleswebsite.com/2010/07/16/html5-canvas/</link>
		<comments>http://www.waleswebsite.com/2010/07/16/html5-canvas/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 03:00:07 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[canvas]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=37</guid>
		<description><![CDATA[What is Canvas? The HTML5 canvas element uses JavaScript to draw graphics on a web page. A canvas is a rectangular area, and you control every pixel of it. The canvas element has several methods for drawing paths, boxes, circles, characters, and adding images. Create a Canvas Element Add a canvas element to the HTML5 [...]]]></description>
			<content:encoded><![CDATA[<h2>What is Canvas?</h2>
<p>The HTML5 canvas element uses JavaScript to draw graphics on a web page.</p>
<p>A canvas is a rectangular area, and you control every pixel of it.</p>
<p>The canvas element has several methods for drawing paths, boxes, circles, characters, and adding images.</p>
<hr />
<h2>Create a Canvas Element</h2>
<p>Add a canvas element to the HTML5 page.</p>
<p>Specify the id, width, and height of the element:</p>
<p>&lt;canvas id=&#8221;myCanvas&#8221; width=&#8221;200&#8243; height=&#8221;100&#8243;&gt;&lt;/canvas&gt;</p>
<p>&nbsp;</p>
<h2>Draw With JavaScript</h2>
<p>The canvas element has no drawing abilities of its own. All drawing must be done inside a JavaScript:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var c=document.getElementById(&#8220;myCanvas&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
var cxt=c.getContext(&#8220;2d&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;<br />
cxt.fillStyle=&#8221;#FF0000&#8243;;<br />
cxt.fillRect(0,0,150,75);<br />
&lt;/script&gt;</p>
<p>&nbsp;</p>
<p>JavaScript uses the id to find the canvas element:</p>
<p>var c=document.getElementById(&#8220;myCanvas&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;</p>
<p>&nbsp;</p>
<p>Then, create a context object:</p>
<p>var cxt=c.getContext(&#8220;2d&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" />;</p>
<p>&nbsp;</p>
<p>The getContext(&#8220;2d&#8221<img src="http://www.waleswebsite.com/wp-content/plugins/kaskus-emoticons/emoticons/13.gif" style="border:none;background:none;" alt=";)" /> object is a built-in HTML5 object, with many methods to draw paths, boxes, circles, characters, images and more.</p>
<p>The next two lines draws a red rectangle:</p>
<p>cxt.fillStyle=&#8221;#FF0000&#8243;;<br />
cxt.fillRect(0,0,150,75);</p>
<p>&nbsp;</p>
<p>The fillStyle method makes it red, and the fillRect method specifies the shape, position, and size.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/16/html5-canvas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Audio</title>
		<link>http://www.waleswebsite.com/2010/07/15/html5-audio/</link>
		<comments>http://www.waleswebsite.com/2010/07/15/html5-audio/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 03:00:28 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[media]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=32</guid>
		<description><![CDATA[HTML5 provides a standard for playing audio. Audio on the Web Until now, there has never been a standard for playing audio on a web page. Today, most audio are played through a plugin (like flash). However, not all browsers have the same plugins. HTML5 specifies a standard way to include audio, with the audio [...]]]></description>
			<content:encoded><![CDATA[<p>HTML5 provides a standard for playing audio.</p>
<hr />
<h2>Audio on the Web</h2>
<p>Until now, there has never been a standard for playing audio on a web page.</p>
<p>Today, most audio are played through a plugin (like flash). However, not all browsers have the same plugins.</p>
<p>HTML5 specifies a standard way to include audio, with the audio element.</p>
<p>The audio element can play sound files, or an audio stream.</p>
<p>To play an audio file in HTML5, this is all you need:</p>
<div>
<div>&lt;audio src=&#8221;song.ogg&#8221; controls=&#8221;controls&#8221;&gt;<br />
&lt;/audio&gt;</div>
</div>
<p>The control attribute is for adding play, pause, and volume controls.</p>
<p>Insert content between the &lt;audio&gt; and &lt;/audio&gt; tags for browsers that do not support the audio element:</p>
<p>&lt;audio src=&#8221;song.ogg&#8221; controls=&#8221;controls&#8221;&gt;<br />
Your browser does not support the audio element.<br />
&lt;/audio&gt;</p>
<p>&nbsp;</p>
<p>The example above uses an Ogg file, and will work in Firefox, Opera and Chrome.</p>
<p>To make the audio work in Internet Explorer and Safari, add an audio file of the type MP3.</p>
<p>The audio element allows multiple source elements. Source elements can link to different audio files. The browser will use the first recognized format:</p>
<div>&lt;audio controls=&#8221;controls&#8221;&gt;<br />
&lt;source src=&#8221;song.ogg&#8221; type=&#8221;audio/ogg&#8221; /&gt;<br />
&lt;source src=&#8221;song.mp3&#8243; type=&#8221;audio/mpeg&#8221; /&gt;<br />
Your browser does not support the audio element.<br />
&lt;/audio&gt;</div>
<div>
<h2>HTML5 audio Tags</h2>
<table>
<tbody>
<tr>
<th align="left" width="150">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td><a href="http://www.w3schools.com/html5/tag_audio.asp">&lt;audio&gt;</a></td>
<td>Defines sound content</td>
</tr>
<tr>
<td><a href="http://www.w3schools.com/html5/tag_source.asp">&lt;source&gt;</a></td>
<td>Defines multiple media resources for media elements, such as &lt;video&gt; and &lt;audio&gt;</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h2>Audio Formats</h2>
<p>Currently, there are 3 main formats for the audio element:</p>
<table width="646">
<tbody>
<tr>
<th align="left" width="20%">Format</th>
<th align="left" width="16%">IE 9</th>
<th align="left" width="16%">Firefox 3.5</th>
<th align="left" width="16%">Opera 10.5</th>
<th align="left" width="16%">Chrome 3.0</th>
<th align="left" width="16%">Safari 3.0</th>
</tr>
<tr>
<td>Ogg Vorbis</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>MP3</td>
<td>Yes</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Wav</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/15/html5-audio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Video</title>
		<link>http://www.waleswebsite.com/2010/07/14/html5-video/</link>
		<comments>http://www.waleswebsite.com/2010/07/14/html5-video/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 03:00:48 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[media]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=28</guid>
		<description><![CDATA[Videos on the Web Until now, there has never been a standard for showing a video or movie on a web page. Today, most videos are shown through a plugin (like flash). However, different browsers may have different plugins. HTML5 defines a new element which specifies a standard way to include video: the &#60;video&#62; element. [...]]]></description>
			<content:encoded><![CDATA[<h2>Videos on the Web</h2>
<p>Until now, there has never been a standard for showing a video or movie on a web page.</p>
<p>Today, most videos are shown through a plugin (like flash). However, different browsers may have different plugins.</p>
<p>HTML5 defines a new element which specifies a standard way to include video: the &lt;video&gt; element.</p>
<hr />
<h2>Video Formats</h2>
<p>Currently, there are 3 supported video formats for the video element:</p>
<table>
<tbody>
<tr>
<th align="left" width="20%">Format</th>
<th align="left" width="16%">IE</th>
<th align="left" width="16%">Firefox</th>
<th align="left" width="16%">Opera</th>
<th align="left" width="16%">Chrome</th>
<th align="left" width="16%">Safari</th>
</tr>
<tr>
<td>Ogg</td>
<td>No</td>
<td>3.5+</td>
<td>10.5+</td>
<td>5.0+</td>
<td>No</td>
</tr>
<tr>
<td>MPEG 4</td>
<td>9.0+</td>
<td>No</td>
<td>No</td>
<td>5.0+</td>
<td>3.0+</td>
</tr>
<tr>
<td>WebM</td>
<td>No</td>
<td>4.0+</td>
<td>10.6+</td>
<td>6.0+</td>
<td>No</td>
</tr>
</tbody>
</table>
<ul>
<li>Ogg = Ogg files with Theora video codec and Vorbis audio codec</li>
<li>MPEG4 = MPEG 4 files with H.264 video codec and AAC audio codec</li>
<li>WebM = WebM files with VP8 video codec and Vorbis audio codec</li>
</ul>
<p>The control attribute adds video controls, like play, pause, and volume.</p>
<p>It is also a good idea to always include width and height attributes. If height and width are set, the space required for the video is reserved when the page is loaded. However, without these attributes, the browser does not know the size of the video, and cannot reserve the appropriate space to it. The effect will be that the page layout will change during loading (while the video load).</p>
<p>You should also insert text content between the &lt;video&gt; and &lt;/video&gt; tags for browsers that do not support the &lt;video&gt; element.</p>
<p>The &lt;video&gt; element allows multiple &lt;source&gt; elements. &lt;source&gt; elements can link to different video files. The browser will use the first recognized format.</p>
<p>Today, Firefox, Opera, and Chrome support Ogg files. Internet Explorer, Chrome, and Safari support MPEG4 files.</p>
<p>To cover all the major browsers, use two &lt;source&gt; elements: One pointing to an MPEG4 file, and one pointing to an Ogg file.</p>
<hr />
<h2>HTML5 video Tags</h2>
<table>
<tbody>
<tr>
<th align="left" width="150">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td><a href="http://www.w3schools.com/html5/tag_video.asp">&lt;video&gt;</a></td>
<td>Defines a video or movie</td>
</tr>
<tr>
<td><a href="http://www.w3schools.com/html5/tag_source.asp">&lt;source&gt;</a></td>
<td>Defines multiple media resources for media elements, such as &lt;video&gt; and &lt;audio&gt;</td>
</tr>
<tr>
<td><a href="http://www.w3schools.com/html5/tag_track.asp">&lt;track&gt;</a></td>
<td>Defines text tracks in mediaplayers</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/14/html5-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Elements (Continue)</title>
		<link>http://www.waleswebsite.com/2010/07/13/elements-continue/</link>
		<comments>http://www.waleswebsite.com/2010/07/13/elements-continue/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 03:00:22 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[new elements]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=24</guid>
		<description><![CDATA[New Media Elements HTML5 provides a new standard for media content: Tag Description &#60;audio&#62; For multimedia content, sounds, music or other audio streams &#60;video&#62; For video content, such as a movie clip or other video streams &#60;source&#62; For media resources for media elements, defined inside video or audio elements &#60;embed&#62; For embedded content, such as [...]]]></description>
			<content:encoded><![CDATA[<h2>New Media Elements</h2>
<p>HTML5 provides a new standard for media content:</p>
<table>
<tbody>
<tr>
<th align="left" width="110">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td>&lt;audio&gt;</td>
<td>For multimedia content, sounds, music or other audio streams</td>
</tr>
<tr>
<td>&lt;video&gt;</td>
<td>For video content, such as a movie clip or other video streams</td>
</tr>
<tr>
<td>&lt;source&gt;</td>
<td>For media resources for media elements, defined inside video or audio elements</td>
</tr>
<tr>
<td>&lt;embed&gt;</td>
<td>For embedded content, such as a plug-in</td>
</tr>
<tr>
<td>&lt;track&gt;</td>
<td>For text tracks used in mediaplayers</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>The Canvas Element</h2>
<p>The canvas element uses JavaScript to make drawings on a web page.</p>
<table>
<tbody>
<tr>
<th align="left" width="110">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td>&lt;canvas&gt;</td>
<td>For making graphics with a script</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr />
<h2>New Form Elements</h2>
<p>HTML5 offers more form elements, with more functionality:</p>
<table>
<tbody>
<tr>
<th align="left" width="110">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td>&lt;datalist&gt;</td>
<td>A list of options for input values</td>
</tr>
<tr>
<td>&lt;keygen&gt;</td>
<td>Generate keys to authenticate users</td>
</tr>
<tr>
<td>&lt;output&gt;</td>
<td>For different types of output, such as output written by a script</td>
</tr>
</tbody>
</table>
<h2>New Input Type Attribute Values</h2>
<p>Also, the input element&#8217;s type attribute has many new values, for better input control before sending it to the server:</p>
<table>
<tbody>
<tr>
<th align="left" width="110">Type</th>
<th align="left">Description</th>
</tr>
<tr>
<td>tel</td>
<td>The input value is of type telephone number</td>
</tr>
<tr>
<td>search</td>
<td>The input field is a search field</td>
</tr>
<tr>
<td>url</td>
<td>The input value is a URL</td>
</tr>
<tr>
<td>email</td>
<td>The input value is one or more email addresses</td>
</tr>
<tr>
<td>datetime</td>
<td>The input value is a date and/or time</td>
</tr>
<tr>
<td>date</td>
<td>The input value is a date</td>
</tr>
<tr>
<td>month</td>
<td>The input value is a month</td>
</tr>
<tr>
<td>week</td>
<td>The input value is a week</td>
</tr>
<tr>
<td>time</td>
<td>The input value is of type time</td>
</tr>
<tr>
<td>datetime-local</td>
<td>The input value is a local date/time</td>
</tr>
<tr>
<td>number</td>
<td>The input value is a number</td>
</tr>
<tr>
<td>range</td>
<td>The input value is a number in a given range</td>
</tr>
<tr>
<td>color</td>
<td>The input value is a hexadecimal color, like #FF8800</td>
</tr>
<tr>
<td>placeholder</td>
<td>Specifies a short hint that describes the expected value of an input field</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/13/elements-continue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Elements</title>
		<link>http://www.waleswebsite.com/2010/07/12/elements/</link>
		<comments>http://www.waleswebsite.com/2010/07/12/elements/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 03:00:31 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[new elements]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=22</guid>
		<description><![CDATA[New Elements in HTML5 The internet has changed a lot since HTML 4.01 became a standard in 1999. Today, some elements in HTML 4.01 are obsolete, never used, or not used the way they were intended to. These elements are deleted or re-written in HTML5. To better handle today&#8217;s internet use, HTML5 also includes new [...]]]></description>
			<content:encoded><![CDATA[<h2>New Elements in HTML5</h2>
<p>The internet has changed a lot since HTML 4.01 became a standard in 1999.</p>
<p>Today, some elements in HTML 4.01 are obsolete, never used, or not used the way they were intended to. These elements are deleted or re-written in HTML5.</p>
<p>To better handle today&#8217;s internet use, HTML5 also includes new elements for better structure, drawing, media content, and better form handling.</p>
<hr />
<h2>New Markup Elements</h2>
<p>New elements for better structure:</p>
<table>
<tbody>
<tr>
<th align="left" width="110">Tag</th>
<th align="left">Description</th>
</tr>
<tr>
<td>&lt;article&gt;</td>
<td>Specifies independent, self-contained content, could be a news-article, blog post, forum post, or other articles which can be distributed independently from the rest of the site.</td>
</tr>
<tr>
<td>&lt;aside&gt;</td>
<td>For content aside from the content it is placed in. The aside content should be related to the surrounding content</td>
</tr>
<tr>
<td>&lt;bdi&gt;</td>
<td>For text that should not be bound to the text-direction of its parent elements</td>
</tr>
<tr>
<td>&lt;command&gt;</td>
<td>A button, or a radiobutton, or a checkbox</td>
</tr>
<tr>
<td>&lt;details&gt;</td>
<td>For describing details about a document, or parts of a document</td>
</tr>
<tr>
<td>&lt;summary&gt;</td>
<td>A caption, or summary, inside the details element</td>
</tr>
<tr>
<td>&lt;figure&gt;</td>
<td>For grouping a section of stand-alone content, could be a video</td>
</tr>
<tr>
<td>&lt;figcaption&gt;</td>
<td>The caption of the figure section</td>
</tr>
<tr>
<td>&lt;footer&gt;</td>
<td>For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information</td>
</tr>
<tr>
<td>&lt;header&gt;</td>
<td>For an introduction of a document or section, could include navigation</td>
</tr>
<tr>
<td>&lt;hgroup&gt;</td>
<td>For a section of headings, using &lt;h1&gt; to &lt;h6&gt;, where the largest is the main heading of the section, and the others are sub-headings</td>
</tr>
<tr>
<td>&lt;mark&gt;</td>
<td>For text that should be highlighted</td>
</tr>
<tr>
<td>&lt;meter&gt;</td>
<td>For a measurement, used only if the maximum and minimum values are known</td>
</tr>
<tr>
<td>&lt;nav&gt;</td>
<td>For a section of navigation</td>
</tr>
<tr>
<td>&lt;progress&gt;</td>
<td>The state of a work in progress</td>
</tr>
<tr>
<td>&lt;ruby&gt;</td>
<td>For ruby annotation (Chinese notes or characters)</td>
</tr>
<tr>
<td>&lt;rt&gt;</td>
<td>For explanation of the ruby annotation</td>
</tr>
<tr>
<td>&lt;rp&gt;</td>
<td>What to show browsers that do not support the ruby element</td>
</tr>
<tr>
<td>&lt;section&gt;</td>
<td>For a section in a document. Such as chapters, headers, footers, or any other sections of the document</td>
</tr>
<tr>
<td>&lt;time&gt;</td>
<td>For defining a time or a date, or both</td>
</tr>
<tr>
<td>&lt;wbr&gt;</td>
<td>Word break. For defining a line-break opportunity.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/12/elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5</title>
		<link>http://www.waleswebsite.com/2010/07/11/html5/</link>
		<comments>http://www.waleswebsite.com/2010/07/11/html5/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 03:00:27 +0000</pubDate>
		<dc:creator>earlan</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.waleswebsite.com/?p=16</guid>
		<description><![CDATA[HTML5 Introduction HTML5 is the next generation of HTML. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in 1999. The web has changed a lot since then. HTML5 is still a work in progress. However, most modern browsers have some HTML5 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>HTML5 Introduction</strong></p>
<p>HTML5 is the next generation of HTML.<br />
What is HTML5?</p>
<p>HTML5 will be the new standard for HTML, XHTML, and the HTML DOM.</p>
<p><a href="http://www.waleswebsite.com/wp-content/uploads/2011/10/html5.jpg"><img class="aligncenter size-full wp-image-17" title="html5" src="http://www.waleswebsite.com/wp-content/uploads/2011/10/html5.jpg" alt="" width="525" height="300" /></a></p>
<p>The previous version of HTML came in 1999. The web has changed a lot since then.</p>
<p>HTML5 is still a work in progress. However, most modern browsers have some HTML5 support.<br />
How Did HTML5 Get Started?</p>
<p>HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).</p>
<p>WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.</p>
<p>Some rules for HTML5 were established:</p>
<p>New features should be based on HTML, CSS, DOM, and JavaScript<br />
Reduce the need for external plugins (like Flash)<br />
Better error handling<br />
More markup to replace scripting<br />
HTML5 should be device independent<br />
The development process should be visible to the public</p>
<p>New Features</p>
<p>Some of the most interesting new features in HTML5:</p>
<p>The canvas element for drawing<br />
The video and audio elements for media playback<br />
Better support for local offline storage<br />
New content specific elements, like article, footer, header, nav, section<br />
New form controls, like calendar, date, time, email, url, search</p>
<p>Browser Support</p>
<p>HTML5 is not yet an official standard, and no browsers have full HTML5 support.</p>
<p>But all major browsers (Safari, Chrome, Firefox, Opera, Internet Explorer) continue to add new HTML5 features to their latest versions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waleswebsite.com/2010/07/11/html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

