<?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>W3 Updates, HTML, XHTML, CSS, JavaScript, AJAX, XML, PHP, Ruby, PHP Frameworks</title>
	<atom:link href="http://www.w3updates.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.w3updates.com</link>
	<description>Free W3 Articles, HTML Tutorials, XHTML Tutorials, Ajax Tutorials, Javascripts Tutorials, PHP, SQL, MySql, MSSQL, PHP Tutorial, CSS, JS Tutorials, Learn HMTL, Ruby on Rails, PHP Frameworks Tutorials, ASP.NET, W3 School, W3 Validator, Flash Tutorials, SEO Tips, Web Building, Server Scripting</description>
	<lastBuildDate>Tue, 08 May 2012 05:06:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Introduction to XML</title>
		<link>http://www.w3updates.com/xml-2/introduction-to-xml/</link>
		<comments>http://www.w3updates.com/xml-2/introduction-to-xml/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 10:54:47 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[XML]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1601</guid>
		<description><![CDATA[XML was designed to transport and store data. HTML was designed to display data. What You Should Already Know Before you continue you should have a basic understanding of the following: HTML JavaScript If you want to study these subjects first, find the tutorials on our Home page. What is XML? XML stands for EXtensible Markup [...]]]></description>
			<content:encoded><![CDATA[<p>XML was designed to transport and store data.</p>
<p>HTML was designed to display data.</p>
<hr />
<h2>What You Should Already Know</h2>
<p>Before you continue you should have a basic understanding of the following:</p>
<ul>
<li>HTML</li>
<li>JavaScript</li>
</ul>
<p>If you want to study these subjects first, find the tutorials on our Home page.</p>
<hr />
<h2>What is XML?</h2>
<ul>
<li>XML stands for EXtensible Markup Language</li>
<li>XML is a markup language much like HTML</li>
<li>XML was designed to carry data, not to display data</li>
<li>XML tags are not predefined. You must define your own tags</li>
<li>XML is designed to be self-descriptive</li>
<li>XML is a W3C Recommendation</li>
</ul>
<hr />
<h2>The Difference Between XML and HTML</h2>
<p>XML is not a replacement for HTML.</p>
<p>XML and HTML were designed with different goals:</p>
<ul>
<li>XML was designed to transport and store data, with focus on what data is</li>
<li>HTML was designed to display data, with focus on how data looks</li>
</ul>
<p>HTML is about displaying information, while XML is about carrying information.</p>
<hr />
<h2>XML Does Not DO Anything</h2>
<p>Maybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store, and transport information.</p>
<p>The following example is a note to Tove, from Jani, stored as XML:</p>
<div>
<div>&lt;note&gt;<br />
&lt;to&gt;Tove&lt;/to&gt;<br />
&lt;from&gt;Jani&lt;/from&gt;<br />
&lt;heading&gt;Reminder&lt;/heading&gt;<br />
&lt;body&gt;Don&#8217;t forget me this weekend!&lt;/body&gt;<br />
&lt;/note&gt;</div>
</div>
<p>The note above is quite self descriptive. It has sender and receiver information, it also has a heading and a message body.</p>
<p>But still, this XML document does not DO anything. It is just information wrapped in tags. Someone must write a piece of software to send, receive or display it.</p>
<hr />
<h2>With XML You Invent Your Own Tags</h2>
<p>The tags in the example above (like &lt;to&gt; and &lt;from&gt;) are not defined in any XML standard. These tags are &#8220;invented&#8221; by the author of the XML document.</p>
<p>That is because the XML language has no predefined tags.</p>
<p>The tags used in HTML are predefined. HTML documents can only use tags defined in the HTML standard (like &lt;p&gt;, &lt;h1&gt;, etc.).</p>
<p>XML allows the author to define his/her own tags and his/her own document structure.</p>
<hr />
<h2>XML is Not a Replacement for HTML</h2>
<p><strong>XML is a complement to HTML.</strong></p>
<p>It is important to understand that XML is not a replacement for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the data.</p>
<p>My best description of XML is this:</p>
<p><strong>XML is a software- and hardware-independent tool for carrying information.</strong></p>
<hr />
<h2>XML is a W3C Recommendation</h2>
<p>XML became a W3C Recommendation on February 10, 1998.</p>
<p>To read more about the XML activities at W3C, please read our W3C Tutorial.</p>
<hr />
<h2>XML is Everywhere</h2>
<p>XML is now as important for the Web as HTML was to the foundation of the Web.</p>
<p>XML is the most common tool for data transmissions between all sorts of applications.</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20&amp;bodytext=XML%20was%20designed%20to%20transport%20and%20store%20data.%0D%0A%0D%0AHTML%20was%20designed%20to%20display%20data.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20You%20Should%20Already%20Know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20s" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20&amp;notes=XML%20was%20designed%20to%20transport%20and%20store%20data.%0D%0A%0D%0AHTML%20was%20designed%20to%20display%20data.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20You%20Should%20Already%20Know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20s" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;t=Introduction%20to%20XML%20%20" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20&amp;annotation=XML%20was%20designed%20to%20transport%20and%20store%20data.%0D%0A%0D%0AHTML%20was%20designed%20to%20display%20data.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20You%20Should%20Already%20Know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20s" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=Introduction%20to%20XML%20%20&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;headline=Introduction%20to%20XML%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=XML%20was%20designed%20to%20transport%20and%20store%20data.%0D%0A%0D%0AHTML%20was%20designed%20to%20display%20data.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20You%20Should%20Already%20Know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20s" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;bm_description=Introduction%20to%20XML%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;t=Introduction%20to%20XML%20%20" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=Introduction%20to%20XML%20%20&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;h=Introduction%20to%20XML%20%20" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Introduction%20to%20XML%20%20&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;story_title=Introduction%20to%20XML%20%20" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Introduction%20to%20XML%20%20%20-%20http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;submitHeadline=Introduction%20to%20XML%20%20&amp;submitSummary=XML%20was%20designed%20to%20transport%20and%20store%20data.%0D%0A%0D%0AHTML%20was%20designed%20to%20display%20data.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20You%20Should%20Already%20Know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20s&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fintroduction-to-xml%2F&amp;title=Introduction%20to%20XML%20%20" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/xml-2/introduction-to-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Can XML be Used?</title>
		<link>http://www.w3updates.com/xml-2/how-can-xml-be-used/</link>
		<comments>http://www.w3updates.com/xml-2/how-can-xml-be-used/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 10:54:45 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[XML]]></category>
		<category><![CDATA[How Can]]></category>
		<category><![CDATA[Used]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1602</guid>
		<description><![CDATA[XML is used in many aspects of web development, often to simplify data storage and sharing. XML Separates Data from HTML If you need to display dynamic data in your HTML document, it will take a lot of work to edit the HTML each time the data changes. With XML, data can be stored in [...]]]></description>
			<content:encoded><![CDATA[<p>XML is used in many aspects of web development, often to simplify data storage and sharing.</p>
<hr />
<h2>XML Separates Data from HTML</h2>
<p>If you need to display dynamic data in your HTML document, it will take a lot of work to edit the HTML each time the data changes.</p>
<p>With XML, data can be stored in separate XML files. This way you can concentrate on using HTML for layout and display, and be sure that changes in the underlying data will not require any changes to the HTML.</p>
<p>With a few lines of JavaScript code, you can read an external XML file and update the data content of your web page.</p>
<hr />
<h2>XML Simplifies Data Sharing</h2>
<p>In the real world, computer systems and databases contain data in incompatible formats.</p>
<p>XML data is stored in plain text format. This provides a software- and hardware-independent way of storing data.</p>
<p>This makes it much easier to create data that can be shared by different applications.</p>
<hr />
<h2>XML Simplifies Data Transport</h2>
<p>One of the most time-consuming challenges for developers is to exchange data between incompatible systems over the Internet.</p>
<p>Exchanging data as XML greatly reduces this complexity, since the data can be read by different incompatible applications.</p>
<hr />
<h2>XML Simplifies Platform Changes</h2>
<p>Upgrading to new systems (hardware or software platforms), is always time consuming. Large amounts of data must be converted and incompatible data is often lost.</p>
<p>XML data is stored in text format. This makes it easier to expand or upgrade to new operating systems, new applications, or new browsers, without losing data.</p>
<hr />
<h2>XML Makes Your Data More Available</h2>
<p>Different applications can access your data, not only in HTML pages, but also from XML data sources.</p>
<p>With XML, your data can be available to all kinds of &#8220;reading machines&#8221; (Handheld computers, voice machines, news feeds, etc), and make it more available for blind people, or people with other disabilities.</p>
<hr />
<h2>XML is Used to Create New Internet Languages</h2>
<p>A lot of new Internet languages are created with XML.</p>
<p>Here are some examples:</p>
<ul>
<li>XHTML</li>
<li>WSDL for describing available web services</li>
<li>WAP and WML as markup languages for handheld devices</li>
<li>RSS languages for news feeds</li>
<li>RDF and OWL for describing resources and ontology</li>
<li>SMIL for describing multimedia for the web</li>
</ul>
<hr />
<h2>If Developers Have Sense</h2>
<p><strong>If they DO have sense, future applications will exchange their data in XML.</strong></p>
<p>The future might give us word processors, spreadsheet applications and databases that can read each other&#8217;s data in XML format, without any conversion utilities in between.</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F&amp;bodytext=XML%20is%20used%20in%20many%20aspects%20of%20web%20development%2C%20often%20to%20simplify%20data%20storage%20and%20sharing.%0D%0A%0D%0A%0D%0A%0D%0AXML%20Separates%20Data%20from%20HTML%0D%0AIf%20you%20need%20to%20display%20dynamic%20data%20in%20your%20HTML%20document%2C%20it%20will%20take%20a%20lot%20of%20work%20to%20edit%20the%20HTML%20each%20time%20the%20data" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F&amp;notes=XML%20is%20used%20in%20many%20aspects%20of%20web%20development%2C%20often%20to%20simplify%20data%20storage%20and%20sharing.%0D%0A%0D%0A%0D%0A%0D%0AXML%20Separates%20Data%20from%20HTML%0D%0AIf%20you%20need%20to%20display%20dynamic%20data%20in%20your%20HTML%20document%2C%20it%20will%20take%20a%20lot%20of%20work%20to%20edit%20the%20HTML%20each%20time%20the%20data" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;t=How%20Can%20XML%20be%20Used%3F" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F&amp;annotation=XML%20is%20used%20in%20many%20aspects%20of%20web%20development%2C%20often%20to%20simplify%20data%20storage%20and%20sharing.%0D%0A%0D%0A%0D%0A%0D%0AXML%20Separates%20Data%20from%20HTML%0D%0AIf%20you%20need%20to%20display%20dynamic%20data%20in%20your%20HTML%20document%2C%20it%20will%20take%20a%20lot%20of%20work%20to%20edit%20the%20HTML%20each%20time%20the%20data" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=How%20Can%20XML%20be%20Used%3F&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;headline=How%20Can%20XML%20be%20Used%3F&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=XML%20is%20used%20in%20many%20aspects%20of%20web%20development%2C%20often%20to%20simplify%20data%20storage%20and%20sharing.%0D%0A%0D%0A%0D%0A%0D%0AXML%20Separates%20Data%20from%20HTML%0D%0AIf%20you%20need%20to%20display%20dynamic%20data%20in%20your%20HTML%20document%2C%20it%20will%20take%20a%20lot%20of%20work%20to%20edit%20the%20HTML%20each%20time%20the%20data" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;bm_description=How%20Can%20XML%20be%20Used%3F&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;t=How%20Can%20XML%20be%20Used%3F" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=How%20Can%20XML%20be%20Used%3F&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;h=How%20Can%20XML%20be%20Used%3F" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=How%20Can%20XML%20be%20Used%3F&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;story_title=How%20Can%20XML%20be%20Used%3F" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20Can%20XML%20be%20Used%3F%20-%20http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;submitHeadline=How%20Can%20XML%20be%20Used%3F&amp;submitSummary=XML%20is%20used%20in%20many%20aspects%20of%20web%20development%2C%20often%20to%20simplify%20data%20storage%20and%20sharing.%0D%0A%0D%0A%0D%0A%0D%0AXML%20Separates%20Data%20from%20HTML%0D%0AIf%20you%20need%20to%20display%20dynamic%20data%20in%20your%20HTML%20document%2C%20it%20will%20take%20a%20lot%20of%20work%20to%20edit%20the%20HTML%20each%20time%20the%20data&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fhow-can-xml-be-used%2F&amp;title=How%20Can%20XML%20be%20Used%3F" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/xml-2/how-can-xml-be-used/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Tree</title>
		<link>http://www.w3updates.com/xml-2/xml-tree/</link>
		<comments>http://www.w3updates.com/xml-2/xml-tree/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 10:54:44 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[XML]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[Tree]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1603</guid>
		<description><![CDATA[<a href="http://www.w3updates.com/xml-2/xml-tree/"><img align="left" hspace="5" width="100" src="http://www.w3schools.com/xml/nodetree.gif" class="alignleft wp-post-image tfe" alt="DOM node tree" title="" /></a>XML documents form a tree structure that starts at &#8220;the root&#8221; and branches to &#8220;the leaves&#8221;. An Example XML Document XML documents use a self-describing and simple syntax: &#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;ISO-8859-1&#8243;?&#62; &#60;note&#62; &#60;to&#62;Tove&#60;/to&#62; &#60;from&#62;Jani&#60;/from&#62; &#60;heading&#62;Reminder&#60;/heading&#62; &#60;body&#62;Don&#8217;t forget me this weekend!&#60;/body&#62; &#60;/note&#62; The first line is the XML declaration. It defines the XML version (1.0) and [...]]]></description>
			<content:encoded><![CDATA[<p>XML documents form a tree structure that starts at &#8220;the root&#8221; and branches to &#8220;the leaves&#8221;.</p>
<hr />
<h2>An Example XML Document</h2>
<p>XML documents use a self-describing and simple syntax:</p>
<div>
<div>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;ISO-8859-1&#8243;?&gt;<br />
&lt;note&gt;<br />
&lt;to&gt;Tove&lt;/to&gt;<br />
&lt;from&gt;Jani&lt;/from&gt;<br />
&lt;heading&gt;Reminder&lt;/heading&gt;<br />
&lt;body&gt;Don&#8217;t forget me this weekend!&lt;/body&gt;<br />
&lt;/note&gt;</div>
</div>
<p>The first line is the XML declaration. It defines the XML version (1.0) and the encoding used (ISO-8859-1 = Latin-1/West European character set).</p>
<p>The next line describes the <strong>root element </strong>of the document (like saying: &#8220;this document is a note&#8221;):</p>
<div>
<div>&lt;note&gt;</div>
</div>
<p>The next 4 lines describe 4 <strong>child elements</strong> of the root (to, from, heading, and body):</p>
<div>
<div>&lt;to&gt;Tove&lt;/to&gt;<br />
&lt;from&gt;Jani&lt;/from&gt;<br />
&lt;heading&gt;Reminder&lt;/heading&gt;<br />
&lt;body&gt;Don&#8217;t forget me this weekend!&lt;/body&gt;</div>
</div>
<p>And finally the last line defines the end of the root element:</p>
<div>
<div>&lt;/note&gt;</div>
</div>
<p>You can assume, from this example, that the XML document contains a note to Tove from Jani.</p>
<p>Don&#8217;t you agree that XML is pretty self-descriptive?</p>
<hr />
<h2>XML Documents Form a Tree Structure</h2>
<p>XML documents must contain a <strong>root element</strong>. This element is &#8220;the parent&#8221; of all other elements.</p>
<p>The elements in an XML document form a document tree. The tree starts at the root and branches to the lowest level of the tree.</p>
<p>All elements can have sub elements (child elements):</p>
<div>
<div>&lt;root&gt;<br />
&lt;child&gt;<br />
&lt;subchild&gt;&#8230;..&lt;/subchild&gt;<br />
&lt;/child&gt;<br />
&lt;/root&gt;</div>
</div>
<p>The terms parent, child, and sibling are used to describe the relationships between elements. Parent elements have children. Children on the same level are called siblings (brothers or sisters).</p>
<p>All elements can have text content and attributes (just like in HTML).</p>
<hr />
<h2>Example:</h2>
<p><img src="http://www.w3schools.com/xml/nodetree.gif" alt="DOM node tree" width="486" height="275" border="0" /></p>
<p>The image above represents one book in the XML below:</p>
<div>
<div>&lt;bookstore&gt;<br />
&lt;book category=&#8221;COOKING&#8221;&gt;<br />
&lt;title lang=&#8221;en&#8221;&gt;Everyday Italian&lt;/title&gt;<br />
&lt;author&gt;Giada De Laurentiis&lt;/author&gt;<br />
&lt;year&gt;2005&lt;/year&gt;<br />
&lt;price&gt;30.00&lt;/price&gt;<br />
&lt;/book&gt;<br />
&lt;book category=&#8221;CHILDREN&#8221;&gt;<br />
&lt;title lang=&#8221;en&#8221;&gt;Harry Potter&lt;/title&gt;<br />
&lt;author&gt;J K. Rowling&lt;/author&gt;<br />
&lt;year&gt;2005&lt;/year&gt;<br />
&lt;price&gt;29.99&lt;/price&gt;<br />
&lt;/book&gt;<br />
&lt;book category=&#8221;WEB&#8221;&gt;<br />
&lt;title lang=&#8221;en&#8221;&gt;Learning XML&lt;/title&gt;<br />
&lt;author&gt;Erik T. Ray&lt;/author&gt;<br />
&lt;year&gt;2003&lt;/year&gt;<br />
&lt;price&gt;39.95&lt;/price&gt;<br />
&lt;/book&gt;<br />
&lt;/bookstore&gt;</div>
</div>
<p>The root element in the example is &lt;bookstore&gt;. All &lt;book&gt; elements in the document are contained within &lt;bookstore&gt;.</p>
<p>The &lt;book&gt; element has 4 children: &lt;title&gt;,&lt; author&gt;, &lt;year&gt;, &lt;price&gt;.</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree&amp;bodytext=XML%20documents%20form%20a%20tree%20structure%20that%20starts%20at%20%22the%20root%22%20and%20branches%20to%20%22the%20leaves%22.%0D%0A%0D%0A%0D%0A%0D%0AAn%20Example%20XML%20Document%0D%0AXML%20documents%20use%20a%20self-describing%20and%20simple%20syntax%3A%0D%0A%0D%0A%26lt%3B%3Fxml%20version%3D%221.0%22%20encoding%3D%22ISO-8859-1%22%3F%26gt%3B%0D%0A%26lt%3Bnote%26gt%3B%0D%0A%26lt" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree&amp;notes=XML%20documents%20form%20a%20tree%20structure%20that%20starts%20at%20%22the%20root%22%20and%20branches%20to%20%22the%20leaves%22.%0D%0A%0D%0A%0D%0A%0D%0AAn%20Example%20XML%20Document%0D%0AXML%20documents%20use%20a%20self-describing%20and%20simple%20syntax%3A%0D%0A%0D%0A%26lt%3B%3Fxml%20version%3D%221.0%22%20encoding%3D%22ISO-8859-1%22%3F%26gt%3B%0D%0A%26lt%3Bnote%26gt%3B%0D%0A%26lt" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;t=XML%20Tree" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree&amp;annotation=XML%20documents%20form%20a%20tree%20structure%20that%20starts%20at%20%22the%20root%22%20and%20branches%20to%20%22the%20leaves%22.%0D%0A%0D%0A%0D%0A%0D%0AAn%20Example%20XML%20Document%0D%0AXML%20documents%20use%20a%20self-describing%20and%20simple%20syntax%3A%0D%0A%0D%0A%26lt%3B%3Fxml%20version%3D%221.0%22%20encoding%3D%22ISO-8859-1%22%3F%26gt%3B%0D%0A%26lt%3Bnote%26gt%3B%0D%0A%26lt" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=XML%20Tree&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;headline=XML%20Tree&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=XML%20documents%20form%20a%20tree%20structure%20that%20starts%20at%20%22the%20root%22%20and%20branches%20to%20%22the%20leaves%22.%0D%0A%0D%0A%0D%0A%0D%0AAn%20Example%20XML%20Document%0D%0AXML%20documents%20use%20a%20self-describing%20and%20simple%20syntax%3A%0D%0A%0D%0A%26lt%3B%3Fxml%20version%3D%221.0%22%20encoding%3D%22ISO-8859-1%22%3F%26gt%3B%0D%0A%26lt%3Bnote%26gt%3B%0D%0A%26lt" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;bm_description=XML%20Tree&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;t=XML%20Tree" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=XML%20Tree&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;h=XML%20Tree" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=XML%20Tree&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;story_title=XML%20Tree" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=XML%20Tree%20-%20http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;submitHeadline=XML%20Tree&amp;submitSummary=XML%20documents%20form%20a%20tree%20structure%20that%20starts%20at%20%22the%20root%22%20and%20branches%20to%20%22the%20leaves%22.%0D%0A%0D%0A%0D%0A%0D%0AAn%20Example%20XML%20Document%0D%0AXML%20documents%20use%20a%20self-describing%20and%20simple%20syntax%3A%0D%0A%0D%0A%26lt%3B%3Fxml%20version%3D%221.0%22%20encoding%3D%22ISO-8859-1%22%3F%26gt%3B%0D%0A%26lt%3Bnote%26gt%3B%0D%0A%26lt&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-tree%2F&amp;title=XML%20Tree" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/xml-2/xml-tree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Syntax Rules</title>
		<link>http://www.w3updates.com/xml-2/xml-syntax-rules/</link>
		<comments>http://www.w3updates.com/xml-2/xml-syntax-rules/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 10:54:43 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[XML]]></category>
		<category><![CDATA[Rules]]></category>
		<category><![CDATA[Syntax]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1604</guid>
		<description><![CDATA[The syntax rules of XML are very simple and logical. The rules are easy to learn, and easy to use. All XML Elements Must Have a Closing Tag In HTML, some elements do not have to have a closing tag: &#60;p&#62;This is a paragraph. &#60;br&#62; In XML, it is illegal to omit the closing tag. [...]]]></description>
			<content:encoded><![CDATA[<p>The syntax rules of XML are very simple and logical. The rules are easy to learn, and easy to use.</p>
<hr />
<h2>All XML Elements Must Have a Closing Tag</h2>
<p>In HTML, some elements do not have to have a closing tag:</p>
<div>
<div>&lt;p&gt;This is a paragraph.<br />
&lt;br&gt;</div>
</div>
<p>In XML, it is illegal to omit the closing tag. All elements <strong>must</strong> have a closing tag:</p>
<div>
<div>&lt;p&gt;This is a paragraph.&lt;/p&gt;<br />
&lt;br /&gt;</div>
</div>
<p><strong>Note</strong>: You might have noticed from the previous example that the XML declaration did not have a closing tag. This is not an error. The declaration is not a part of the XML document itself, and it has no closing tag.</p>
<hr />
<h2>XML Tags are Case Sensitive</h2>
<p>XML tags are case sensitive. The tag &lt;Letter&gt; is different from the tag &lt;letter&gt;.</p>
<p>Opening and closing tags must be written with the same case:</p>
<div>
<div>&lt;Message&gt;This is incorrect&lt;/message&gt;<br />
&lt;message&gt;This is correct&lt;/message&gt;</div>
</div>
<p><strong>Note:</strong> &#8221;Opening and closing tags&#8221; are often referred to as &#8220;Start and end tags&#8221;. Use whatever you prefer. It is exactly the same thing.</p>
<hr />
<h2>XML Elements Must be Properly Nested</h2>
<p>In HTML, you might see improperly nested elements:</p>
<div>
<div>&lt;b&gt;&lt;i&gt;This text is bold and italic&lt;/b&gt;&lt;/i&gt;</div>
</div>
<p>In XML, all elements <strong>must</strong> be properly nested within each other:</p>
<div>
<div>&lt;b&gt;&lt;i&gt;This text is bold and italic&lt;/i&gt;&lt;/b&gt;</div>
</div>
<p>In the example above, &#8220;Properly nested&#8221; simply means that since the &lt;i&gt; element is opened inside the &lt;b&gt; element, it must be closed inside the &lt;b&gt; element.</p>
<hr />
<h2>XML Documents Must Have a Root Element</h2>
<p>XML documents must contain one element that is the <strong>parent</strong> of all other elements. This element is called the <strong>root</strong> element.</p>
<div>
<div>&lt;root&gt;<br />
&lt;child&gt;<br />
&lt;subchild&gt;&#8230;..&lt;/subchild&gt;<br />
&lt;/child&gt;<br />
&lt;/root&gt;</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>XML Attribute Values Must be Quoted</h2>
<p>XML elements can have attributes in name/value pairs just like in HTML.</p>
<p>In XML, the attribute values must always be quoted.</p>
<p>Study the two XML documents below. The first one is incorrect, the second is correct:</p>
<div>
<div>&lt;note date=12/11/2007&gt;<br />
&lt;to&gt;Tove&lt;/to&gt;<br />
&lt;from&gt;Jani&lt;/from&gt;<br />
&lt;/note&gt;</div>
</div>
<p>&nbsp;</p>
<div>
<div>&lt;note date=&#8221;12/11/2007&#8243;&gt;<br />
&lt;to&gt;Tove&lt;/to&gt;<br />
&lt;from&gt;Jani&lt;/from&gt;<br />
&lt;/note&gt;</div>
</div>
<p>The error in the first document is that the date attribute in the note element is not quoted.</p>
<hr />
<h2>Entity References</h2>
<p>Some characters have a special meaning in XML.</p>
<p>If you place a character like &#8220;&lt;&#8221; inside an XML element, it will generate an error because the parser interprets it as the start of a new element.</p>
<p>This will generate an XML error:</p>
<div>
<div>&lt;message&gt;if salary &lt; 1000 then&lt;/message&gt;</div>
</div>
<p>To avoid this error, replace the &#8220;&lt;&#8221; character with an <strong>entity reference</strong>:</p>
<div>
<div>&lt;message&gt;if salary &amp;lt; 1000 then&lt;/message&gt;</div>
</div>
<p>There are 5 predefined entity references in XML:</p>
<table>
<tbody>
<tr>
<td>&amp;lt;</td>
<td>&lt;</td>
<td>less than</td>
</tr>
<tr>
<td>&amp;gt;</td>
<td>&gt;</td>
<td>greater than</td>
</tr>
<tr>
<td>&amp;amp;</td>
<td>&amp;</td>
<td>ampersand</td>
</tr>
<tr>
<td>&amp;apos;</td>
<td>&#8216;</td>
<td>apostrophe</td>
</tr>
<tr>
<td>&amp;quot;</td>
<td>&#8220;</td>
<td>quotation mark</td>
</tr>
</tbody>
</table>
<p><strong>Note:</strong> Only the characters &#8220;&lt;&#8221; and &#8220;&amp;&#8221; are strictly illegal in XML. The greater than character is legal, but it is a good habit to replace it.</p>
<hr />
<h2>Comments in XML</h2>
<p>The syntax for writing comments in XML is similar to that of HTML.</p>
<p>&lt;!&#8211; This is a comment &#8211;&gt;</p>
<hr />
<h2>White-space is Preserved in XML</h2>
<p>HTML truncates multiple white-space characters to one single white-space:</p>
<table>
<tbody>
<tr>
<td>HTML:</td>
<td>Hello           Tove</td>
</tr>
<tr>
<td>Output:</td>
<td>Hello Tove</td>
</tr>
</tbody>
</table>
<p>With XML, the white-space in a document is not truncated.</p>
<hr />
<h2>XML Stores New Line as LF</h2>
<p>In Windows applications, a new line is normally stored as a pair of characters: carriage return (CR) and line feed (LF). In Unix applications, a new line is normally stored as an LF character. Macintosh applications also use an LF to store a new line.</p>
<p>XML stores a new line as LF.</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules&amp;bodytext=The%20syntax%20rules%20of%20XML%20are%20very%20simple%20and%20logical.%20The%20rules%20are%20easy%20to%20learn%2C%20and%20easy%20to%20use.%0D%0A%0D%0A%0D%0A%0D%0AAll%20XML%20Elements%20Must%20Have%20a%20Closing%20Tag%0D%0AIn%20HTML%2C%20some%20elements%20do%20not%20have%20to%20have%20a%20closing%20tag%3A%0D%0A%0D%0A%26lt%3Bp%26gt%3BThis%20is%20a%20paragraph.%0D%0A%26lt%3Bbr%26gt%3B" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules&amp;notes=The%20syntax%20rules%20of%20XML%20are%20very%20simple%20and%20logical.%20The%20rules%20are%20easy%20to%20learn%2C%20and%20easy%20to%20use.%0D%0A%0D%0A%0D%0A%0D%0AAll%20XML%20Elements%20Must%20Have%20a%20Closing%20Tag%0D%0AIn%20HTML%2C%20some%20elements%20do%20not%20have%20to%20have%20a%20closing%20tag%3A%0D%0A%0D%0A%26lt%3Bp%26gt%3BThis%20is%20a%20paragraph.%0D%0A%26lt%3Bbr%26gt%3B" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;t=XML%20Syntax%20Rules" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules&amp;annotation=The%20syntax%20rules%20of%20XML%20are%20very%20simple%20and%20logical.%20The%20rules%20are%20easy%20to%20learn%2C%20and%20easy%20to%20use.%0D%0A%0D%0A%0D%0A%0D%0AAll%20XML%20Elements%20Must%20Have%20a%20Closing%20Tag%0D%0AIn%20HTML%2C%20some%20elements%20do%20not%20have%20to%20have%20a%20closing%20tag%3A%0D%0A%0D%0A%26lt%3Bp%26gt%3BThis%20is%20a%20paragraph.%0D%0A%26lt%3Bbr%26gt%3B" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=XML%20Syntax%20Rules&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;headline=XML%20Syntax%20Rules&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=The%20syntax%20rules%20of%20XML%20are%20very%20simple%20and%20logical.%20The%20rules%20are%20easy%20to%20learn%2C%20and%20easy%20to%20use.%0D%0A%0D%0A%0D%0A%0D%0AAll%20XML%20Elements%20Must%20Have%20a%20Closing%20Tag%0D%0AIn%20HTML%2C%20some%20elements%20do%20not%20have%20to%20have%20a%20closing%20tag%3A%0D%0A%0D%0A%26lt%3Bp%26gt%3BThis%20is%20a%20paragraph.%0D%0A%26lt%3Bbr%26gt%3B" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;bm_description=XML%20Syntax%20Rules&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;t=XML%20Syntax%20Rules" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=XML%20Syntax%20Rules&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;h=XML%20Syntax%20Rules" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=XML%20Syntax%20Rules&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;story_title=XML%20Syntax%20Rules" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=XML%20Syntax%20Rules%20-%20http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;submitHeadline=XML%20Syntax%20Rules&amp;submitSummary=The%20syntax%20rules%20of%20XML%20are%20very%20simple%20and%20logical.%20The%20rules%20are%20easy%20to%20learn%2C%20and%20easy%20to%20use.%0D%0A%0D%0A%0D%0A%0D%0AAll%20XML%20Elements%20Must%20Have%20a%20Closing%20Tag%0D%0AIn%20HTML%2C%20some%20elements%20do%20not%20have%20to%20have%20a%20closing%20tag%3A%0D%0A%0D%0A%26lt%3Bp%26gt%3BThis%20is%20a%20paragraph.%0D%0A%26lt%3Bbr%26gt%3B&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fxml-2%2Fxml-syntax-rules%2F&amp;title=XML%20Syntax%20Rules" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/xml-2/xml-syntax-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHTML &#8211; CSS</title>
		<link>http://www.w3updates.com/browser-scripting/dhtml/dhtml-css/</link>
		<comments>http://www.w3updates.com/browser-scripting/dhtml/dhtml-css/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 10:56:17 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[DHTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1594</guid>
		<description><![CDATA[JavaScript and the HTML DOM can be used to change the style of any HTML element. Change Style of the Current HTML Element To change the style of the current HTML element, use the following statement: this.style.property=new style Example &#60;html&#62; &#60;body&#62;&#60;h1 onclick=&#8221;this.style.color=&#8217;red&#8217;&#8221;&#62;Click Me!&#60;/h1&#62; &#60;/body&#62; &#60;/html&#62; Try it yourself » &#160; Change Style of a Specific [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScript and the HTML DOM can be used to change the style of any HTML element.</p>
<hr />
<h2>Change Style of the Current HTML Element</h2>
<p>To change the style of the current HTML element, use the following statement:</p>
<p>this.style.<em>property</em>=<em>new style</em></p>
<div>
<h2>Example</h2>
<div>&lt;html&gt;<br />
&lt;body&gt;&lt;h1 onclick=&#8221;this.style.color=&#8217;red&#8217;&#8221;&gt;Click Me!&lt;/h1&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
</div>
<p><a href="http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_dom_color" target="_blank">Try it yourself »</a></p>
</div>
<p>&nbsp;</p>
<hr />
<h2>Change Style of a Specific HTML Element</h2>
<p>To change the style of a specific HTML element, use the following statement:</p>
<p>document.getElementById(<em>id</em>).style.<em>property</em>=<em>new style</em></p>
<div>
<h2>Example</h2>
<div>&lt;html&gt;<br />
&lt;body&gt;&lt;h1 id=&#8221;h1&#8243; onclick=&#8221;document.getElementById(&#8216;h1&#8242;).style.color=&#8217;red&#8217;&#8221;&gt;Click Me!&lt;/h1&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
</div>
<p><a href="http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_dom_color2" target="_blank">Try it yourself »</a></p>
</div>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS&amp;bodytext=JavaScript%20and%20the%20HTML%20DOM%20can%20be%20used%20to%20change%20the%20style%20of%20any%20HTML%20element.%0D%0A%0D%0A%0D%0A%0D%0AChange%20Style%20of%20the%20Current%20HTML%20Element%0D%0ATo%20change%20the%20style%20of%20the%20current%20HTML%20element%2C%20use%20the%20following%20statement%3A%0D%0A%0D%0Athis.style.property%3Dnew%20style%0D%0A%0D%0AExampl" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS&amp;notes=JavaScript%20and%20the%20HTML%20DOM%20can%20be%20used%20to%20change%20the%20style%20of%20any%20HTML%20element.%0D%0A%0D%0A%0D%0A%0D%0AChange%20Style%20of%20the%20Current%20HTML%20Element%0D%0ATo%20change%20the%20style%20of%20the%20current%20HTML%20element%2C%20use%20the%20following%20statement%3A%0D%0A%0D%0Athis.style.property%3Dnew%20style%0D%0A%0D%0AExampl" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;t=DHTML%20-%20CSS" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS&amp;annotation=JavaScript%20and%20the%20HTML%20DOM%20can%20be%20used%20to%20change%20the%20style%20of%20any%20HTML%20element.%0D%0A%0D%0A%0D%0A%0D%0AChange%20Style%20of%20the%20Current%20HTML%20Element%0D%0ATo%20change%20the%20style%20of%20the%20current%20HTML%20element%2C%20use%20the%20following%20statement%3A%0D%0A%0D%0Athis.style.property%3Dnew%20style%0D%0A%0D%0AExampl" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=DHTML%20-%20CSS&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;headline=DHTML%20-%20CSS&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=JavaScript%20and%20the%20HTML%20DOM%20can%20be%20used%20to%20change%20the%20style%20of%20any%20HTML%20element.%0D%0A%0D%0A%0D%0A%0D%0AChange%20Style%20of%20the%20Current%20HTML%20Element%0D%0ATo%20change%20the%20style%20of%20the%20current%20HTML%20element%2C%20use%20the%20following%20statement%3A%0D%0A%0D%0Athis.style.property%3Dnew%20style%0D%0A%0D%0AExampl" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;bm_description=DHTML%20-%20CSS&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;t=DHTML%20-%20CSS" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=DHTML%20-%20CSS&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;h=DHTML%20-%20CSS" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=DHTML%20-%20CSS&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;story_title=DHTML%20-%20CSS" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=DHTML%20-%20CSS%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;submitHeadline=DHTML%20-%20CSS&amp;submitSummary=JavaScript%20and%20the%20HTML%20DOM%20can%20be%20used%20to%20change%20the%20style%20of%20any%20HTML%20element.%0D%0A%0D%0A%0D%0A%0D%0AChange%20Style%20of%20the%20Current%20HTML%20Element%0D%0ATo%20change%20the%20style%20of%20the%20current%20HTML%20element%2C%20use%20the%20following%20statement%3A%0D%0A%0D%0Athis.style.property%3Dnew%20style%0D%0A%0D%0AExampl&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-css%2F&amp;title=DHTML%20-%20CSS" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/dhtml/dhtml-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHTML &#8211; HTML Events</title>
		<link>http://www.w3updates.com/browser-scripting/dhtml/dhtml-html-events/</link>
		<comments>http://www.w3updates.com/browser-scripting/dhtml/dhtml-html-events/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 10:56:15 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[DHTML]]></category>
		<category><![CDATA[HTML Events]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1595</guid>
		<description><![CDATA[HTML events can trigger actions in a browser. HTML Events Every element on an HTML page has events which can trigger a JavaScript. For example, we can use the onClick event of a button element to indicate that a function will run when a user clicks on the button. We define the events in the [...]]]></description>
			<content:encoded><![CDATA[<p>HTML events can trigger actions in a browser.</p>
<hr />
<h2>HTML Events</h2>
<p>Every element on an HTML page has events which can trigger a JavaScript.</p>
<p>For example, we can use the onClick event of a button element to indicate that a function will run when a user clicks on the button. We define the events in the HTML tags.</p>
<p>Examples of events:</p>
<ul>
<li>A mouse click</li>
<li>A web page or an image loading</li>
<li>Mousing over a hot spot on the web page</li>
<li>Selecting an input field in an HTML form</li>
<li>Submitting an HTML form</li>
<li>A keystroke</li>
</ul>
<p>In the following example, the content of the h1 element will change when a user clicks on it:</p>
<div>
<h2>Example</h2>
<div>&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;h1 onclick=&#8221;this.innerHTML=&#8217;Ooops!&#8217;&#8221;&gt;Click on this text&lt;/h1&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</div>
<p><a href="http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_event_onclick2" target="_blank">Try it yourself »</a></div>
<p>You can also add the script in the head section, and then call a function from the event handler:</p>
<div>
<h2>Example</h2>
<div>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function changetext(id)<br />
{<br />
id.innerHTML=&#8221;Ooops!&#8221;;<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1 onclick=&#8221;changetext(this)&#8221;&gt;Click on this text&lt;/h1&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</div>
<p><a href="http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_event_onclick3" target="_blank">Try it yourself »</a></div>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events&amp;bodytext=HTML%20events%20can%20trigger%20actions%20in%20a%20browser.%0D%0A%0D%0A%0D%0A%0D%0AHTML%20Events%0D%0AEvery%20element%20on%20an%20HTML%20page%20has%20events%20which%20can%20trigger%20a%20JavaScript.%0D%0A%0D%0AFor%20example%2C%20we%20can%20use%20the%20onClick%20event%20of%20a%20button%20element%20to%20indicate%20that%20a%20function%20will%20run%20when%20a%20us" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events&amp;notes=HTML%20events%20can%20trigger%20actions%20in%20a%20browser.%0D%0A%0D%0A%0D%0A%0D%0AHTML%20Events%0D%0AEvery%20element%20on%20an%20HTML%20page%20has%20events%20which%20can%20trigger%20a%20JavaScript.%0D%0A%0D%0AFor%20example%2C%20we%20can%20use%20the%20onClick%20event%20of%20a%20button%20element%20to%20indicate%20that%20a%20function%20will%20run%20when%20a%20us" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;t=DHTML%20-%20HTML%20Events" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events&amp;annotation=HTML%20events%20can%20trigger%20actions%20in%20a%20browser.%0D%0A%0D%0A%0D%0A%0D%0AHTML%20Events%0D%0AEvery%20element%20on%20an%20HTML%20page%20has%20events%20which%20can%20trigger%20a%20JavaScript.%0D%0A%0D%0AFor%20example%2C%20we%20can%20use%20the%20onClick%20event%20of%20a%20button%20element%20to%20indicate%20that%20a%20function%20will%20run%20when%20a%20us" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=DHTML%20-%20HTML%20Events&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;headline=DHTML%20-%20HTML%20Events&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=HTML%20events%20can%20trigger%20actions%20in%20a%20browser.%0D%0A%0D%0A%0D%0A%0D%0AHTML%20Events%0D%0AEvery%20element%20on%20an%20HTML%20page%20has%20events%20which%20can%20trigger%20a%20JavaScript.%0D%0A%0D%0AFor%20example%2C%20we%20can%20use%20the%20onClick%20event%20of%20a%20button%20element%20to%20indicate%20that%20a%20function%20will%20run%20when%20a%20us" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;bm_description=DHTML%20-%20HTML%20Events&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;t=DHTML%20-%20HTML%20Events" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=DHTML%20-%20HTML%20Events&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;h=DHTML%20-%20HTML%20Events" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=DHTML%20-%20HTML%20Events&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;story_title=DHTML%20-%20HTML%20Events" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=DHTML%20-%20HTML%20Events%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;submitHeadline=DHTML%20-%20HTML%20Events&amp;submitSummary=HTML%20events%20can%20trigger%20actions%20in%20a%20browser.%0D%0A%0D%0A%0D%0A%0D%0AHTML%20Events%0D%0AEvery%20element%20on%20an%20HTML%20page%20has%20events%20which%20can%20trigger%20a%20JavaScript.%0D%0A%0D%0AFor%20example%2C%20we%20can%20use%20the%20onClick%20event%20of%20a%20button%20element%20to%20indicate%20that%20a%20function%20will%20run%20when%20a%20us&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-events%2F&amp;title=DHTML%20-%20HTML%20Events" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/dhtml/dhtml-html-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHTML &#8211; HTML DOM</title>
		<link>http://www.w3updates.com/browser-scripting/dhtml/dhtml-html-dom/</link>
		<comments>http://www.w3updates.com/browser-scripting/dhtml/dhtml-html-dom/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 10:41:48 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[DHTML]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML DOM]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1588</guid>
		<description><![CDATA[What is the HTML DOM? The HTML DOM is: A Document Object Model for HTML A standard programming interface for HTML Platform- and language-independent A W3C standard The HTML DOM defines the objects and properties of all HTML elements, and the methods(interface) to access them. In other words: The HTML DOM is a standard for how to get, change, [...]]]></description>
			<content:encoded><![CDATA[<h2>What is the HTML DOM?</h2>
<p>The HTML DOM is:</p>
<ul>
<li>A Document Object Model for HTML</li>
<li>A standard programming interface for HTML</li>
<li>Platform- and language-independent</li>
<li>A W3C standard</li>
</ul>
<p>The HTML DOM defines the <strong>objects and properties</strong> of all HTML elements, and the <strong>methods</strong>(interface) to access them.</p>
<p>In other words: <strong>The HTML DOM is a standard for how to get, change, add, or delete HTML elements.</strong></p>
<hr />
<h2>Change an HTML Element</h2>
<p>The following example changes the content of an h1 element:</p>
<div>
<h2>Example</h2>
<div>&lt;html&gt;<br />
&lt;body&gt;</p>
<p>&lt;h1 id=&#8221;header&#8221;&gt;Old Header&lt;/h1&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
document.getElementById(&#8220;header&#8221;).innerHTML=&#8221;New Header&#8221;;<br />
&lt;/script&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
<p>Try it yourself »</p></div>
<p>Example explained:</p>
<ul>
<li>The HTML document above contains an h1 element with id=&#8221;header&#8221;</li>
<li>We use the HTML DOM to get the element with id=&#8221;header&#8221;</li>
<li>A JavaScript changes the content (innerHTML) of that element</li>
</ul>
<hr />
<h2>Change an HTML Attribute</h2>
<p>The following example changes the src attribute of an img element:</p>
<div>
<h2>Example</h2>
<div>&lt;html&gt;<br />
&lt;body&gt;</p>
<p>&lt;img id=&#8221;image&#8221; src=&#8221;smiley.gif&#8221;&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
document.getElementById(&#8220;image&#8221;).src=&#8221;landscape.jpg&#8221;;<br />
&lt;/script&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
<p>Try it yourself »</p></div>
<p>Example explained:</p>
<ul>
<li>The HTML document above contains an img element with id=&#8221;image&#8221;</li>
<li>We use the HTML DOM to get the element with id=&#8221;image&#8221;</li>
<li>A JavaScript changes the src attribute of that element from &#8220;smiley.gif&#8221; to &#8220;landscape.jpg&#8221;</li>
</ul>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM&amp;bodytext=What%20is%20the%20HTML%20DOM%3F%0D%0AThe%20HTML%20DOM%20is%3A%0D%0A%0D%0A%09A%20Document%20Object%20Model%20for%20HTML%0D%0A%09A%20standard%20programming%20interface%20for%20HTML%0D%0A%09Platform-%20and%20language-independent%0D%0A%09A%20W3C%20standard%0D%0A%0D%0AThe%20HTML%20DOM%20defines%20the%C2%A0objects%20and%20properties%C2%A0of%20all%20HTML%20elements%2C%20" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM&amp;notes=What%20is%20the%20HTML%20DOM%3F%0D%0AThe%20HTML%20DOM%20is%3A%0D%0A%0D%0A%09A%20Document%20Object%20Model%20for%20HTML%0D%0A%09A%20standard%20programming%20interface%20for%20HTML%0D%0A%09Platform-%20and%20language-independent%0D%0A%09A%20W3C%20standard%0D%0A%0D%0AThe%20HTML%20DOM%20defines%20the%C2%A0objects%20and%20properties%C2%A0of%20all%20HTML%20elements%2C%20" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;t=DHTML%20-%20HTML%20DOM" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM&amp;annotation=What%20is%20the%20HTML%20DOM%3F%0D%0AThe%20HTML%20DOM%20is%3A%0D%0A%0D%0A%09A%20Document%20Object%20Model%20for%20HTML%0D%0A%09A%20standard%20programming%20interface%20for%20HTML%0D%0A%09Platform-%20and%20language-independent%0D%0A%09A%20W3C%20standard%0D%0A%0D%0AThe%20HTML%20DOM%20defines%20the%C2%A0objects%20and%20properties%C2%A0of%20all%20HTML%20elements%2C%20" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=DHTML%20-%20HTML%20DOM&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;headline=DHTML%20-%20HTML%20DOM&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=What%20is%20the%20HTML%20DOM%3F%0D%0AThe%20HTML%20DOM%20is%3A%0D%0A%0D%0A%09A%20Document%20Object%20Model%20for%20HTML%0D%0A%09A%20standard%20programming%20interface%20for%20HTML%0D%0A%09Platform-%20and%20language-independent%0D%0A%09A%20W3C%20standard%0D%0A%0D%0AThe%20HTML%20DOM%20defines%20the%C2%A0objects%20and%20properties%C2%A0of%20all%20HTML%20elements%2C%20" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;bm_description=DHTML%20-%20HTML%20DOM&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;t=DHTML%20-%20HTML%20DOM" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=DHTML%20-%20HTML%20DOM&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;h=DHTML%20-%20HTML%20DOM" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=DHTML%20-%20HTML%20DOM&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;story_title=DHTML%20-%20HTML%20DOM" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=DHTML%20-%20HTML%20DOM%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;submitHeadline=DHTML%20-%20HTML%20DOM&amp;submitSummary=What%20is%20the%20HTML%20DOM%3F%0D%0AThe%20HTML%20DOM%20is%3A%0D%0A%0D%0A%09A%20Document%20Object%20Model%20for%20HTML%0D%0A%09A%20standard%20programming%20interface%20for%20HTML%0D%0A%09Platform-%20and%20language-independent%0D%0A%09A%20W3C%20standard%0D%0A%0D%0AThe%20HTML%20DOM%20defines%20the%C2%A0objects%20and%20properties%C2%A0of%20all%20HTML%20elements%2C%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-html-dom%2F&amp;title=DHTML%20-%20HTML%20DOM" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/dhtml/dhtml-html-dom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHTML &#8211; JavaScript</title>
		<link>http://www.w3updates.com/browser-scripting/dhtml/dhtml-javascript/</link>
		<comments>http://www.w3updates.com/browser-scripting/dhtml/dhtml-javascript/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 10:41:23 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[DHTML]]></category>
		<category><![CDATA[HTML content]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1587</guid>
		<description><![CDATA[JavaScript can create dynamic HTML content. Date: Thu Mar 22 2012 17:02:23 GMT+0700 (SE Asia Standard Time) JavaScript Alone In JavaScript, the statement: document.write(), is used to write output to a web page. Example The following example uses JavaScript to display the current date and time on a page: Example &#60;html&#62; &#60;body&#62;&#60;script type=&#8221;text/javascript&#8221;&#62; document.write(Date()); &#60;/script&#62; &#60;/body&#62; &#60;/html&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScript can create dynamic HTML content.</p>
<p>Date: Thu Mar 22 2012 17:02:23 GMT+0700 (SE Asia Standard Time)</p>
<hr />
<h2>JavaScript Alone</h2>
<p>In JavaScript, the statement: <strong>document.write()</strong>, is used to write output to a web page.</p>
<h3>Example</h3>
<p>The following example uses JavaScript to display the current date and time on a page:</p>
<div>
<h2>Example</h2>
<div>&lt;html&gt;<br />
&lt;body&gt;&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
document.write(Date());<br />
&lt;/script&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
</div>
<p><a href="http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_date" target="_blank">Try it yourself »</a></p>
</div>
<p>&nbsp;</p>
<hr />
<h2>JavaScript and the HTML DOM</h2>
<p>A JavaScript can also be used to change the content or attributes of HTML elements.</p>
<p>To change the content of an HTML element:</p>
<div>
<div>document.getElementById(<em>id</em>).innerHTML=<em>new HTML</em></div>
</div>
<p>To change the attribute of an HTML element:</p>
<div>
<div>document.getElementById(<em>id</em>).<em>attribute=new value</em></div>
</div>
<p>You will learn more about JavaScript and the HTML DOM in the next chapter of this tutorial.</p>
<hr />
<h2>JavaScript and HTML Events</h2>
<p>A JavaScript can also be executed when an event occurs, like when a user clicks on an HTML element.</p>
<p>To execute code when a user clicks on an element, use the following event attribute:</p>
<div>
<div>onclick=<em>JavaScript</em></div>
</div>
<p>You will learn more about JavaScript and HTML events in a later chapter.</p>
<hr />
<h2>JavaScript and CSS</h2>
<p>A JavaScript can also change the style of HTML elements.</p>
<p>To change the style of an HTML element:</p>
<div>
<div>document.getElementById(<em>id</em>).style.<em>property</em>=<em>new style</em></div>
</div>
<p>You will learn more about JavaScript and CSS in a later chapter of this tutorial.</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript&amp;bodytext=JavaScript%20can%20create%20dynamic%20HTML%20content.%0D%0A%0D%0ADate%3A%C2%A0Thu%20Mar%2022%202012%2017%3A02%3A23%20GMT%2B0700%20%28SE%20Asia%20Standard%20Time%29%0D%0A%0D%0A%0D%0A%0D%0AJavaScript%20Alone%0D%0AIn%20JavaScript%2C%20the%20statement%3A%C2%A0document.write%28%29%2C%20is%20used%20to%20write%20output%20to%20a%20web%20page.%0D%0AExample%0D%0AThe%20following%20e" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript&amp;notes=JavaScript%20can%20create%20dynamic%20HTML%20content.%0D%0A%0D%0ADate%3A%C2%A0Thu%20Mar%2022%202012%2017%3A02%3A23%20GMT%2B0700%20%28SE%20Asia%20Standard%20Time%29%0D%0A%0D%0A%0D%0A%0D%0AJavaScript%20Alone%0D%0AIn%20JavaScript%2C%20the%20statement%3A%C2%A0document.write%28%29%2C%20is%20used%20to%20write%20output%20to%20a%20web%20page.%0D%0AExample%0D%0AThe%20following%20e" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;t=DHTML%20-%20JavaScript" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript&amp;annotation=JavaScript%20can%20create%20dynamic%20HTML%20content.%0D%0A%0D%0ADate%3A%C2%A0Thu%20Mar%2022%202012%2017%3A02%3A23%20GMT%2B0700%20%28SE%20Asia%20Standard%20Time%29%0D%0A%0D%0A%0D%0A%0D%0AJavaScript%20Alone%0D%0AIn%20JavaScript%2C%20the%20statement%3A%C2%A0document.write%28%29%2C%20is%20used%20to%20write%20output%20to%20a%20web%20page.%0D%0AExample%0D%0AThe%20following%20e" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=DHTML%20-%20JavaScript&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;headline=DHTML%20-%20JavaScript&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=JavaScript%20can%20create%20dynamic%20HTML%20content.%0D%0A%0D%0ADate%3A%C2%A0Thu%20Mar%2022%202012%2017%3A02%3A23%20GMT%2B0700%20%28SE%20Asia%20Standard%20Time%29%0D%0A%0D%0A%0D%0A%0D%0AJavaScript%20Alone%0D%0AIn%20JavaScript%2C%20the%20statement%3A%C2%A0document.write%28%29%2C%20is%20used%20to%20write%20output%20to%20a%20web%20page.%0D%0AExample%0D%0AThe%20following%20e" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;bm_description=DHTML%20-%20JavaScript&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;t=DHTML%20-%20JavaScript" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=DHTML%20-%20JavaScript&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;h=DHTML%20-%20JavaScript" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=DHTML%20-%20JavaScript&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;story_title=DHTML%20-%20JavaScript" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=DHTML%20-%20JavaScript%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;submitHeadline=DHTML%20-%20JavaScript&amp;submitSummary=JavaScript%20can%20create%20dynamic%20HTML%20content.%0D%0A%0D%0ADate%3A%C2%A0Thu%20Mar%2022%202012%2017%3A02%3A23%20GMT%2B0700%20%28SE%20Asia%20Standard%20Time%29%0D%0A%0D%0A%0D%0A%0D%0AJavaScript%20Alone%0D%0AIn%20JavaScript%2C%20the%20statement%3A%C2%A0document.write%28%29%2C%20is%20used%20to%20write%20output%20to%20a%20web%20page.%0D%0AExample%0D%0AThe%20following%20e&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-javascript%2F&amp;title=DHTML%20-%20JavaScript" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/dhtml/dhtml-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHTML Introduction</title>
		<link>http://www.w3updates.com/browser-scripting/dhtml/dhtml-introduction/</link>
		<comments>http://www.w3updates.com/browser-scripting/dhtml/dhtml-introduction/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 10:41:22 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1589</guid>
		<description><![CDATA[DHTML is the art of combining HTML, JavaScript, DOM, and CSS. What you should already know Before you continue you should have a basic understanding of the following: HTML CSS JavaScript If you want to study these subjects first, find the tutorials on our Home Page. DHTML is NOT a Language DHTML stands for Dynamic HTML. DHTML is [...]]]></description>
			<content:encoded><![CDATA[<p>DHTML is the art of combining HTML, JavaScript, DOM, and CSS.</p>
<hr />
<h2>What you should already know</h2>
<p>Before you continue you should have a basic understanding of the following:</p>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<p>If you want to study these subjects first, find the tutorials on our Home Page.</p>
<hr />
<h2>DHTML is NOT a Language</h2>
<p>DHTML stands for <strong>D</strong>ynamic <strong>HTML</strong>.</p>
<p>DHTML is NOT a language or a web standard.</p>
<p>To most people DHTML means the combination of HTML, JavaScript, DOM and CSS.</p>
<p>According to the World Wide Web Consortium (W3C):<br />
<em>&#8220;Dynamic HTML is a term used by some vendors to describe the combination of HTML, style sheets and scripts that allows documents to be animated.&#8221;</em></p>
<hr />
<h2>HTML</h2>
<p>The W3C HTML 4 standard has rich support for dynamic content:</p>
<ul>
<li>HTML supports JavaScript</li>
<li>HTML supports the Document Object Model (<strong>DOM</strong>)</li>
<li>HTML supports HTML Events</li>
<li>HTML supports Cascading Style Sheets (<strong>CSS</strong>)</li>
</ul>
<p>DHTML is about using these features, to create dynamic and interactive web pages.</p>
<hr />
<h2>JavaScript</h2>
<p>JavaScript is the most popular scripting language on the internet, and it works in all major browsers.</p>
<p>DHTML is about using JavaScript to control, access and manipulate HTML elements.</p>
<p>You can read more about JavaScript in the next chapter of this tutorial.</p>
<hr />
<h2>HTML DOM</h2>
<p>The HTML DOM is a W3C standard. It describes the <strong>Document Object Model</strong> for HTML.</p>
<p>The HTML DOM defines a standard way for accessing and manipulating HTML documents.</p>
<p>DHTML is about using the DOM to access and manipulate HTML elements.</p>
<p>You can read more about the HTML DOM in a later chapter of this tutorial.</p>
<hr />
<h2>HTML Events</h2>
<p>HTML events are a part of the HTML DOM.</p>
<p>DHTML is about creating web pages that reacts to (user)events.</p>
<p>You can read more about events in a later chapter of this tutorial.</p>
<hr />
<h2>CSS</h2>
<p>CSS defines how to display HTML elements.</p>
<p>DHTML is about using JavaScript and the HTML DOM to change the style and positioning of HTML elements.</p>
<p>You can read more about CSS in a later chapter of this tutorial.</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction&amp;bodytext=DHTML%20is%20the%20art%20of%20combining%20HTML%2C%20JavaScript%2C%20DOM%2C%20and%20CSS.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20you%20should%20already%20know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09CSS%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20subjects%20first%2C%20f" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction&amp;notes=DHTML%20is%20the%20art%20of%20combining%20HTML%2C%20JavaScript%2C%20DOM%2C%20and%20CSS.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20you%20should%20already%20know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09CSS%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20subjects%20first%2C%20f" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;t=DHTML%20Introduction" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction&amp;annotation=DHTML%20is%20the%20art%20of%20combining%20HTML%2C%20JavaScript%2C%20DOM%2C%20and%20CSS.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20you%20should%20already%20know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09CSS%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20subjects%20first%2C%20f" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=DHTML%20Introduction&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;headline=DHTML%20Introduction&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=DHTML%20is%20the%20art%20of%20combining%20HTML%2C%20JavaScript%2C%20DOM%2C%20and%20CSS.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20you%20should%20already%20know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09CSS%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20subjects%20first%2C%20f" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;bm_description=DHTML%20Introduction&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;t=DHTML%20Introduction" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=DHTML%20Introduction&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;h=DHTML%20Introduction" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=DHTML%20Introduction&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;story_title=DHTML%20Introduction" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=DHTML%20Introduction%20-%20http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;submitHeadline=DHTML%20Introduction&amp;submitSummary=DHTML%20is%20the%20art%20of%20combining%20HTML%2C%20JavaScript%2C%20DOM%2C%20and%20CSS.%0D%0A%0D%0A%0D%0A%0D%0AWhat%20you%20should%20already%20know%0D%0ABefore%20you%20continue%20you%20should%20have%20a%20basic%20understanding%20of%20the%20following%3A%0D%0A%0D%0A%09HTML%0D%0A%09CSS%0D%0A%09JavaScript%0D%0A%0D%0AIf%20you%20want%20to%20study%20these%20subjects%20first%2C%20f&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fbrowser-scripting%2Fdhtml%2Fdhtml-introduction%2F&amp;title=DHTML%20Introduction" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/browser-scripting/dhtml/dhtml-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Animations</title>
		<link>http://www.w3updates.com/css/css3-animations/</link>
		<comments>http://www.w3updates.com/css/css3-animations/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 03:55:28 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[animations]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.w3updates.com/?p=1579</guid>
		<description><![CDATA[<a href="http://www.w3updates.com/css/css3-animations/"><img align="left" hspace="5" width="100" src="http://www.w3schools.com/images/incompatible_opera2020.gif" class="alignleft wp-post-image tfe" alt="Opera" title="" /></a>With CSS3, we can create animations, which can replace animated images, Flash animations, and JavaScripts in many web pages. CSS3 Animation CSS3 @keyframes Rule To create animations in CSS3, you will have to learn about the @keyframes rule. The @keyframes rule is where the animation is created. Specify a CSS style inside the @keyframes rule [...]]]></description>
			<content:encoded><![CDATA[<p>With CSS3, we can create animations, which can replace animated images, Flash animations, and JavaScripts in many web pages.</p>
<hr />
<div>CSS3<br />
Animation</div>
<hr />
<h2>CSS3 @keyframes Rule</h2>
<p>To create animations in CSS3, you will have to learn about the @keyframes rule.</p>
<p>The @keyframes rule is where the animation is created. Specify a CSS style inside the @keyframes rule and the animation will gradually change from the current style to the new style.</p>
<hr />
<h2>Browser Support</h2>
<table>
<tbody>
<tr>
<th>Property</th>
<th colspan="5">Browser Support</th>
</tr>
<tr>
<td>@keyframes</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>animation</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>Internet Explorer and Opera do not yet support the @keyframes rule or the animation property.</p>
<p>Firefox requires the prefix -moz-, while Chrome and Safari require the prefix -webkit-.</p>
<hr />
<div><img src="http://www.w3schools.com/images/incompatible_opera2020.gif" alt="Opera" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_safari2020.gif" alt="Safari" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_chrome2020.gif" alt="Chrome" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_firefox2020.gif" alt="Firefox" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/incompatible_ie2020.gif" alt="Internet Explorer" width="20" height="20" align="middle" /></p>
<h2>Example</h2>
<div>@keyframes myfirst<br />
{<br />
from {background: red;}<br />
to {background: yellow;}<br />
}@-moz-keyframes myfirst /* Firefox */<br />
{<br />
from {background: red;}<br />
to {background: yellow;}<br />
}</p>
<p>@-webkit-keyframes myfirst /* Safari and Chrome */<br />
{<br />
from {background: red;}<br />
to {background: yellow;}<br />
}</p>
</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>CSS3 animation</h2>
<p>When the animation is created in the @keyframe, bind it to a selector, otherwise the animation will have no effect.</p>
<p>Bind the animation to a selector by specifying at least these two CSS3 animation properties:</p>
<ul>
<li>Specify the name of the animation</li>
<li>Specify the duration of the animation</li>
</ul>
<div><img src="http://www.w3schools.com/images/incompatible_opera2020.gif" alt="Opera" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_safari2020.gif" alt="Safari" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_chrome2020.gif" alt="Chrome" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_firefox2020.gif" alt="Firefox" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/incompatible_ie2020.gif" alt="Internet Explorer" width="20" height="20" align="middle" /></p>
<h2>Example</h2>
<p>Binding the &#8220;myfirst&#8221; animation to a div element, duration: 5 seconds:</p>
<div>div<br />
{<br />
animation: myfirst 5s;<br />
-moz-animation: myfirst 5s; /* Firefox */<br />
-webkit-animation: myfirst 5s; /* Safari and Chrome */<br />
}</div>
<p>Try it yourself »</p>
</div>
<p><strong>Note: </strong>You must define the name and the duration of the animation. If duration is omitted, the animation will not run, because the default value is 0.</p>
<hr />
<h2>What are Animations in CSS3?</h2>
<p>An animation is an effect that lets an element gradually change from one style to another.</p>
<p>You can change as many styles you want, as many times you want.</p>
<p>Specify when the change will happen in percent, or the keywords &#8220;from&#8221; and &#8220;to&#8221;, which is the same as 0% and 100%.</p>
<p>0% is the beginning of the animation, 100% is when the animation is complete.</p>
<p>For best browser support, you should always define both the 0% and the 100% selectors.</p>
<div><img src="http://www.w3schools.com/images/incompatible_opera2020.gif" alt="Opera" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_safari2020.gif" alt="Safari" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_chrome2020.gif" alt="Chrome" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_firefox2020.gif" alt="Firefox" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/incompatible_ie2020.gif" alt="Internet Explorer" width="20" height="20" align="middle" /></p>
<h2>Example</h2>
<p>Change the background color when the animation is 25%, 50%, and again when the animation is 100% complete:</p>
<div>@keyframes myfirst<br />
{<br />
0%   {background: red;}<br />
25%  {background: yellow;}<br />
50%  {background: blue;}<br />
100% {background: green;}<br />
}@-moz-keyframes myfirst /* Firefox */<br />
{<br />
0%   {background: red;}<br />
25%  {background: yellow;}<br />
50%  {background: blue;}<br />
100% {background: green;}<br />
}</p>
<p>@-webkit-keyframes myfirst /* Safari and Chrome */<br />
{<br />
0%   {background: red;}<br />
25%  {background: yellow;}<br />
50%  {background: blue;}<br />
100% {background: green;}<br />
}</p>
</div>
<p>Try it yourself »</p>
</div>
<p>&nbsp;</p>
<div><img src="http://www.w3schools.com/images/incompatible_opera2020.gif" alt="Opera" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_safari2020.gif" alt="Safari" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_chrome2020.gif" alt="Chrome" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_firefox2020.gif" alt="Firefox" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/incompatible_ie2020.gif" alt="Internet Explorer" width="20" height="20" align="middle" /></p>
<h2>Example</h2>
<p>Change the background color and position:</p>
<div>@keyframes myfirst<br />
{<br />
0%   {background: red; left:0px; top:0px;}<br />
25%  {background: yellow; left:200px; top:0px;}<br />
50%  {background: blue; left:200px; top:200px;}<br />
75%  {background: green; left:0px; top:200px;}<br />
100% {background: red; left:0px; top:0px;}<br />
}@-moz-keyframes myfirst /* Firefox */<br />
{<br />
0%   {background: red; left:0px; top:0px;}<br />
25%  {background: yellow; left:200px; top:0px;}<br />
50%  {background: blue; left:200px; top:200px;}<br />
75%  {background: green; left:0px; top:200px;}<br />
100% {background: red; left:0px; top:0px;}<br />
}</p>
<p>@-webkit-keyframes myfirst /* Safari and Chrome */<br />
{<br />
0%   {background: red; left:0px; top:0px;}<br />
25%  {background: yellow; left:200px; top:0px;}<br />
50%  {background: blue; left:200px; top:200px;}<br />
75%  {background: green; left:0px; top:200px;}<br />
100% {background: red; left:0px; top:0px;}<br />
}</p>
</div>
<p>Try it yourself »</p>
</div>
<p>&nbsp;</p>
<hr />
<h2>CSS3 Animation Properties</h2>
<p>The following table lists the @keyframes rule and all the animation properties:</p>
<table>
<tbody>
<tr>
<th align="left" width="28%">Property</th>
<th align="left" width="67%">Description</th>
<th align="left" width="5%">CSS</th>
</tr>
<tr>
<td>@keyframes</td>
<td>Specifies the animation</td>
<td>3</td>
</tr>
<tr>
<td>animation</td>
<td>A shorthand property for all the the animation properties, except the animation-play-state property</td>
<td>3</td>
</tr>
<tr>
<td>animation-name</td>
<td>Specifies the name of the @keyframes animation</td>
<td>3</td>
</tr>
<tr>
<td>animation-duration</td>
<td>Specifies how many seconds or milliseconds an animation takes to complete one cycle. Default 0</td>
<td>3</td>
</tr>
<tr>
<td>animation-timing-function</td>
<td>Describes how the animation will progress over one cycle of its duration. Default &#8220;ease&#8221;</td>
<td>3</td>
</tr>
<tr>
<td>animation-delay</td>
<td>Specifies when the animation will start. Default 0</td>
<td>3</td>
</tr>
<tr>
<td>animation-iteration-count</td>
<td>Specifies the number of times an animation is played. Default 1</td>
<td>3</td>
</tr>
<tr>
<td>animation-direction</td>
<td>Specifies whether or not the animation should play in reverse on alternate cycles. Default &#8220;normal&#8221;</td>
<td>3</td>
</tr>
<tr>
<td>animation-play-state</td>
<td>Specifies whether the animation is running or paused. Default &#8220;running&#8221;</td>
<td>3</td>
</tr>
</tbody>
</table>
<p>The two examples below sets all the animation properties:</p>
<div><img src="http://www.w3schools.com/images/incompatible_opera2020.gif" alt="Opera" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_safari2020.gif" alt="Safari" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_chrome2020.gif" alt="Chrome" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_firefox2020.gif" alt="Firefox" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/incompatible_ie2020.gif" alt="Internet Explorer" width="20" height="20" align="middle" /></p>
<h2>Example</h2>
<p>Run an animation called myfirst, with all the animation properties set:</p>
<div>div<br />
{<br />
animation-name: myfirst;<br />
animation-duration: 5s;<br />
animation-timing-function: linear;<br />
animation-delay: 2s;<br />
animation-iteration-count: infinite;<br />
animation-direction: alternate;<br />
animation-play-state: running;<br />
/* Firefox: */<br />
-moz-animation-name: myfirst;<br />
-moz-animation-duration: 5s;<br />
-moz-animation-timing-function: linear;<br />
-moz-animation-delay: 2s;<br />
-moz-animation-iteration-count: infinite;<br />
-moz-animation-direction: alternate;<br />
-moz-animation-play-state: running;<br />
/* Safari and Chrome: */<br />
-webkit-animation-name: myfirst;<br />
-webkit-animation-duration: 5s;<br />
-webkit-animation-timing-function: linear;<br />
-webkit-animation-delay: 2s;<br />
-webkit-animation-iteration-count: infinite;<br />
-webkit-animation-direction: alternate;<br />
-webkit-animation-play-state: running;<br />
}</div>
<p>Try it yourself »</p>
</div>
<p>&nbsp;</p>
<div><img src="http://www.w3schools.com/images/incompatible_opera2020.gif" alt="Opera" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_safari2020.gif" alt="Safari" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_chrome2020.gif" alt="Chrome" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/compatible_firefox2020.gif" alt="Firefox" width="20" height="20" align="middle" /><img src="http://www.w3schools.com/images/incompatible_ie2020.gif" alt="Internet Explorer" width="20" height="20" align="middle" /></p>
<h2>Example</h2>
<p>The same animation as above, using the shorthand animation property:</p>
<div>div<br />
{<br />
animation: myfirst 5s linear 2s infinite alternate;<br />
/* Firefox: */<br />
-moz-animation: myfirst 5s linear 2s infinite alternate;<br />
/* Safari and Chrome: */<br />
-webkit-animation: myfirst 5s linear 2s infinite alternate;<br />
}</div>
</div>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations&amp;bodytext=With%20CSS3%2C%20we%20can%20create%20animations%2C%20which%20can%20replace%20animated%20images%2C%20Flash%20animations%2C%20and%20JavaScripts%20in%20many%20web%20pages.%0D%0A%0D%0A%0D%0A%0D%0ACSS3%0D%0AAnimation%0D%0A%0D%0A%0D%0A%0D%0ACSS3%20%40keyframes%20Rule%0D%0ATo%20create%20animations%20in%20CSS3%2C%20you%20will%20have%20to%20learn%20about%20the%20%40keyframes" title="Digg"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F" title="Sphinn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations&amp;notes=With%20CSS3%2C%20we%20can%20create%20animations%2C%20which%20can%20replace%20animated%20images%2C%20Flash%20animations%2C%20and%20JavaScripts%20in%20many%20web%20pages.%0D%0A%0D%0A%0D%0A%0D%0ACSS3%0D%0AAnimation%0D%0A%0D%0A%0D%0A%0D%0ACSS3%20%40keyframes%20Rule%0D%0ATo%20create%20animations%20in%20CSS3%2C%20you%20will%20have%20to%20learn%20about%20the%20%40keyframes" title="del.icio.us"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;t=CSS3%20Animations" title="Facebook"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations" title="Mixx"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations&amp;annotation=With%20CSS3%2C%20we%20can%20create%20animations%2C%20which%20can%20replace%20animated%20images%2C%20Flash%20animations%2C%20and%20JavaScripts%20in%20many%20web%20pages.%0D%0A%0D%0A%0D%0A%0D%0ACSS3%0D%0AAnimation%0D%0A%0D%0A%0D%0A%0D%0ACSS3%20%40keyframes%20Rule%0D%0ATo%20create%20animations%20in%20CSS3%2C%20you%20will%20have%20to%20learn%20about%20the%20%40keyframes" title="Google Bookmarks"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations" title="DZone"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=CSS3%20Animations&amp;u=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F" title="Fark"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations" title="Faves"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;headline=CSS3%20Animations&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations&amp;source=W3+Updates%2C+HTML%2C+XHTML%2C+CSS%2C+JavaScript%2C+AJAX%2C+XML%2C+PHP%2C+Ruby%2C+PHP+Frameworks+Free+W3+Articles%2C+HTML+Tutorials%2C+XHTML+Tutorials%2C+Ajax+Tutorials%2C+Javascripts+Tutorials%2C+PHP%2C+SQL%2C+MySql%2C+MSSQL%2C+PHP+Tutorial%2C+CSS%2C+JS+Tutorials%2C+Learn+HMTL%2C+Ruby+on+Rails%2C+PHP+Frameworks+Tutorials%2C+ASP.NET%2C+W3+School%2C+W3+Validator%2C+Flash+Tutorials%2C+SEO+Tips%2C+Web+Building%2C+Server+Scripting&amp;summary=With%20CSS3%2C%20we%20can%20create%20animations%2C%20which%20can%20replace%20animated%20images%2C%20Flash%20animations%2C%20and%20JavaScripts%20in%20many%20web%20pages.%0D%0A%0D%0A%0D%0A%0D%0ACSS3%0D%0AAnimation%0D%0A%0D%0A%0D%0A%0D%0ACSS3%20%40keyframes%20Rule%0D%0ATo%20create%20animations%20in%20CSS3%2C%20you%20will%20have%20to%20learn%20about%20the%20%40keyframes" title="LinkedIn"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations" title="Live"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;bm_description=CSS3%20Animations&amp;plugin=soc" title="MisterWong"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;t=CSS3%20Animations" title="MySpace"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=CSS3%20Animations&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F" title="Netvibes"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations&amp;popup=no" title="Netvouz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;h=CSS3%20Animations" title="NewsVine"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F" title="Propeller"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations" title="Reddit"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=CSS3%20Animations&amp;url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F" title="Slashdot"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;story_title=CSS3%20Animations" title="Socialogs"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations" title="StumbleUpon"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F" title="Technorati"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=CSS3%20Animations%20-%20http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F" title="Twitter"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;submitHeadline=CSS3%20Animations&amp;submitSummary=With%20CSS3%2C%20we%20can%20create%20animations%2C%20which%20can%20replace%20animated%20images%2C%20Flash%20animations%2C%20and%20JavaScripts%20in%20many%20web%20pages.%0D%0A%0D%0A%0D%0A%0D%0ACSS3%0D%0AAnimation%0D%0A%0D%0A%0D%0A%0D%0ACSS3%20%40keyframes%20Rule%0D%0ATo%20create%20animations%20in%20CSS3%2C%20you%20will%20have%20to%20learn%20about%20the%20%40keyframes&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.w3updates.com%2Fcss%2Fcss3-animations%2F&amp;title=CSS3%20Animations" title="Diigo"><img src="http://www.w3updates.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.w3updates.com/css/css3-animations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

