Html Code

bigjim1968

New Member
Hello To One And All, I have just recently started experimenting with web design, but one item still eludes me.

can anyone tell me what the html code would be for inserting a jpeg image
into a site, but and here is where i am foxed,? what would be the code if when i clicked on the image you could hear either music or spoken word in
mp3 format.

thanks to everyone hope someone can help me.

regards
James
 

PixelPusher

Super Moderator
Staff member
James, to insert an image (jpeg, png, or gif) you will use an image tag. Like this:

HTML:
<img src="yourImgPath.jpg" alt="InfoAboutTheImage" />

If you want the audio to play in your website, that would require a flash (swf) object.
 

mezangath

New Member
My personal suggestion is that you start out from a WYSIWYG editor (google it) and just back-track the code. Much easier to learn it that way (atleast it was for me). :)
 

montyhar2

New Member
I am a software engineer.You have to insert an image,you will use an image tag.You have used this code. <img src="yourImgPath.jpg" alt="InfoAboutTheImage" />
I am used this code.This is the best solution.Thanks.
 

bluecollar01

New Member
Check out this tutorial about using MP3 files in html -http://www.hypergurl.com/music.html.

You could link to the file like this:
<a href="yourmidname.mp3"><img src="yourImgPath.jpg" alt="InfoAboutTheImage" /></a>

or you could embed the file with a small control panel:
<embed src="yourmusic.mid"
width="140" height="40" autostart="false" loop="FALSE">
</embed>

Let us know if any of this helps. Thanks.
 
Last edited by a moderator:

Bogdan Adolf

New Member
Music is inserted onto a web page with the use of the embed tag. There are other ways to link to music, but embed is now considered the standard for inserting media. Below is an minimalist example of the embed tag using the src attribute to define the media file's location.

Example code:
<embed src="beethoven.mid" />
 

diansunarko

New Member
James, to insert an image (jpeg, png, or gif) you will use an image tag. Like this:

HTML:
<img src="yourImgPath.jpg" alt="InfoAboutTheImage" />

If you want the audio to play in your website, that would require a flash (swf) object.
Very interesting read this is one of my major interest.
 
Top