Post #376
6/28/01 9:26:09 PM
|
HTML Compliance
The HTML looks fairly clean. A couple of minor discrepancies.
1. Meta Element for defeating DumbTags. I'm not sure, but I think HTML likes for the Meta tags to be contained within the HEAD tags. Right now you have it preceding the HTML tag.
2. TD Color Attributes: You left out the # sign for the color attributes in the TD tags (color & bgcolor).
3. Non well formed font closing. Near the bottom of the page, you have an extra /FONT closing tag (THEY[/font].org[/font]).
++++
Of course, the real trick in the long term is to validate the compliance of html tags that are entered by the user. :-)
|
Post #378
6/28/01 9:37:47 PM
|
Re: HTML Compliance
The HTML looks fairly clean. A couple of minor discrepancies. It actually has been run through the validator, believe it or not. :-) 1. Meta Element for defeating DumbTags. I'm not sure, but I think HTML likes for the Meta tags to be contained within the HEAD tags. Right now you have it preceding the HTML tag. Fixed. Thanks for pointing that out; my bad. 2. TD Color Attributes: You left out the # sign for the color attributes in the TD tags (color & bgcolor). Which page, specifically? 3. Non well formed font closing. Near the bottom of the page, you have an extra /FONT closing tag (THEY[/font].org[/font]). Fixed, thanks for spotting that one. Of course, the real trick in the long term is to validate the compliance of html tags that are entered by the user. :-) It already is, for the most part. Some of the nittier things (like the # for color attributes, etc) aren't handled, but it won't allow unclosed tags and the like.
Regards,
-scott anderson
|
Post #380
6/28/01 10:14:43 PM
|
Color attributes
2. TD Color Attributes: You left out the # sign for the color attributes in the TD tags (color & bgcolor). Which page, specifically?
On the main page that has the links to all the various forums. It occurs a couple of times - here's the first one. <td bgcolor="666666" colspan="4" align="center"><font color="FFFFFF">Welcome</font></td>
|
Post #386
6/28/01 11:43:11 PM
|
Re: Color attributes - Fixed.
Regards,
-scott anderson
|
Post #419
6/29/01 10:27:58 AM
|
How about size attributes?
Got the collor stuff working, but the size attributes are not being done yet (at least, not in the comment area)...
This test used the {font size=1} tag This text used the {font size=8} tag
(of course, the {'s should be <'s...)
jb4
(Resistance is not futile...)
|
Post #422
6/29/01 10:33:18 AM
|
Noted. Thanks.
Regards,
-scott anderson
|
Post #435
6/29/01 11:51:07 AM
|
Suggestion re: font size
Please please please use relative sizes... -1, -2, +1 +2. That leaves the font size relative to the font size selected by the user in their browser. This is much friendlier to the user...
-- ---------------------------------------------------------- * Jack Troughton jake at jakesplace.dhs.org * * [link|http://jakesplace.dhs.org|[link|http://jakesplace.dhs.org|http://jakesplace.dhs.org]] [link|ftp://jakesplace.dhs.org|[link|ftp://jakesplace.dhs.org|ftp://jakesplace.dhs.org]] * * Montr\ufffdal PQ Canada [link|news://jakesplace.dhs.org|news://jakesplace.dhs.org] * ----------------------------------------------------------
|
Post #441
6/29/01 12:59:25 PM
|
They should all be relative sized.
If I missed one, let me know. I've tried to be quite careful about that.
Regards,
-scott anderson
|
Post #383
6/28/01 11:20:49 PM
|
Re: HTML Compliance
1. Meta Element for defeating DumbTags. I'm not sure, but I think HTML likes for the Meta tags to be contained within the HEAD tags. Right now you have it preceding the HTML tag. Fixed. Thanks for pointing that out; my bad.
Checked and verified. ^_^
|
Post #379
6/28/01 10:04:34 PM
|
Loose XHTML?
One other suggestion that I would make is to try to get the HTML somewhat compliant with the XHTML standards. The five main requirements for the loose or transitional xhtml are:
1. Proper nesting: Other than the one off-balance end font tag, you're already there.
2. End Tags required: I didn't find any violations along these lines.
3. Terminate Empty Elements: This is really the only thing you need to do to get the html to be well-formed XML. Right now, you're using some of the unbounded HTML tags. Just add a space with /> and you should be good to go. This applies to the following tags: <META /> <BR /> <IMG /> <HR /> <INPUT />. I see you already had the foresight to put the termination on a bunch of the input elements (exception is the SUBMIT buttons).
4. Quoted attributes: Ok there.
5. Case Sensitivity: You seem to be using lower case, so you should be ok there.
Anyhow, if you terminate the empty elements, you should be able to use some XML tools to validate the well-formedness of the generated html. Might save you some pain in the long run.
|
Post #387
6/28/01 11:46:10 PM
|
Re: Loose XHTML?
3. Terminate Empty Elements: This is really the only thing you need to do to get the html to be well-formed XML. Right now, you're using some of the unbounded HTML tags. Just add a space with /> and you should be good to go. This applies to the following tags: <META /> <BR /> <IMG /> <HR /> <INPUT />. I see you already had the foresight to put the termination on a bunch of the input elements (exception is the SUBMIT buttons). How does this affect parsing by older browsers? Will they recognize something like <BR /> as a break tag? The SUBMIT buttons are autogenerated by a Zope form tool; I'll have to visit the source code on those. 5. Case Sensitivity: You seem to be using lower case, so you should be ok there. Heh, I like that requirement. I can't stand uppercase HTML tags. :-)
Regards,
-scott anderson
|
Post #391
6/28/01 11:55:41 PM
|
Should be ok...
To the best of my knowledge, the extra slash at the end is ignored by the normal html browsers, but my tests have not been that comprehensive - I know IE, NN, & Opera handle it with no difficulty - can't say for Lynx, etc...
If you look at the html for the forms, you find that the <input /> tags are already using that technique. So your probably no worse off if you go ahead and terminate the rest of the tags.
|
Post #392
6/28/01 11:59:24 PM
|
I'll give it a look-see.
Regards,
-scott anderson
|