Most Popular Stories
- OMB plummets in agency satisfaction rankings
- Surprising lessons from a Florida college's iPad deployment
- Google Angstro purchase another piece of social networking tool
- Agencies stay watchful amid social-media fervor
- Motorola warns against downloading unofficial Android 2.2 upgrade for Droid X
- Google Chrome 7 will come with GPU acceleration
Events
- Gov 2.0 Summit
September 7 - 8 — Washington, DC - Register for IT Roadmap Dallas 2010
September 14 — Dallas Convention Center - Northwestern University Master of Science in Information Systems (MSIS)
- SharePoint Technology Conference
October 20 - 22 — Boston, MA
Sponsored Links
HOT TOPICS >> Q2 Earnings Roundup | CMIS | Mergers and Acquisitions | Industry Voices | One on One Interviews
IT NEWS BY INDUSTRY >> Healthcare IT | Government IT | Financial Services IT | Biotech IT | Compliance IT
Free Newsletter
Fierce ContentManagement is a weekly content management news update, which focuses on best practices for creating, storing and managing documents and information. Join 24,000+ IT managers and executives who get Fierce ContentManagement via weekly email. Sign up today!
About | View Sample | Privacy
Latest News
Popular Topics
We never sell or give away your contact information. Our reader's trust comes first.
Are you ready for HTML 5?
Guest post by Char James-Tanny
I'm sure you've heard the news: HTML5 is here. Well, sort of. Maybe. Will you welcome it with open arms (and closed tags)? Or will you ignore it and hope that everyone else does, too?
The background
The WHATWG (Web Hypertext Application Technology Working Group) started developing HTML5 in June 2004. (Read how HTML5 got to that point at Dive into HTML5 by Mark Pilgrim.) By January 2008, a joint effort between the WHATWG and the W3C (World Wide Web Consortium) resulted in the publication of the W3C Working Draft. The W3C Candidate Recommendation is due in 2012, with the W3C Recommendation due in 2022.
This would be the point where most people go: "Huh?"
Yes, 2022 is in the future...12 years in the future, to be exact. However, no one has to wait until the final recommendation to start using HTML5. In fact, Google has been using HTML5 for its search and mail application since mid-2009, and the Google PacMan page (created to celebrate PacMan's 30-year anniversary) was created with HTML5 elements. One thing to note, though, is that Google's pages are not valid HTML5.
So why would you want to start using HTML5 now? And what do you have to watch out for? The answers, as always, are "It depends."
Pros
I think the following features will help with HTML5's adoption rate.
New DOCTYPE - Over the years, I have only met a handful of people who have memorized one of the HTML or XHTML DOCTYPES. That's because they look like:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
And:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http://www.w3.org/TR/xhtml1/DTD/
xhtml1-strict.dtd>
The new HTML5 DOCTYPE is easy to type and easy to remember:
<!DOCTYPE html>
That's it. And adding it to an HTML file is all that's needed to make an HTML5 page.
Semantic areas - Some folks don't care about semantics in any version of HTML. (In this case, "semantics" means that the name of the area matches its purpose. For example, do you know when you should use the CSS class "BoldRed"? How about "warning"? What about a div called "left" as compared to a div called "content"?)
For those who care about semantics, HTML5 addresses them with areas called header, nav, article, section, aside, and footer--you still need CSS to position them, though. All browsers except IE recognize these new areas, and IE will recognize them if you use a script to define them. (Remy Sharp has defined a script for this purpose; read about it at HTML5 enabling script.)
Less code and fewer lines of code - Because of the new DOCTYPE, fewer lines of code are needed inside the <head> tags for a basic HTML file. Because of the new semantic areas, shorter lines of code are needed inside the <body> tags, especially for those who have been using tables for layout, but the lines are shorter even when compared to XHTML. For example, compare the following examples:
| HTML 4 | XHTML 1.x | HTML5 |
| <table> <tr><td>Header </td></tr> | <div id="header"> | <header> |
| <tr><td>Nav </td></tr> | <div id="nav"> | <nav> |
| <tr><td>Content </td></tr> | <div id="content"> | <article> |
| <tr><td>Footer </td></tr> </table> | <div id="footer"> | <footer> |
No presentational attributes - The HTML5 spec doesn't include any presentational attributes, such as those typically used on body (background, alink, link, vlink, text, bgcolor), table (align, bgcolor, cellpadding, cellspacing, frame, height, nowrap, valign, width), and img (hspace, vspace). These attributes should be defined in your CSS file. OK, so most of these attributes were deprecated in earlier specs, but now they are officially considered obsolete. And yes, I know that this doesn't mean that people will stop using them, although I can hope!
No rules - HTML had no syntactical rules; you could use uppercase or lowercase for tags and attributes, you didn't have to add closing tags, you didn't need to use quotes. XHTML, which had to be well-formed because it is an application of XML, had rules: Tags and attributes had to be lowercase, and closing tags and quotes were required.
HTML5 takes us back to the period of "no rules". But unlike HTML, the hope is that you will actually use your own set of rules and avoid the "tag soup" of HTML. (Personally, I use XHTML syntax for HTML5, because it's what I'm most familiar with.)
Cons
Some features will be avoided, although the reasons may vary.
Video - HTML5 includes a <video> tag that requires a special format. However, the standard format hasn't been determined, and the discussions of Flash versus HTML5 video are leading to arguments, not solutions.
Canvas - The <canvas> tag, while now part of the HTML5 spec, was originally introduced by Apple (it was included with Firefox 1.5). While you can create some very cool effects with <canvas>, you have to be able to use JavaScript to control the functionality--unless, of course, you only want to create very basic canvas effects, which don't require any scripting.
New features that may catch on
In addition to the pros and cons, I think that developers will welcome some of the new features that HTML5 includes.
New global attributes - HTML5 adds several new global attributes, including "draggable" and "contenteditable." (Did you know that when Tim Berners-Lee created his first web browser, it was also an editor?) My first impressions of both were, "Eh, so what?" And then I saw some examples.
As a technical communicator, I hear a lot about "user-generated content". I also hear a lot about what technical writers think the ramifications will be. Something like "contenteditable" could fill the gap, providing a place where users can modify content and authors can incorporate it in the source.
"draggable" lets users move content from one place to another. The best example I've seen is by User Agent Man, who used it to demonstrate how to build a permissions list. I envision it being used to categorize information.
Forms - Forms have been greatly enhanced in HTML5. Form elements now include validation, for example, the browser validates the content in the email field to make sure that it is a valid email address. This means that once all browsers have been updated to use HTML5 form fields, programmatic validation isn't required.
At this time, only Opera 10.5 supports form fields. You would have to use a layered technique if you wanted to start using HTML5 form fields now.
Text field types:
- file
- number
- password
- tel
- text
- url
Other fields:
- color
- datetime
- file
- range
Examples
Want more information on HTML5? Check out these sites:
- HTML5 Doctor, helping you implement HTML5 today
- HTML 5 Elements and Attributes
- How to Learn HTML5
- What Does It All Mean?
- HTML5 Cheat Sheets
- Smashing Magazine's HTML5 Cheat Sheet
- When Can I Use...
- HTML 5 Demos and Examples
Char James-Tanny is president of JTF Associates, Inc. and has thirty years of experience as a technical communicator. She speaks around the world on topics including Help authoring concepts and tools, accessibility, social media, web standards, collaboration and technology. Char is a 2010 Microsoft Help MVP.
Related Articles:
Google shuts down Google Gears for now
Brightcove announces HTML 5 support for iPad
Analyst: Adobe need not fear iPad or HTML5
Maybe Steve Jobs was right about Adobe
Related Stories
- Reactions to Adobe-Day purchase
- Wolfram|Alpha launches widget tool
- Adobe purchases Day Software for $240 million
- IBM spending spree continues with Unica purchase
- Finding the right web CMS fit in 2010
- Open Text releases semantic search tool based on Nstein technology
- Every CMS fails and what you can do about it
- DotNetNuke introduces new Enterprise version
- Nielsen: Email use drops 28 percent in one year
- The WordPress CMS debate continues
Comments
Post new comment
Home
| Subscribe | Advertise | RSS |
Privacy
| Site MapTHE FIERCEMARKETS NETWORKFierceFinance | FierceFinanceIT | FierceComplianceIT | FierceHealthcare | FierceHealthFinance | FierceHealthIT | Hospital Impact | FierceMobileHealthcare | FierceHealthPayer | FiercePracticeManagement | FierceCIO | FierceCIO:TechWatch | FierceContentManagement | FierceMobileIT | FierceGovernmentIT | FierceBiotech | FierceBiotech Research | FiercePharma | FierceVaccines | FierceBiotechIT | FiercePharma Manufacturing | FierceMedicalDevices | FierceDrugDelivery | FierceIPTV | FierceOnlineVideo | FierceTelecom | FierceVoIP | FierceBroadbandWireless | FierceDeveloper | FierceMobileContent | FierceWireless | FierceWireless:Europe | FierceCable© 2010 FierceMarkets. All rights reserved. |
![]() |







