Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Add and Show Images, Audio , Video in Html or Html5 page


How to Add  and Show Images, Audio , Video in Html or Html5 page?

   To Add Images:

   1.Type Within body Tag of your web page to insert picture in your web page.

    2.Provide the image path in the image start tag with help of  src keyword 

           ex:       

   3.You can also describe the Width and Height for image.

           ex:


Note 1 : You can avoid  typing pixel(px) for Width and Height.
Note 2:If you does describe the width & height of image then it will automatically cover space of your web page according to original width & height of image.
   
 To Add Audio File:
1.Type Within body Tag of your web page to insert audio file in your web page.you can add mp3, wav, ogg format file using this tag.

The controls attribute adds audio controls : play, pause, and volume control.


2.Text between the and tags will display in browsers that do not support the element.so another tag is used for audio file with in the tag.

3.we use tag for audio files.use src and type attribute for providing audio file path to audio file destination.while type attribute provide the format of audio file.

           ex:

   Example:



 
 





This post first appeared on The Code Developer, please read the originial post: here

Share the post

How to Add and Show Images, Audio , Video in Html or Html5 page

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×