HTML MEDIA FILES Flashcards
tag allows developers to link and
display an image in an HTML page.
<img></img>
It is a single tag and requires the src and alt
attributes to be set.
image element
<img></img>
this defines the URL of an image. The
file format of images can be JPEG, GIF or
PNG.
src
this defines an alternate text for an
image when it fails to load.
alt
allows developers to display an
audio file in an HTML page.
<audio> tag
</audio>
This denotes that the audio will start
playing as soon as it is loaded.
autoplay
This denotes that the audio controls such
as play and pause buttons should be displayed.
controls
This denotes that the audio will replay every
time it is finished.
loop
This denotes how the author thinks the
audio should be loaded when the page loads. The possible values of this attribute are auto, metadata
or none.
preload
This defines the URL of an audio file. The three supported file formats are MP3, WAV and OGG.
src
allows developers to display a
video file in an HTML page.
<video> tag
</video>
This defines the height of the video player
through pixels.
height
This defines the width of the video player
through pixels.
width
This denotes whether the audio of the video
player is muted (no sounds)
muted
allows developer to specify more than one
sources for audio or video elements.
<source></source>