<?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>HTML/JavaScript/CSS - WP2X</title> <atom:link href="https://wp2x.com/category/blog/html-javascript-css/feed/" rel="self" type="application/rss+xml" /><link>https://wp2x.com</link> <description>We can help your Wordpress faster</description> <lastBuildDate>Fri, 20 Feb 2015 02:16:37 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod> hourly </sy:updatePeriod> <sy:updateFrequency> 1 </sy:updateFrequency> <generator>https://wordpress.org/?v=5.6.16</generator> <item><title>WordPress jQuery Tiles Gallery Free</title><link>https://wp2x.com/wordpress-jquery-tiles-gallery-free/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Fri, 20 Feb 2015 02:15:10 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[wordpress html]]></category> <category><![CDATA[xhtml]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=346</guid><description><![CDATA[<p>jQuery Tiles Gallery is a gorgeus way to immediately present all your pictures, the visitors of your web site can see all the pictures at a glance, like no other gallery or slider can do! And now It &#8216;s free one on codecanyon this month. You can check the demo URL here http://tiles-gallery.com/ &#160; NO ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/wordpress-jquery-tiles-gallery-free/">WordPress jQuery Tiles Gallery Free</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>jQuery Tiles Gallery is a gorgeus way to immediately present all your pictures, the visitors of your web site can see all the pictures at a glance, like no other gallery or slider can do! And now It &#8216;s free one on codecanyon this month. You can check the demo URL here <a
href="http://tiles-gallery.com/" target="_blank">http://tiles-gallery.com/</a><span
id="more-346"></span></p><p>&nbsp;</p><h2><a
href="http://wp2x.com/wp-content/uploads/2015/02/artwork-tg.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-348" src="http://wp2x.com/wp-content/uploads/2015/02/artwork-tg.jpg?4b2a2c&amp;4b2a2c" alt="artwork-tg" width="590" height="300" srcset="https://wp2x.com/wp-content/uploads/2015/02/artwork-tg.jpg 590w, https://wp2x.com/wp-content/uploads/2015/02/artwork-tg-300x153.jpg 300w" sizes="(max-width: 590px) 100vw, 590px" /></a></h2><h2>NO PROGRAMMING SKILLS REQUIRED</h2><p>jQuery Tiles Gallery arranges your images inside a random-generated grid, it’s much more than a simple multiple column layout, it’s a beautiful and fancy way to present your showcases, galleries, photos… and so on. The subject of the photos will always be focused, since you can choose the better alignment for each photo.. If you don’t know where to start just copy/paste the script in the demo file bundled with the script.</p><h2>NO GRAPHIC SKILLS REQUIRED</h2><p>This script preloads and resizes images to fit them inside each “cell”, so you don’t need to make images of same size or proportions! Be just sure the weight of your photos is good for web (that could mean from few Kb up to 100Kb depending on desired quality).</p><h2>CAPTIONS</h2><p>It’s also possible to add captions simply adding them as ALT attribute of each image. The captions can be static or shown on rollover.</p><p><a
href="http://wp2x.com/wp-content/uploads/2015/02/jQuery-Tiles-Gallery.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-347" src="http://wp2x.com/wp-content/uploads/2015/02/jQuery-Tiles-Gallery.jpg?4b2a2c&amp;4b2a2c" alt="jQuery Tiles Gallery" width="400" height="375" srcset="https://wp2x.com/wp-content/uploads/2015/02/jQuery-Tiles-Gallery.jpg 400w, https://wp2x.com/wp-content/uploads/2015/02/jQuery-Tiles-Gallery-300x281.jpg 300w" sizes="(max-width: 400px) 100vw, 400px" /></a></p><p>&nbsp;</p><h2>CALLBACK</h2><p>If you know a bit of javascript you can easiliy add any further functionality to the gallery, simply passing your function as callback.</p><h2>CUSTOM ALIGNMENT, BEST FRAMING</h2><p>You can set a default horizontal and vertical alignment for all the pictures, but you can also overwrite the default alignment simply using the “data” attributes on the IMG tag.</p><p>And now it &#8216;s <strong>FREE</strong> here <div
class="freebie-sub-box"><div
class="freebie-sub-inner"><h3>Please enter your email and get it now!</h3><p>Simply enter your email address and the download link will be sent right to your email box.</p><form
class="freebie-sub-form"><div
class="replaceArea"><div
class="replaceArea-error"></div><center> <input
type="text" onblur="if(this.value=='')this.value='Email Address';" onfocus="if(this.value=='Email Address')this.value='';" value="Email Address" name="email" class="name"> <input
type="submit" value="Download" class="freebie-submit"></center> <input
type="hidden" name="id" id="id" value="aHR0cHM6Ly9hcHAuYm94LmNvbS9zL2k5ajB5MGc3amlieDU1YWV1dWtubm5zdGdhbHpsbnc5"></div></form></div></div><p>The post <a
rel="nofollow" href="https://wp2x.com/wordpress-jquery-tiles-gallery-free/">WordPress jQuery Tiles Gallery Free</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Crayon Syntax Highlighter WordPress plugin</title><link>https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/</link> <comments>https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Wed, 05 Nov 2014 11:14:22 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[Wordpress Plugins]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[free wordpress plugin]]></category> <category><![CDATA[wordpress highlight]]></category> <category><![CDATA[wordpress plugin]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[wordpress tutorial]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=315</guid><description><![CDATA[<p>Crayon Syntax Highlighter is a perfect highlight code solution for any wordpress site. It &#8216;s fast, simple and easy to use. Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text. First of all, you can download and install here: https://wordpress.org/plugins/crayon-syntax-highlighter/ A Syntax Highlighter built in PHP and jQuery that supports ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/">Crayon Syntax Highlighter WordPress plugin</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Crayon Syntax Highlighter is a perfect highlight code solution for any wordpress site. It &#8216;s fast, simple and easy to use. Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.<span
id="more-315"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/11/banner-772x250.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-316" src="http://wp2x.com/wp-content/uploads/2014/11/banner-772x250.jpg?4b2a2c&amp;4b2a2c" alt="banner-772x250" width="772" height="248" srcset="https://wp2x.com/wp-content/uploads/2014/11/banner-772x250.jpg 772w, https://wp2x.com/wp-content/uploads/2014/11/banner-772x250-300x96.jpg 300w" sizes="(max-width: 772px) 100vw, 772px" /></a></p><p>First of all, you can download and install here: <a
href="https://wordpress.org/plugins/crayon-syntax-highlighter/" target="_blank">https://wordpress.org/plugins/crayon-syntax-highlighter/</a></p><p>A Syntax Highlighter built in PHP and jQuery that supports customizable languages and themes. It can highlight from a URL, a local file or WordPress post text. Crayon makes it easy to manage Language files and define custom language elements with regular expressions. It also supports some neat features like:</p><ul><li>Integrated Theme Editor!</li><li>Tag Editor in both Visual &amp; HTML editors</li><li>Toggled plain code</li><li>Toggled line numbers</li><li>Copy/paste code</li><li>Open code in a new window (popup)</li><li>Line wrapping</li><li>Code expanding</li><li>Minimizing</li><li>bbPress 2 support</li><li>Converting legacy code in blog posts/comments to &lt;pre&gt;</li><li>Remote request caching</li><li>Mixed Language Highlighting in a single Crayon</li><li>Mini Tags like [php][/php]</li><li>Inline Tags floating in sentences</li><li>Crayons in comments</li><li>`Backquotes` become code</li><li>pre tag support, option to use setting-value in the class attribute</li><li>Valid HTML 5 markup</li><li>Visual &amp; HTML editor compatible</li><li>Mobile/touchscreen device detection</li><li>Mouse event interaction (showing plain code on double click, toolbar on mouseover)</li><li>Tab sizes</li><li>Code title</li><li>Toggled toolbar</li><li>Retina buttons</li><li>Striped lines</li><li>Line marking (for important lines)</li><li>Line ranges (showing only parts of the code)</li><li>Starting line number (default is 1)</li><li>Local directory to search for local files</li><li>File extension detection</li><li>Live Preview in settings</li><li>Dimensions, margins, alignment, font-size, line-height, float</li><li>Extensive error logging</li></ul><p>The code highlight is very easy to use in back end with the toobar icon and window</p><p><a
href="http://wp2x.com/wp-content/uploads/2014/11/icon-tools-bar.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-318" src="http://wp2x.com/wp-content/uploads/2014/11/icon-tools-bar.png?4b2a2c&amp;4b2a2c" alt="icon-tools bar" width="350" height="193" srcset="https://wp2x.com/wp-content/uploads/2014/11/icon-tools-bar.png 350w, https://wp2x.com/wp-content/uploads/2014/11/icon-tools-bar-300x165.png 300w" sizes="(max-width: 350px) 100vw, 350px" /></a></p><p>And the highlight code will be display in front end like this</p><p><a
href="http://wp2x.com/wp-content/uploads/2014/11/screenshot-3.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-317" src="http://wp2x.com/wp-content/uploads/2014/11/screenshot-3.png?4b2a2c&amp;4b2a2c" alt="screenshot-3" width="652" height="737" srcset="https://wp2x.com/wp-content/uploads/2014/11/screenshot-3.png 652w, https://wp2x.com/wp-content/uploads/2014/11/screenshot-3-265x300.png 265w" sizes="(max-width: 652px) 100vw, 652px" /></a></p><p>The post <a
rel="nofollow" href="https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/">Crayon Syntax Highlighter WordPress plugin</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/crayon-syntax-highlighter-wordpress-plugin/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Full width 100% for youtube video iframe</title><link>https://wp2x.com/full-width-100-youtube-video-iframe/</link> <comments>https://wp2x.com/full-width-100-youtube-video-iframe/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Tue, 28 Oct 2014 06:12:08 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[wordpress css]]></category> <category><![CDATA[wordpress html]]></category> <category><![CDATA[wordpress js]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=312</guid><description><![CDATA[<p>Today I will share you the issue what take me entire of day to solve about Full width 100% for youtube video iframe. Hope it will save your time. If you meet this issue, I believe it just take you 5 minutes to finish the task. &#160; There are 2 ways to solve this issue 1. ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/full-width-100-youtube-video-iframe/">Full width 100% for youtube video iframe</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Today I will share you the issue what take me entire of day to solve about Full width 100% for youtube video iframe. Hope it will save your time. If you meet this issue, I believe it just take you 5 minutes to finish the task.<span
id="more-312"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/10/video-full-width.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-313" src="http://wp2x.com/wp-content/uploads/2014/10/video-full-width.png?4b2a2c&amp;4b2a2c" alt="video-full-width" width="660" height="284" srcset="https://wp2x.com/wp-content/uploads/2014/10/video-full-width.png 660w, https://wp2x.com/wp-content/uploads/2014/10/video-full-width-300x129.png 300w" sizes="(max-width: 660px) 100vw, 660px" /></a></p><p>&nbsp;</p><p>There are 2 ways to solve this issue</p><p>1. Javascript to make Full width 100% iframe/embed</p><p>Simple add this jQuery code</p><pre class="lang:js decode:true ">// Find all YouTube videos
var $allVideos = $("iframe[src^='http://www.youtube.com']"),

    // The element that is fluid width
    $fluidEl = $("body");

// Figure out and save aspect ratio for each video
$allVideos.each(function() {

  $(this)
    .data('aspectRatio', this.height / this.width)

    // and remove the hard coded width/height
    .removeAttr('height')
    .removeAttr('width');

});

// When the window is resized
$(window).resize(function() {

  var newWidth = $fluidEl.width();

  // Resize all videos according to their own aspect ratio
  $allVideos.each(function() {

    var $el = $(this);
    $el
      .width(newWidth)
      .height(newWidth * $el.data('aspectRatio'));

  });

// Kick off one resize to fix all videos on page load
}).resize();</pre><p>Now, reload the page and see the magic.</p><p>2. CSS to make Full width 100% iframe/embed</p><p>Much more simple, you can apply this css tips and the result will be the same.</p><pre class="lang:css decode:true">.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper object,
.videoWrapper embed,  {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}</pre><p>Remember add class videoWrapper out of your video then the video inside this class will be display 100%.</p><p>Now, enjoy the result and welcome any comment.</p><p>The post <a
rel="nofollow" href="https://wp2x.com/full-width-100-youtube-video-iframe/">Full width 100% for youtube video iframe</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/full-width-100-youtube-video-iframe/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Background Stretch and scale in CSS 100%</title><link>https://wp2x.com/background-stretch-scale-css-100/</link> <comments>https://wp2x.com/background-stretch-scale-css-100/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Tue, 16 Sep 2014 11:34:17 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=275</guid><description><![CDATA[<p>Background Stretch and scale in CSS is what you will need to do in responsive html slicing all of time. My situation happen all of times so that I share you this way to help you and remind me when I need it. The key and the magic to show background of a css layer ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/background-stretch-scale-css-100/">Background Stretch and scale in CSS 100%</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Background Stretch and scale in CSS is what you will need to do in responsive html slicing all of time. My situation happen all of times so that I share you this way to help you and remind me when I need it.<span
id="more-275"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/09/css-style-background-e1410867199533.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-276" src="http://wp2x.com/wp-content/uploads/2014/09/css-style-background-e1410867199533.png?4b2a2c&amp;4b2a2c" alt="css style background" width="600" height="308" /></a></p><p>The key and the magic to show background of a css layer in 100% scale is background-size. Just use it like this</p><pre class="lang:css decode:true ">#my_container {
background-size: 100% auto; /* width and height, can be %, px or whatever. */
}</pre><p>To preserve the aspect ratio of the image you should use &#8220;background-size: cover;&#8221; or &#8220;background-size: contain;&#8221;.</p><p>Scaling an image with CSS is not quite possible, but a similar effect can be achieved in the following manner, though.</p><p>Use this html:</p><pre class="lang:xhtml decode:true">&lt;div id="background"&gt;
    &lt;img src="img.jpg" class="stretch" alt="" /&gt;
&lt;/div&gt;</pre><p>with the following CSS:</p><pre class="lang:css decode:true">#background {

    width: 100%;

    height: 100%;

    position: absolute;

    left: 0px;

    top: 0px;

    z-index: 0;

}
.stretch {
width:100%;
height:100%;
}</pre><p>and you should be done!</p><p>In order to scale the image to be &#8220;full bleed&#8221; and maintain the aspect ratio, you can do this instead:</p><pre class="lang:css decode:true ">.stretch { min-width:100%; min-height:100%; width:auto; height:auto; }</pre><p>Reference: <a
href="http://stackoverflow.com/questions/376253/stretch-and-scale-css-background">http://stackoverflow.com/questions/376253/stretch-and-scale-css-background</a></p><p>The post <a
rel="nofollow" href="https://wp2x.com/background-stretch-scale-css-100/">Background Stretch and scale in CSS 100%</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/background-stretch-scale-css-100/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>How to get Current URL in Javascript?</title><link>https://wp2x.com/get-current-url-javascript/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Wed, 07 May 2014 22:47:33 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[html]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[js]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=205</guid><description><![CDATA[<p>When develop a wordpress plugin or work in wordpress theme, I usually meet the problem with getting URL in javascript code. The problem come is I want to get current URL of current page because not all situation we can pass the current URL from PHP code. That &#8216;s why I decide to share this ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/get-current-url-javascript/">How to get Current URL in Javascript?</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>When develop a wordpress plugin or work in wordpress theme, I usually meet the problem with getting URL in javascript code. The problem come is I want to get current URL of current page because not all situation we can pass the current URL from PHP code. That &#8216;s why I decide to share this tips to you to save our time.<span
id="more-205"></span></p><p>It &#8216;s quite easy, just following this code</p><pre class="lang:js decode:true ">var currentPageUrl = "";
if (typeof this.href === "undefined") {
currentPageUrl = document.location.toString().toLowerCase();
}
else {
currentPageUrl = this.href.toString().toLowerCase();
}</pre><p>&nbsp;</p><p>You may want to get it as a stand-alone function to put it in your javascript library, then let &#8216;s define it as blow:</p><pre class="lang:js decode:true ">function getCurrentURL(){
var currentPageUrl = "";
if (typeof this.href === "undefined") {
currentPageUrl = document.location.toString().toLowerCase();
}
else {
currentPageUrl = this.href.toString().toLowerCase();
}
return currentPageUrl;
}</pre><p>&nbsp;</p><p>Now every time you want to get current URL, you just need to call <strong>getCurrentURL()</strong>. It &#8216;s quite easy to <strong>get current URL in javascritp</strong>! :).</p><p>Thanks for your visit and welcome your comment!</p><p>The post <a
rel="nofollow" href="https://wp2x.com/get-current-url-javascript/">How to get Current URL in Javascript?</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>What is HTML5?</title><link>https://wp2x.com/html5/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Sat, 26 Apr 2014 00:23:06 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=170</guid><description><![CDATA[<p>Just have same question like you in the first time learning HTML5 and I figure it out from sitepoint.com with very simple definition and easy to understand. &#160; The easy answer is that it’s the latest version of HTML. But that doesn’t tell us much. Specifically, HTML5: With HTML5, we can now embed audio and video natively ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/html5/">What is HTML5?</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Just have same question like you in the first time learning HTML5 and I figure it out from <a
href="http://www.sitepoint.com/">sitepoint.com</a> with very simple definition and easy to understand.<span
id="more-170"></span></p><p>&nbsp;</p><p>The easy answer is that it’s the latest version of HTML. But that doesn’t tell us much. Specifically, HTML5:<div
class="su-list" style="margin-left:0px"><ul><li><i
class="sui sui-check" style="color:#40dd1b"></i> Defines a parsing algorithm for generating a consistent DOM (Document Object Model) tree, even from ambiguous or poor-quality markup</li><li><i
class="sui sui-check" style="color:#40dd1b"></i> Adds new elements to support multimedia and web applications</li><li><i
class="sui sui-check" style="color:#40dd1b"></i> Eedefines the rules and semantics of existing HTML elements</li></ul></div><p>With HTML5, we can now embed audio and video natively within HTML documents. We can use inline SVG (Scalable Vector Graphics) markup.We can build more robust form experiences, complete with native error checking.We can create games, charts, and animations using the canvas element. Documents can communicate with each other using cross-document messaging. In other words, HTML5 is much more of an application platform, not just a markup language.</p><h2>DOM-ination change in HTML5 world</h2><p>interface turned each element of an HTML page into an object that could be created, moved, modified, or deleted using a scripting language. Now we could add animation or interactivity to our web pages, even if we had to wait ages for them to download over our super-slow, 14.4Kbps modems.</p><p>The DOM was such a brilliant addition to the web that other browsers quickly followed suit. But not every browser implemented the DOM in quite the same way. Netscape Navigator, for example, used document.layers objects to reference the entire collection of HTML nodes. Microsoft Internet Explorer went with document. all. And web developers everywhere spent years struggling to reconcile the two. Opera andWebKit, for what it’s worth, followed Internet Explorer’s lead. Both browsers adopted document.all.</p><p>Eventually &#8220;DOM0&#8221; went from being a standard-through-implementation to a standard-through-specification with the Document Object Model (DOM) Level 1 Specification7. Rather than document.layers and document.all, we could use document.getElementById and document.getElementsByTagName. Today, all browsers support the DOM.</p><p><a
href="http://wp2x.com/wp-content/uploads/2014/04/html_dom.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-176" src="http://wp2x.com/wp-content/uploads/2014/04/html_dom.jpg?4b2a2c&amp;4b2a2c" alt="HTML DOME" width="550" height="296" srcset="https://wp2x.com/wp-content/uploads/2014/04/html_dom.jpg 550w, https://wp2x.com/wp-content/uploads/2014/04/html_dom-300x161.jpg 300w" sizes="(max-width: 550px) 100vw, 550px" /></a></p><p>&nbsp;</p><h2>HTML5 Applets and Plugins</h2><p>In the midst of all of this—the growth of HTML, the rise of the DOM, and the shift to XHTML—applets and browser plugins joined the party. To their credit, applets and plugins added functionality missing from HTML. For example, RealPlayer and Apple’s QuickTime brought audio and video to the web. With Java applets, you could run a spreadsheet program in your browser. Macromedia (now Adobe) Flash and Shockwave let us add all of the above, plus animations.</p><p><a
href="http://wp2x.com/wp-content/uploads/2014/04/html5-plugin.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-177" src="http://wp2x.com/wp-content/uploads/2014/04/html5-plugin.jpg?4b2a2c&amp;4b2a2c" alt="html5 plugin" width="615" height="288" srcset="https://wp2x.com/wp-content/uploads/2014/04/html5-plugin.jpg 615w, https://wp2x.com/wp-content/uploads/2014/04/html5-plugin-300x140.jpg 300w" sizes="(max-width: 615px) 100vw, 615px" /></a></p><p><strong>Applets and plugins, however, suffered from three major problems:</strong></p><p>1. Users who don’t have the plugin (or the applet environment) can’t see the content.</p><p>2. Applets and plugins expanded the surface for internet-based security breaches.</p><p>3. They were commercial products, and required developers to pay a license fee.</p><p>What’s more, plugins and applets sometimes caused their host environment—the browser—to slow or crash.</p><p><strong>So what we had on the web was a scenario in which:</strong></p><ul><li>Browsers didn’t parse HTML according to the same rules.</li><li>New markup languages offered few clear advantages over HTML but added overhead to implement.</li><li>Plugins and applets offered additional functionality, but created security and stability issues for browsers and licensing costs for developers.</li></ul><p><strong>These are the problems that HTML5 solves:</strong></p><ul><li>It incorporates features and grammars introduced by XHTML and XForms.</li><li>It almost eliminates the need for plugins and the stability and security issues they may introduce.</li></ul><p>The post <a
rel="nofollow" href="https://wp2x.com/html5/">What is HTML5?</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> </channel> </rss>