Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- CSS/HTML Rendering in IE VS Firefox / Opera


gohankid77 - 5:31 am on Oct 14, 2004 (gmt 0)


Whoa! No, no. LOL

You don't need the "/" on EVERY element. Just on elements defined as "empty" such as <br />, <hr />, <img />, and <area />. <div>, <span>, <html>, <body>, etc. just to be closed normally (i.e. </div>, </span>, </html>...)

example:
<div id="header">
<ul>
<li><a title="About Us" href=""><span>About Us</span></a></li>
<li><a title="Client Testimonials" href=""><span>Clients</span></a></li>
</ul>
</div>

<div id="dlb">
<span id="dlbg"><a id="doglink" href=""><img alt="" id="image" src="image.jpg" /><br />Puppies</a></span>
<span id="dlbg"><a id="doglink" href=""><img alt="" id="image" src="image.jpg" /><br />Belgian Malinois</a></span>
</div>

<div id="text">Display All Text Here & Other Images Here</div>
</body></html>

Modified for your learning pleasure. :)

[edited by: SuzyUK at 2:40 pm (utc) on Oct. 14, 2004]
[edit reason] removed excess code [/edit]


Thread source:: http://www.webmasterworld.com/css/4741.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com