+ 1
How can i insert files?
How can i use url of an image? How can i add other files like audio and video in my code ?
2 odpowiedzi
+ 1
You can use the <video> tag to embed a video.
<video src="https://example.com/movie.mp4" controls width="320" height="240"> </video>
Audio tag:
<audio src="https://example.com/audio.mp3" controls></audio>
Img tag:
<img src="https://example.com/photo.jpg">
Use the following file extensions:
Audio: .mp3
Video: .mp4
Image: .jpg or .png
Src attribute indicates the source of the file.
Controls makes elements visible.
+ 1
you have to upload your file to a repository that will host and provide accessible url for it . You can't directly link to files in your device. While you might be able to access it locally in your code, other people can't.