OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
XHTML style tags that make a difference in apperance
This page's ID:
10919
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
You're confusing the <tag/> syntax with the normal <tag>...</tag> syntax. Let's review: 1. In XML or XHTML, *all* tags must be closed. <div>...</div>, <br></br>, and <img...></img>, for instance. 2. When a tag is empty, you're allowed to replace it with the simpler <tag/> syntax. For instance, <br/> replaces <br></br>, <img.../> replaces <img...></img>. 3. When using this shortcut, you're allowed to put an extra space before the trailing slash, so that older browsers don't choke: <br />, <img... /> for instance. What you've done in index1 is this: <div id="logo"> <a href="http://www.ozoneasylum.com"><img src="images/asylum_logo.jpg" width="299" height="84" alt="Home of the Mad Scientists" border="0"><a/> <div/> <div id="box"> <a href="http://www.ozoneasylum.com/">OZONE Asylum, home of the Mad Scientists<a/> <div/> ... which is equivalent to this: <div id="logo"> <a href="http://www.ozoneasylum.com"><img src="images/asylum_logo.jpg" width="299" height="84" alt="Home of the Mad Scientists" border="0"><a/> <div></div> <div id="box"> <a href="http://www.ozoneasylum.com/">OZONE Asylum, home of the Mad Scientists<a/> <div></div> See? index2, however, was correct. If a tag is not empty, you cannot use the <tag/> syntax with it in any way.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »