Day 18: Audio Embedded
HTML Masterclass
Current Task
Objective
Play audio natively in HTML.
Step 1: Create an <audio> tag with the controls attribute.
Step 2: Inside, add a <source> tag with src="music.mp3" and type="audio/mpeg".
index.html
<audio controls>
<source src="music.mp3" type="audio/mpeg" />
</audio>
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview