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

Html Image Audio Tags | How to Add Images and Audio in Html


Image, Audio tags in Html or Html 5 page used to add Images and Audio in web pages.

   To Add Images:

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

2.Provide the image path in the image tag with help of "src" keyword or attribute

ex:

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

Html Image Tag Example:


Note 1 : You can avoid  typing pixel(px) for Width and Height.

Note 2:If you do not define the width & height of image then it will automatically cover space of your web page according to original width & height of the image.

   
 To Add Audio File:


1.Type Audio tags  Within body Tag of your web page to insert the audio file in your web page.you can add Mp3, Wav, Ogg format file using this tag.

The controls attribute adds audio controls like: play, pause, and volume control.
Html image and audio tag
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.

Html Audio Syntax:


Html Image And Audio tags Example:






 
 






Please comment and you can ask any question, if you have. THANKS
Html image and audio tag


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

Share the post

Html Image Audio Tags | How to Add Images and Audio in Html

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×