View Full Version : Hey, I need a code.


cowgirl572
03-01-2006, 02:16 AM
Whats the img code to insert images?:confused:

Joseph Witchard
03-01-2006, 03:05 AM
I believe it's <img src=IMAGE.WHATEVER GOES HERE>

=)

ZippyDee
03-01-2006, 03:12 AM
<img src="image.url">

and if you want to have alternate text (for when the image doesnt show up) you put this:

<img src="image.url" alt="hover text">

i think that might only work for IE, but im pretty sure that if you put "title" instead of "alt" it should work for other browsers, too.

J to the izzosh
03-01-2006, 03:50 AM
The alt attribute is a standard across all web browsers. In fact, it's a required attribute for all images if you want your site to validate as XHTML because it increases accessibility to your site for persons whose browsers are not enabled to display images; the alt text will display in place of the image, giving you the opportunity to describe it with some "alternative text". The title attribute is also a standard attribute, but is used for causing a browser to pop-up a small text box describing the element when someone mouses over it. Where Internet Explorer gets it confused is by popping up that text description with the alt text even if the image is displaying properly; alt text should only appear if the image doesn't!

anwipr
03-02-2006, 12:25 AM
and just for the random geeky stuff you don't care about... <img src="imagenamehere.gif"> stands for "Image Search" and it basically tells it to search for that image on the internet and include it. They're right, if you add an alt tag (<img src="image.gif" alt="Some Text Here!">) it will show up on a mouseover, for example, if you hover your mouse over the image I just wrote, it would say "Some Text Here!" next to your mouse. It's sorta like a description. Also, you can add a border to your image if you want. (<img src="image.gif" border="### of pixels">)

:D

J to the izzosh
03-02-2006, 01:16 AM
And I always thought that 'img' stood for image and was just the name of the tage, while 'src' is the attribute used to reference its 'source' file... "Image search" makes a great mnemonic device, though!

The alt attribute will only display a description on a mouseover in Internet Explorer. If you want to display a description on a mouseover, use the title attribute, as it is standard across all browsers and that is what it's meant to do. The alt attribute should only be used to provided "alternative text" for a browser to display when it can't display the image at all.