Mirage: BGA styles

2.6.3 base.embedded.audio Audio

Toggle example guides Toggle HTML markup

The HTML5 <audio> element specifies a standard way to embed audio in a web page.

Example
Markup: base/embedded/embedded-audio.twig
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">audio</span> <span class="hljs-attr">controls</span>=<span class="hljs-string">""</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">source</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://simpl.info/audio/audio/audio.ogv"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"audio/ogg"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">source</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://simpl.info/audio/audio/audio.mp3"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"audio/mpeg"</span>&gt;</span>
  Your browser does not support the audio element.
<span class="hljs-tag">&lt;/<span class="hljs-name">audio</span>&gt;</span>
</span>
Source: base/embedded/_embedded.scss, line 48