Beruflich Dokumente
Kultur Dokumente
Using HTML
HTML Iframes
Iframe Attributes
Src (source)
Height
Width
Frameborder
Align
Bitmap Images
Vector Images
Illustration and animation software tends to
use vector formats to save images, and the
most popular vector graphics format on the
Web is Flash.
Browsers and XHTML do not, by default,
support any vector graphics formats,
although the main browsers now ship with
the Flash Player that is required to view
Flash files.
It must carry:
src attribute indicating the source of the image
an alt attribute whose value is an alternate
description for the image in case it does not load
or the user has a visual impairment.
Attributes of <img>
Attributes Description
Align Attribute:
Attributes Description
Border Attribute: Specifies the width of the
border around the image in pixels:
Say border=4
Height and Width Attributes: The height
and width attributes specify the height and
width of the image:
height=120 width=180
The values for these attributes are almost
always shown in pixels.
Attributes Description
hspace and vspace Attributes: used to
control the amount of whitespace around an
image.
hspace=10
vspace=14
Attributes Description
longdesc Attribute: The longdesc attribute is
used to indicate the URL of a document (or part
of a document) containing a description for the
image in more detail.
name Attribute: The name attribute allows
you to specify a name for the image so that it
can then be referenced from script code. It is the
predecessor to, and has been replaced by, the
id attribute.
name=image_name
20
It must carry:
Data attribute indicating the source of the image
Adding Audio
Example:
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Adding Video
You should also insert text content between the <video> and
</video> tags for browsers that do not support the <video>
element.
Adding Video
<video width="320" height="240" controls>
<source src="movie.mp4"
type="video/mp4">
<source src="movie.ogg"
type="video/ogg">
Your browser does not support the video tag.
</video>