Getting the new MSIE 9 HTML5 <audio> tag to work.

I just installed the MSIE 9 beta in a Virtual Machine, and tried to get the following to work:

<audio src="swing.mp3" autoplay=true controls=true>
Your browser does not support the audio element.
</audio>

It was running fine in Chrome, but in MSIE 9 I found that the the code must be preceded by:

<!DOCTYPE html>

Then this new control shows up:

image

If I’m not much mistaken the same will go for the other new HTML tags like <video>, <svg> etc.

Read more here: http://msdn.microsoft.com/en-us/library/ff975061.aspx

Advertisements
Posted in Web

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s