Click to See Complete Forum and Search --> : Validation Questions


mark4man
08-18-2003, 08:04 PM
OK...I did it!

I converted my XHTML compliant site back to HTML...

...by freakin' hand (as in, "manually.")

(& for those that helped me to determine that as the correct approach...thanks.)

I replaced the XHTML prologue with HTML, for every page (&...I apologize if that's a misspell...everyone else seems to spell it "prolog.")

Then I rewrote all the image, meta, object, area & line break tags to HTML standard...

...& validated the entire site (in Dreamweaver.)

There are a few errors that I am having trouble with; & I was hoping someone could point me in the right direction (& believe me...I am very appreciative of all the help already received in the board):

1) The tag: "table" doesn't have an attribute. "height" in currently active versions.

All I did here was to place a Table inside of a Layer. It seems to look fine on the web. Can't figure out why this is an error.

2) The tag: "marquee" is not allowed within: "strong" is only allowed within: body.

Here, I placed a scrolling marquee script (again, inside a Layer.) I made the text bold, because it looked weak, otherwise. I was under the impression that it only worked in IE, but a friend of mine informed me that it works for them in Navigator, as well. Is having a scrolling marquee a problem? Is there a better way to accomplish this?

3) I have 4 tags *above* the <!DOCTYPE> tag:

<cfprocessingdirective pageEncoding="iso-8859-1"/>
<cfcontent type="text/html; charset=iso-8859-1"/>
<cfset setEncoding("URL", "iso-8859-1")/>
<cfset setEncoding("FORM", "iso-8859-1")/>,

...which were written there when I placed a PayPal button on a merchandise page, which links to a payment form at PayPal. The Validator claims the "cfprocessingdirective", "cfcontent" & "cfset" tags are not found in currently active versions.

Not quite sure what to do about this one. I feel weird about the location, primarily (above the DTD.) Is it that, or the tags themselves?

4) The tag name: "embed" not found in currently active versions.

This came about due to the fact that I placed 4 Flash Buttons on a page. They also seem to work fine.
-----------------------------------------------------------

Thanks for any help,

mark4man

AdamGundry
08-19-2003, 02:45 AM
I presume you are using HTML 4.01 Strict, in which case the following apply:

1. The height attribute for tables etc. is deprecated, and you should use CSS instead.

2. Don't use marquees. They are not standards compliant and violate accessibility recommendations. They have never been part of HTML 4.01.

3. None of those are valid tags anywhere, let alone above a doctype, but you may need them for PayPal to work. You may be able to move them into the <head> section, so at least browser quirks mode is avoided

4. Embed is not a valid HTML 4.01 tag, it is an extension. You should use object (http://www.w3.org/TR/html401/struct/objects.html#edef-OBJECT) for standards compliance.

Adam

P.S. Why on earth are you converting back from XHTML to HTML?

Fang
08-19-2003, 03:08 AM
See mark4man's (http://forums.webdeveloper.com/showthread.php?s=&threadid=15513) previous thread.
mark4man is apparently using:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> which is quirks mode.

AdamGundry
08-19-2003, 03:37 AM
Correction for point 1: height is not an attribute for <table>, it applies to <td> and <th> in the loose (transitional) DTD (http://www.w3.org/TR/html401/sgml/loosedtd.html), and does not apply to table elements at all in the strict DTD.

The other points still apply.

Adam

mark4man
08-19-2003, 06:53 PM
In answer to your question, as XHTML, the page where I sold my CD, which contained a PayPal button (which linked to a payment form at PayPal)...

...did not work...

...with the error listed as XML in nature.

Aside from that, some friends of mine with old Mac's (probably running old NN), claimed they could not display the site.

So I just busted everything back to HTML. (I'll come back to it later...after I finish my CD...& convert back (& repair to that standard.) But for now...I didn't have the time.

Moving ahead...the errors mentioned earlier were from Dreamweaver's validator. So, out of curiosity, I parsed the site at W3C. They only found 3 errors:

1) Line 104, column 198: required attribute "ALT" not specified
..." width="262" height="262" border="0"></a></div>
^
2) Line 106, column 106: element "MARQUEE" undefined
...Roman, Times, serif"><strong><marquee>escape
^
3) Line 133, column 32: there is no attribute "BORDERCOLOR"
<td width="142" bordercolor="#FFFFFF"><p>&nbsp;</p>

Thanks for all the comments,

mark4man