Earlier this month the W3C’s Web Platform Working Group published HTML 5.1 as the fifth major version and first minor revision of the Hypertext Markup Language (HTML), which is the core language of the World Wide Web.
HTML 5.1 is but an interim release of the specification; however it contains new features that simplify matters for developers and eliminates others that get in the way.
The HTML 5.1 specification is limited to providing a semantic-level markup language and associated semantic-level scripting APIs for authoring accessible pages on the web, ranging from static documents to dynamic applications, the W3C said.
“Basically, it’s an attempt to make the standard reflect the reality of what’s in browsers rather than be a Utopian ideal of what browser vendors should implement.” — Alex Danilo
“The primary goal is to provide a stable spec that developers can use as a reference snapshot of what’s implemented in browsers,” Alex Danilo, developer advocate at Google and one of the editors of the HTML 5.1 specification for the W3C, told The New Stack.
The primary differences between HTML 5 and HTML 5.1 are documented in the change document, but from a developer’s perspective, features that had not been implemented interoperably in more than one browser have been removed, Danilo noted.
Moreover, “5.1 improves things mainly from the point of being able to reference features in the spec and expect then to work in multiple browsers which was not the case with 5.0,” he said. “Basically, it’s an attempt to make the standard reflect the reality of what’s in browsers rather than be a Utopian ideal of what browser vendors should implement.”
It took more than 10 years for the W3C to standardize HTML 5 in October of 2014, but only two years to get to HTML 5.1.
The W3C is working on more rapid release cycles and is aiming at publishing regular incremental updates and stable versions of HTML as a W3C Recommendation about once a year, said Philippe Le Hégaret, Interaction Domain Leader at the W3C, in a blog post.
In fact, work on HTML 5.2 has already begun and that specification is expected to be published by the end of next year.
Al Hilwa, an analyst with IDC, described HTML 5.1 as “an incremental release with a few additional new capabilities standardized compared to the major overhaul that HTML 5 itself was. The most important thing about this release is that it arrives at a time when browsers are being automatically updated allowing users to see new web platform innovations arrive in record time relative to prior versions.”
“We believe HTML 5.1 is today the best forward looking, reality-based, HTML specification ever,” Nevile said. “So our goal with HTML 5.2 is to improve on that.”
Le Hégaret noted that HTML 5.1 brings such changes over HTML 5 as:
- The <picture> and <srcset> attributes allow responsive image selection. That means the user agent may select images between different resolutions.
- The requestAnimationFrame API allows for more efficient animation, allowing the user agent to better determine the ideal animation rate based on whether the page is currently in a foreground or background tab, what the current load on the CPU is, and so on.
- The <details> and <summary> elements enable authors to provide extended information that remain hidden until users choose to view the content.
- The <menuitem> and type=”context” attribute value enable authors to add functionality to the browser’s context menu.
“It’s fair to say that HTML 5.1 is a minor update,” said Charles King, principal analyst at Pund-IT. “That’s not surprising given the sweeping changes introduced in the original HTLM 5 but it’s also emphasized by the W3C noting that it expects to introduce an HTML 5.2 update at the end of 2017. That said, there are some interesting additions in HTML 5.1 that are designed to keep the spec up to date.”
“Though relatively minor, these and other changes should make life easier for many developers,” King noted.
The new features primarily help make life easier for web application developers and improve interoperability.
Prior to its release in 2014, Gartner noted that HTML5 would not be a panacea for mobile application portability because the market research firm said it was fragmented and immature, and also posed many implementation and security risks.
“However, as HTML5 and its development tools mature, the popularity of the mobile web and hybrid applications will increase,” Gartner said in its report identifying HTML5 as one of their top 10 mobile technologies and capabilities for 2015 and 2016. “Hence, despite many challenges, HTML5 will be an essential technology for organizations delivering applications across multiple platforms.”
Meanwhile, the W3C is working to make the HTML specification more modular and easier to read – a goal the group has been working on for years, Nevile said.
Feature image: The HTML5test‘s timeline of HTML5 desktop browser compatibility