Interview Question

What is the audio tag?

`<audio>` should be used for its proper HTML purpose.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

`<audio>` is an element that plays sound in the browser. • The `controls` attribute gives users play and volume buttons. • Browsers apply the native parsing and behavior defined for this element. • Using its native meaning helps assistive technology understand the content when the element has accessibility semantics.

💡 Simple Example

<audio controls src="song.mp3"></audio>

⚡ Quick Revision

`<audio>` should be used for its proper HTML purpose.