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

05-06-2007, 02: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.

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


05-07-2007, 12: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.

05-10-2007, 08:03 PM

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

Thanks both of you.