<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="781a17170c0b0c0a1908384d564b">[email protected]</a>/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="395b56564d4a4d4b5849790c170a">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container">
<div class="card mt-4">
<div class="card-header">HTML5 Audio Player Example</div>
<div class="card-body">
<audio controls>
<source
src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"
type="audio/mpeg"
/>
<source
src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.ogg"
type="audio/ogg"
/>
<source
src="https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.wav"
type="audio/wav"
/>
Audio not supported
</audio>
</div>
</div>
</div>
</body>
</html>
Seeking a way to utilize Bootstrap 5 classes to achieve a 100% width for the audio tag within a Bootstrap card. While adding style="width:100%"
works, I am interested in achieving this using Bootstrap's methodology.