PDA

View Full Version : The forward slash at the end of the images tag.


Andromeda
05-06-2007, 03:31 AM
I've noticed that when I insert an image in dreamweaver using design mode dreamweaver enters a forward slash at the end of the iamge tag. For example:
<img src="images/quark.jpg" />

What does the forward slash mean? I've never noticed until recently and in fact other websites I've created using dreamweaver don't have the forward slash.

pravin
05-07-2007, 11:33 AM
Forward slash is using for closing the img (image) tag. This is the web standards recommended by w3c.

Thanks

domedia
05-07-2007, 01:35 PM
in xhtml all tags have to be closed. For tags without content, like <img>, you have to close the tag with the forward slash at the end.

Andromeda
05-10-2007, 09:03 PM
Ah!

That would explain why they don't appear in my older web sites.

Thanks both of you.