Page 288 - Web Applications (803) Class 12
P. 288
Output:
20. Create a webpage which includes code to play audio also.
Ans. <html>
<head>
<title>My Web page</title>
</head>
<body bgcolor=cyan text=red>
<h1>Delhi is one of the world’s oldest inhabited cities. It has been the
capital of several empires and dynasties throughout history. Here are
some interesting facts about Delhi’s history:</h1>
<UL>
<LI> Delhi was known as the Walled City, with 14 entrances.
<LI> In the seventeenth century, Mughal Emperor Shah Jahan ordered the con-
struction of the Red Fort. For almost two centuries, it served as the Mughal
rulers’ official palace. When the limestone began to crumble, the British
painted the fort red, although it was originally white.
<LI> Asia’s largest wholesale spice market is located in Khari Baoli, Delhi.
</UL>
<H2>Click the play button to listen to the audio:</h2>
<!-- Use the <audio> element to embed an audio file -->
<audio controls>
<source src=”Music1.mp3” type=”audio/mpeg”>
Your browser does not support the audio element.
</audio>
286 Touchpad Web Applications-XII

