HTML and CSS Reference
In-Depth Information
<audio id="audio3">
<source src="music.ogg" type="audio/ogg">
<source src="music.mp3">
<p> No support for HTML5 <code> audio </code> element. </p>
</audio>
<!-- Trick to make sound in IE browsers -->
<audio src="music.wav">
<bgsound src="music.wav">
</audio>
Compatibility
HTML5
Firefox 3.5+, Safari 3.1+
Notes
• Alternate content should be placed inside of the audio element for browsers that do
not support it.
• Having the correct MIME types on hosted media files is key for playback. You
should also make sure the media types used work in the browsers targeted, because
currently this varies even when the audio element is supported.
• Flash will often be used to avoid cross-browser audio concerns. Until this element is
widely supported, developers are advised to continue to use Flash or to rely on
elements like bgsound .
<b> (Bold)
This inline element indicates that the enclosed text should be displayed in boldface.
Standard Syntax
<b
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text">
</b>
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
Search WWH ::




Custom Search