audioPermite manejar una transmisión de audio o video.
Aunque este elemento puede llevar contenido, por ejemplo texto, este no se
muestra al usuario; es para desplegarse en navegadores que no soportan el
elemento
audio,
para poder probar con plugins o para indicar como acceder al contenido.
Si el contenido incluye subtítulos o lenguaje de señas, es mejor usar el
elemento
video.
| 1 | <!DOCTYPE html> |
| 2 | <html lang="es"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" |
| 6 | content="width=device-width"> |
| 7 | <title>Imágenes</title> |
| 8 | </head> |
| 9 | <body> |
| 10 | <h1>Imágenes</h1> |
| 11 | <style> |
| 12 | img { |
| 13 | max-width: 100% |
| 14 | } |
| 15 | </style> |
| 16 | <figure> |
| 17 | <img alt="Un gatito" |
| 18 | src="https://media.giphy.com/media/MDJ9IbxxvDUQM/giphy.gif"> |
| 19 | <figcaption>Gatito</figcaption> |
| 20 | </figure> |
| 21 | <footer> |
| 22 | <p> |
| 23 | Imágen de |
| 24 | <a target="_blank" rel="noreferrer" href="https://giphy.com">Giphy</a>. |
| 25 | </p> |
| 26 | </footer> |
| 27 | </body> |
| 28 | </html> |
La especificación técnica del elemento
audio
está en
https://html.spec.whatwg.org/multipage/media.html#the-audio-element