0% found this document useful (0 votes)
11 views

Myperttext markup language Multimedia-files

The document provides guidelines for adding multimedia files to a web page, including images, videos, and audio. It explains how to use the <img>, <video>, and <audio> tags, along with their respective attributes such as src, alt, height, and width for images. Additionally, it covers how to set a background image and embed multiple media resources using the <source> tag.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Myperttext markup language Multimedia-files

The document provides guidelines for adding multimedia files to a web page, including images, videos, and audio. It explains how to use the <img>, <video>, and <audio> tags, along with their respective attributes such as src, alt, height, and width for images. Additionally, it covers how to set a background image and embed multiple media resources using the <source> tag.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Multimedia files

I M AG ES
V I DEO
AU DI O
Image
You can add images to your Web page with the use of <img> tag.
HTML supports various image formats or file types:
◦ JPEG or JPG
◦ GIF
◦ PNG
◦ BMP
Inserting an image
To display the image on the page, you have to use the src
and alt attributes.
Image attributes
Attribut Definition Value
e name
src Indicates the image to be inserted. This attribute must be present at src=“image.jpg”
all times.
alt Indicates the alternate text for an image or the text that appears alt=“about the image”
when the mouse hovers over the image and/or when the image
cannot be displayed
height Indicates the height of the image in pixels. Number of pixels
height=“300”
width Indicates the width of the image in pixels. Number of pixels
width=“300”
align Indicates the alignment of the image in the web page Left, right
Using an image as background
You can specify the background image of the page by using the
background attribute inside the body tag.
Video
In order to embed a video or movie on a web page, you can use the
<video> element.

Tag Description
<video> </video> Defines a video
<source> Defines multiple media resources for media elements
Audio
In order to embed a audio or music on a web page, you can use the
<audio> element.

Tag Description
<audio> </audio> Defines a audio content
<source> Defines multiple media resources for media elements

You might also like