Page 173 - Web Applications (803) Class 11
P. 173
</TR>
<TR>
<TH COLSPAN="3">TOTAL</TH>
<TD>653.64</TD>
</TR>
</TABLE>
</BODY>
</HTML>
The output of the preceding code is shown:
2.10 INSERTING AUDIO AND VIDEO IN A WEBPAGE
The HTML5 <audio> and <video> tags allow us to add media to a website. To add media, we are required to set src
attribute to identify the media source and include the controls attribute so the user can play and pause the media
whenever required.
Adding Audio
We use <audio> tag to embed sound content in an HTML document.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Audio </TITLE>
</HEAD>
<BODY>
<H1 ALIGN = "CENTER"> <FONT COLOR = "Red">
Welcome to the Musical World </FONT></H1>
<P ALIGN = "CENTER">
<IMG SRC = "D:\MusicalNote.Jpg">
</P>
<AUDIO SRC = "D:\flute.mp3" AUTOPLAY CONTROLS>
</AUDIO>
</BODY>
</HTML>
Website Development using HTML and CSS 171

