Multimedia objects


 Adding audio files first

The <audio> element is used to add audio files to website units

<audio src="audio/test-audio.ogg">
  1. src: for audio files path
  2. controls: "Indicates whether to display controls to the player" No controls are displayed by default
  3. Autoplay: The sound should play automatically

video-tag

Video> Tag is a number of attributes that allow you to control the resume of the video.

<video src "video/puppy.mp4" Width="400" height="300"controls></video>
  1. src: Specifies the path to the image file
  2. Width, Height: Size in pixels
  3. controls: replay
  4. autoplay: play the video automatically

Comments