How to use HTML5 audio (part 2)

Default avatar.
April 29, 2013
How to use HTML5 audio (part 2).

This is part two of the HTML5 audio introduction video; if you haven't watched it already, I recommend checking out part one to get up to speed!

Today, we'll be working on our HTML5 audio player and adding some exciting functionality to really bring our HTML5 player to life. We'll be using a method involving data attributes, which allow for easy access to custom values for each audio element, and that's where our titles, artists and album art come in.

By the end of this tutorial, you'll understand the following: "Tagging" your audio elements with custom data attributes; such as track title, artist and even album art; using jQuery to manipulate this information and display it on the page, with the flexibility to style it around your own designs.

I'll also be demonstrating my player example, and talking through how to accomplish certain effects with your data; including displaying the album art as a glossy backdrop to your player.

Have you featured HTML5 audio in a project? How does HTML5 audio compare with older options? Let us know your thoughts in the comments.

Featured image/thumbnail, sound image via Shutterstock.

Sam Piggott

Sam Piggott is a young digital designer and self-confessed jack-of-all-trades from London, UK. When he's not designing/coding/drinking copious amounts of coffee, Sam loves learning new software and air-drumming to whatever's on Spotify. Follow him on twitter @Sam_Piggott.

Read Next

Exciting New Tools for Designers, September 2024

This time around we are aiming to simplify life, with some light and fast analytics, an all-in-one productivity…

3 Essential Design Trends, September 2024

September's web design trends have a fun, fall feeling ... and we love it. See what's trending in website design this…

Crafting Personalized Experiences with AI

Picture this: You open Netflix, and it’s like the platform just knows what you’re in the mood for. Or maybe you’re…

15 Best New Fonts, August 2024

Welcome to August’s roundup of the best fonts we’ve found over the last few weeks. 2024’s trend for flowing curves and…

Turning Rejection into Fuel: Your Guide to Creative Resilience

Rejection sucks. And for some reason, it’s always unexpected, which makes it feel like an ambush. Being creative is…

20 Best New Websites, August 2024

The overarching theme in this selection is simplicity. Minimalism never really goes out of fashion and with good…

Free AI-Website Builder, Scene, Helps With the Worst Part of Site Design

AI website design platform, Scene As we’ve been hearing constantly for the last couple of years, AI will soon replace…

Exciting New Tools for Designers, August 2024

Welcome to the August toolbox. We’ve found goodies for designers, developers, project managers, domain admins, and…

3 Essential Design Trends, August 2024

As all the youngsters prepare to go back to school, you can tackle some learning too with these website design trends.…

How to Start a Creative Venture With No Money

Starting a creative venture with no money can be challenging, but it's definitely possible with the right approach and…

15 Best New Fonts, July 2024

Welcome to our monthly roundup of the best fonts we’ve found online in the last four weeks. This month, there are fewer…

The Power of the Human Face in Web Design

First impressions online are made in just a few seconds, so nailing your web design is crucial. Among the many elements…