Skip to main content

How to insert image ,video,audio in html ?

 How to insert videos audios and images in websites ?

These are the most important tags because these tags are used from small websites to large marketing websites.

And by adding a video to website we can increase the views probability by 300% so learn properly how to add videos audios and images to website 

                    Image Tag

Image Tag is a tag by which we can insert images to html by the <image> tag ,this tag does not contain an end tag and we give some attributes like (src ) attribute in which we define the path of the image ,(width) and (height) attribute in which we give width and height of the image.

<Body>
<img src="gallery/taj.jpg"width="200px"height="50px">
</Body>

In src attribute we first give the name of file in which it is stored and then we give a forward slash (/) to separate then we give the image name with its extension.

                  Audio tag


We all know that audio tag is used to insert audios in this tag we use a control attributes , without this  attribute we cannot play that audio

 <Body>
<Audio  src="gallery/song.mp3" control="autoplay"width="200px"height="50px">
</Body>

                    Video  tag


This tag is also used as same as audio tag 
this tag also has a control attributes which is important to play the video 

 <Body>
<Video  src="gallery/video.mp4" control="autoplay"width="200px"height="50px">
</Body>

 Hope you like this series and 
If you had any quarry ask to me in the comment box.


                          Stay with me 

Comments