Audio/video files

Question:
Is there a way to add audio or video file to an html file?

Replit Profile: https://replit.com/@AngelicaNell

1 Like

Welcome to Ask @AngelicaNell!

In HTML, there are tags for both audio and video. See them on W3Schools:

1 Like

Yes @AngelicaNell in HTML, just like there’s an image tag (<img src="image's path" />) to add images, there are also tags to add audio and video

For audio files, the tag is:
<audio src="audio's path"controls></audio>

For video files, the tag is:
<video src="video's path"controls></video>

Here’s my Replit, if you want, you can also visit it as an example: Replit Link

What @Fairies0feast suggested is also helpful and the same, so you can check that out too.
i hope this was helpful for you,Have a great day! :smile:

1 Like