 |
 |
 |
 |
#109194 - 12/10/01 08:56 AM
Re: Almost done
|
Master Hacker
Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
|
<li> does need a closing tag. The way it works is that you do the unordered list <ul>, each list item <li>, some text, close the item tag </li>, and then close the list tag </ul>.
Allen, in the page you linked to, the <li> closed itself, which isn't right, because it actually does have an end tag. <img src="smile.gif" border="0" alt="" /> You have </font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"><li /></font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif"> when it should be </font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"><li>list item text</li></font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">
<font color="#000000" size="1">[ 12-10-2001 08:57 AM: Message edited by: Matt Jacob ]</font>
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#109197 - 12/10/01 10:43 AM
Re: Almost done
|
Admin / Code Breaker
Registered: 03/24/01
Posts: 7396
|
Matt, http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ubbdev.com%2Fubbcgi%2Fultimatebb.cgi%3Fubb%3Dget_topic%3Bf%3D5%3Bt%3D000184&charset=%28detect+automatically%29&doctype=Inline (ignore the errors, just the validation page itself) doesn't have </li> in the end of every list item...
ie. </font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"><li>Line <a href="#line-505">505</a>, column 35: <pre> <code class=input>... </font><ul type="square"><li></li> this is a list<li></li> t ...</code> <span class=markup>^</span></pre>
<span class="error">Error: text is not allowed here; try wrapping the text in a more descriptive container </span></font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">
Allen, [code] needs <pre> IMO, because otherwise it won't keep spaces/tabs.
_________________________
My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#109203 - 12/10/01 11:22 AM
Re: Almost done
|
Master Hacker
Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
|
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by AllenAyres: would font tags closing before and opening after each li improve that? And I think MJ's point is that every tag must be closed in its proper nesting to validate.</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">
About the <font> tags, it'd at least make the source easier to work with, so that's worth something, I guess. <img src="wink.gif" border="0" alt="" /> And yeah, in order to get code to validate, especially XHTML, each tag has to have a closing tag and be properly nested. "Close them in reverse order of which you started them" is a good rule to remember when writing code.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|