Earlier this year, people started getting excited about some of the proposals for HTML6 that were being tossed around. While still far from becoming a reality, the W3C has been busy gathering ideas on their HTML/next page. Today’s article will highlight some of the more interesting ones. Just bear in mind that not every proposal will find its way to the final HTML6 spec.
It seems incredible that HTML still does not provide an editable SELECT – i.e. combobox. HTML5 brought us the Datalist element, but it’s really just a regular SELECT with autocompletion.
So how would it work? It could be as simple as adding an “editable” attribute. Setting it would add a textbox to the dropdown whose value would be sent to the server on form submits. Autocompletion could still be provided for values that match one or more options’ display text.
What with links being the cornerstone of the World-Wide-Web, they should be more powerful and versatile than they are currently. According to the contributor of the advanced anchors idea, “creating dynamic links to an exact location within a document seems fun,” so why not?
We could make hyperlinks more powerful by accepting CSS3 selectors within the href attribute. For example, here’s a link that points to the third paragraph of the second section within the same document:
<a href=":root div:nth-of-type(2) > p:nth-of-type(3)"> go tothe3rd paragraph </a>
Location Element
Location aware applications have become so commonplace that it only seems natural that core HTML should have an element for storing location information. It would contain geolocation data such as latitude, longitude, and elevation/altitude. It could perhaps even point to a map service such as googlemaps via a href attribute:
That’s the basic idea, but there could probably be a lot more done with it.
Advertisement
Automatic Capitalization in Text Fields
This idea was first submitted as a bug. There has since been an ongoing discussion of the issue. In the words of the author, the automatic capitalization of certain letters within a text field “is not a style transformation of the input like CSS’s ‘text-transform: capitalize’. It is a semantic description of the type of data that will be input into the field.”
More than binary “on” and “off” configuration, the presenter offers several other intriguing possibilities:
“none” (“off”) – no capitals are expected
“sentences” (“on”) – each sentence is expected to start with a capital
“words” – each word is expected to be capitalized
“characters” – all characters are expected to be capitalized
omitted/missing attribute for form controls is a “default” state (“off”?)
all unrecognized but present values fall back to “sentences” (“on”)
Here is how the above values could be utilized in a form:
<form>
First Name: <inputname="first-name" autocapitalize="words">
Last Name: <inputname="last-name" autocapitalize="words">
State: <inputname="state" autocapitalize="characters">
Username: <inputname="username" autocapitalize="none">
Comment: <textarea name="comment" autocapitalize="sentences"></textarea>
</form>
Advertisement
Bring Back the Datagrid!
You may remember the datagrid from HTML5. It would up being removed from the spec due to disagreements over its final implementation, but the idea itself is a good one. Despite the migration of layouting duties from tables to CSS, the latter are still your best choice for displaying tabular data. However, plain vanilla tables have far too little behavior to really shine within modern web apps. Case in point, I am currently developing just such an application that displays product data within a table. I wound up using the jQuery Tablesorter plugin. Another option would have been the excellent jQuery DataTables plugin.
Some of the features that I was looking for that are not natively supported by HTML5 tables include:
zebra stripes – that’s where rows alternate between two different colors
infinite loading – where rows are populated as they scroll into view
datasource binding
in-place editing
pagination
filtering
A Responsive Table in a Mobile Device
Don’t get me wrong; I am grateful to have these wonderful free plugins at my disposal. Nonetheless, it would be nice to have similar functionality available to me using native HTML.
Advertisement
Conclusion
So, there are some of the many interesting ideas for HTML6 floating around right now. I would urge you to tale a look at the HTML/next page for more proposals. If you’d like to contribute to the HTML Working Group, visit the WorkMode page for more information on how to join.
Rob Gravelle resides in Ottawa, Canada, and has been an IT guru for over 20 years. In that time, Rob has built systems for intelligence-related organizations such as Canada Border Services and various commercial businesses. In his spare time, Rob has become an accomplished music artist with several CDs and digital releases to his credit.
The original home of HTML tutorials. HTMLGoodies is a website dedicated to publishing tutorials that cover every aspect of being a web developer. We cover programming and web development tutorials on languages and technologies such as HTML, JavaScript, and CSS. In addition, our articles cover web frameworks like Angular and React.JS, as well as popular Content Management Systems (CMS) that include WordPress, Drupal, and Joomla. Website development platforms like Shopify, Squarespace, and Wix are also featured. Topics related to solid web design and Internet Marketing also find a home on HTMLGoodies, as we discuss UX/UI Design, Search Engine Optimization (SEO), and web dev best practices.
Advertiser Disclosure: Some of the products that appear on
this site are from companies from which TechnologyAdvice
receives compensation. This compensation may impact how and
where products appear on this site including, for example,
the order in which they appear. TechnologyAdvice does not
include all companies or all types of products available in
the marketplace.