background preloader

HTML

Facebook Twitter

5 HTML5 Features you need to know. Posted at daker.me HTML5 has been around for a while now, it introduces lots of new and exciting new JavaScript and HTML APIs for both mobile and desktop, so in this post you will discover some HTML5 features that will enhance your web apps and will save you a lot of time.

5 HTML5 Features you need to know

DNS Prefetching DNS hostname resolution is one of the issues that can make any website slow. Modern browsers start to be very smart when it comes to DNS resolution, they try to resolve domain names then cache them before the user tries to follow any link on the webpage. With the dns-prefetch feature you are allowed to manually control this operation by telling the browser which domain names to resolve : Link Prefetching Download Attribute. Essential Audio and Video Events for HTML5. The <video> and <audio> elements provide a comprehensive range of events.

Essential Audio and Video Events for HTML5

While some are quite straightforward, like the self-explanatory play event, others can be rather more tricky to understand, especially the progress event. So let's examine some of the most important media events, looking at when and how they fire and what properties are relevant to them. We'll also try to navigate the quirks of their behavior in current browsers (well, you didn't think they'd all be the same, did you?). (For reference testing, I'll be using the latest public versions of the most common browsers — Opera 12, Chrome 28, IE10, Firefox 22, Safari 5 (desktop) and Mobile Safari 6 (iOS).

So wherever a browser is referred to only by name (e.g. Playback Events. Customize an HTML5 Webpage using the Bootstrap Framework. Many web developers are familiar with Twitter Bootstrap and have seen this library on a number of projects.

Customize an HTML5 Webpage using the Bootstrap Framework

The Bootstrap core is fantastic when you need a CSS reset along with other common layout features. Introducing HTML’s new template element. You may have heard of Web Components, a suite of emerging standards that make it possible to build secure reusable widgets using web platform technologies.

Introducing HTML’s new template element

One of the first specs to make its way into implementation is HTML Templates, embodied by the template element, which as I write this is implemented in Chrome Canary and Firefox Nightly. If you've used Mustache, Handlebars or any similar front-end templating library you'll be quite familiar with how the template element works: you just include it in your document (it's apparently legal inside head or body), perhaps with a unique id for easy reference and add some markup inside it; for example: The template element will be parsed by the browser but not rendered in the page; the markup inside is considered completely inert, meaning no style rules will be applied and no assets loaded.

Responsive Tables. A few smart folks have already put together their thoughts on responsive tables and, while I think the proposed methods are pretty good, I think there might be room for improvement.

Responsive Tables

As such, I've been tinkering for a while and came up with the following strategy when it comes to tables. Step 1: Use data-* attributes to hold information about the column header(s) associated with the markup: Step 2: When the screen is below a certain threshold, set the table elements to display: block (thereby linearizing the table), hide the thead where assistive tech won't see it and use generated content to expose the data-* attributes. HTML Tools. Datalist Experiment. Posted at *Chrome feature.

datalist Experiment

HTML5 Placeholder Fallback using jQuery. Getting HTML5 Ready - ContentEditable. Add Telephone Number Links With HTML5. Posted at Paulund Normally telephone numbers are adding to web pages as just static text of digits which doesn't offer any interaction to your visitors. With more and more people using the internet on their mobile it's time to change your telephone numbers to clickable areas to call the number directly from your mobile phone. On your phone if you want to call a number of a web page you would have to copy and paste the number into your phone to dial it. HTML5 for Creatives. By now, professional web designers and developers have got a fairly good grip of “HTML5”.

HTML5 for Creatives

Yes, we know most of what is referred to as HTML5 is not strictly HTML5 at all, indeed a good deal is not even HTML, rather CSS and the DOM. But we know what it is, what we can do with it, what drawbacks and challenges exist. HTML5 Tutorial - Welcome. HTML Canvas Deep Dive. Old School Cassette Player with HTML5 Audio. Vintage format meets modern web tech: an HTML5 audio player with realistic controls.

Old School Cassette Player with HTML5 Audio

Today we want to share an audio player with you that looks like an old school music cassette. View demo Download source. Creating a semantic breadcrumb using HTML5 microdata. HTML5 is doing a lot for semantics and one of the key features I've been busy implementing in many of my projects is microdata.

Creating a semantic breadcrumb using HTML5 microdata

In this tip I'll share how to build a semantic breadcrumb that uses HTML5 microdata. Sites using microdata to markup their breadcrumbs also have their trail displayed on google search results like so: HTML5 Boilerplate. pForm - Free HTML Form Builder - Create Web Form Template Online. HTML5 Audio element maker. HTML5 Template Generator. Periodic Table of the Elements - Josh Duck. List of Videos for HTML5. Modernizr to solve cross-browser challenges. 1514Days 1514 days since this post was last revised.

Modernizr to solve cross-browser challenges

Specific details are likely out of date. This piece is intended to help users who are comfortable with HTML and CSS but not so confident using JavaScript. I’ll (hopefully) demonstrate how you can use the incredible open-source Modernizr JavaScript library to solve cross-browser design challenges and conditionally load assets (CSS or JS files) based on a number of tests.

If the thought of writing JavaScript makes you shudder. If you’re looking for some more advanced documentation on Modernizr, there are a few great tutorials out there. HTML5 Presentation. In March 1936, an unusual confluence of forces occurred in Santa Clara County. A long cold winter delayed the blossoming of the millions of cherry, apricot, peach, and prune plum trees covering hundreds of square miles of the Valley floor. Then, unlike many years, the rains that followed were light and too early to knock the blossoms from their branches. Instead, by the billions, they all burst open at once. Seemingly overnight, the ocean of green that was the Valley turned into a low, soft, dizzyingly perfumed cloud of pink and white. Uncounted bees and yellow jackets, newly born, raced out of their hives and holes, overwhelmed by this impossible banquet.

Then came the wind. It roared off the Pacific Ocean, through the nearly uninhabited passes of the Santa Cruz Mountains and then, flattening out, poured down into the great alluvial plains of the Valley.