Home > website > Differences between HTML 4 and HTML5
Differences between HTML 4 and HTML5
Posted on Sunday, June 26, 2011 by Arman Zulhajar

Now it’s time to take a few steps back and take a look at some of the differences between HTML 4 and HTML5.
This is intended to be a useful overview, not an exhaustive reference, but remember that things are still and always changing. The complete, up to date list of all the technical differences may always be found on the W3C’s site. You also may want to refer to this document for the actual details of the HTML5 specifcation itself.
The frst thing you should know is that, perhaps for the frst time, the development of a language standard is acknowledging the real world. In order to keep fle compatibility with the current standard - which is technically HTML 4.01 - the brave decision was made to separate the way the web browser renders fles from the way we, as developers, must write them. So the browser, or “user agent”, must still process HTML4 constructs like the center element, because there will still be millions of fles on the Internet that happen to use it. But we won’t be writing any more HTML with center; it’s simply being dropped from the language (use CSS instead). This compatibility goes both ways: older browsers can (and will) simply ignore HTML5 code without screwing things up.
No More Frames
This is great news to those of us who slogged through the1990s. To be exact, the elements frame, frameset, and noframes are being removed from the language, as well as acronym, applet, basefont, big, blink, center , dir, font, isindex, strike , tt and u. All of these can be handled using CSS or other methods.
You’ll also have to learn to get along without using tables for layout; while tables themselves are still part of HTML5, they’re not intended for placing pixels any more. Here’s what the spec says: “Tables must not be used as layout aids. Historically, some Web authors have misused tables in HTML as a way to control their page layout. This usage is non-conforming, because tools attempting to extract tabular data from such documents would obtain very confusing results.” So all the attributes that let people create those perfectly laid-out, tinted tables are gone, like align, bgcolor, border, cellpadding, cellspacing, height, nowrap, rules, valign, and the big one: width. The mantra: use CSS instead.
I’ve been trying my best to break it to you slowly, but frankly, all presentational elements are coming out of HTML5. My advice: learn lots more CSS, until you can quote chapter and verse in your sleep.
Good News
The good news is that even though this is a big change, it’s a change for the better. Browsers of the future (just another month or two!) will become more powerful because of the move towards the cloud, so that they’ll be able to handle more on their own. We’ve already seen that with things like Ajax , and now with video/audio embedding and such, it will be far easier for us to code in a straightforward manner and let the browser fgure out the details. For instance, new structure elements include article, aside, fgcaption, fgure, footer, header, hgroup, nav, section, and summary, all of which refer to the structure of the document itself and leave rendering to the browser.
There are still some new elements that deal with text on a detailed level, however: you’ll code wbr when you think it’s possible to do a line break, but the browser will decide for you. Another hint element is bdi, used to mark an area where bidirectional text formatting can be done (primarily for mixing left-right and right-left languages in a single document). Its complement, bdo, lets you explicitly override and force a particular directionality. For even more slick internationalization, the elements ruby, rp, and rt are included for ruby annotations, which are meant for pronunciation aids rather than for Ruby On Rails programmers.
Category Article html4, html5, Traffic, website
Random Posts
-
In Angry Birds 2-14, you have 4 white Angry Birds that can drop explosive eggs. You must beat 4 pigs to pass this level. If you're look...
-
Using WiFi Access Point (WAP) is actually tricky. If you use a different modem and WAP brands such as TP Link modem and WAP SMC or Asus br...
-
Angry Birds 5-12 walkthroughs are so useful for you who need idea to beat Angry Birds 5-12 Mighty Hoax. Maybe, Angry Birds level 5-12 is ha...
-
I am growing tired of this winter. It JUST can't decide how to act. It's -20 celsius. No, wait, it's +4 celsius! Ok, it's -5...
-
My apologies to the vast majority who voted for a facebook page. I have read through the privacy policy on facebook and rushed to delete my ...
Powered by Blogger.
Blog Archive
-
▼
2011
(3255)
-
▼
June
(184)
- Ghost Scepter - Dota Item
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Google Alert - Facebook Games News
- Etheral Blade - Dota Item
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Google Alert - FrontierVille Cheats Videos
- Isla Dorada Episode 1: The Sands of Ephranis [BETA]
- Midsummer creatures
- Download Dota Ringtone for Your Cellphone
- Google Alert - FrontierVille Latest Cheats
- Oddly Enough Pied Piper [BETA]
- Sphera [BETA]
- 4 Elements 2 [BETA]
- Cradle Of Egypt [BETA]
- Ninja Puzzle [FINAL]
- Urn of Shadows
- Mahjongg Artifacts 2 [FINAL]
- Nanda's Island [FINAL]-BFG
- QuadSmash [FINAL]
- The Microbie Story [FINAL]
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Herofy [FINAL]
- Garden Spirits [BETA]
- Google Alert - Facebook Games News
- Khadgar's Pipe of Insight
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Sandra Fleming Chronicles: The Crystal Skull [BFG-...
- Differences between HTML 4 and HTML5
- Increase Traffic to Your Blog
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Tales From The Dragon Mountain: The Strix [FINAL]
- Grim Facade: Mystery of Venice Collector’s Edition...
- Google Alert - FrontierVille Latest Cheats
- Camy Adventures - Episode 1 [FINAL]
- Google Alert - Facebook Games News
- What to Do When a Laptop is Stolen???
- Review: Cisco RV220W Wireless-N Network Security F...
- The Fall Trilogy: Chapter 3 - Revelation [FINAL]
- New Dota Hero: Ymir - Tuskarr
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Google Alert - FrontierVille Cheats Videos
- Val'Gor 2: The Beginning [FINAL]
- Jessica's 2 Dash Pack [FINAL]
- Virtual Farm 2 [FINAL]
- Jessica's Bow Wow Bistro [FINAL]
- Energy Vampires: Strange Comments and Emails
- Dota 6.70 Map Free for Download
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Ghost Towns: The Cats Of Ulthar [BETA]
- Mystery Valley: Extended Edition [FINAL]
- Blossoms at home
- Smoke of Deceit - New Dota Item on Dota 6.70
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- How Public Key Cryptography Works ?
- Protecting Your Sensitive Information with Encryption
- Ancient Janggo of Endurance - New Dota Item on Dot...
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Juliet's Fashion Empire [BETA1]
- Research time: What questions do you want answered?
- Medallion of Courage - New Dota Item on Dota 6.70
- The pilot outfit
- Veil of Discord - Dota Item
- Secrets of the Dark: Temple of Night Collector's E...
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Hello!
- Classic Fishdom 2 in 1 Pack [FINAL]
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Short vs Long
- Doodling while rendering....Looks like some animal...
- Grand Magnus (Rubick) - Dota Hero
- Hide and Secret 4: The Lost World [FINAL]
- Death Under Tuscan Skies: A Dana Knightstone Novel...
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- The perfect light conditions
- Short Natural Hair: The Flat Twist
- "7 Secrets of Internet Millionaires"
- Proactive Password Auditor
- Google Alert - FrontierVille Cheats
- Google Alert - FrontierVille Latest Cheats
- Puppy Sanctuary [BFG-FINAL]
- Bicycle Skat [FINAL]
- The Timebuilders 2: Caveman's Prophecy [FINAL]
- Echoes Of The Past 3: The Citadels Of Time [BETA]
- Google Alert - Facebook Games News
- Short Natural Hairstyles: Curly Chellez
- Download Dota Map 6.72c
- Angry Birds 1.5.2 [FINAL]
- It's not enough!
-
▼
June
(184)