When validating, I get this response many times:
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
----------------------------
Example of a line that got the above response:
Line 185, Column 76: document type does not allow element "A" here
… in Canaan from <a href="Lv.html#mblb">1500</a>, <b>Late Bronze-2</b> from <a …
----------------------------
I will undoubtedly have more validation problems.
If you post the link to a sample document or paste the markup in your post we will help you. For free. The short snip above isn't enough since it doesn't show the context for the A.
I would also like to know what tool that gave you that error message. It's more verbose than the output from the validators I know of.
[quote name='pandy' date='Feb 23 2020, 09:23 PM' post='138424']
pandy, Thank you for responding. That particular page is not on my site yet, because I want to get it validated before uploading it (along with about 60 similar pages).
Here is a sample of the type of page I'm currently trying to validate: https://www.sanityquest.com/time/5c-3c/Ital.html
This "World Chronology" section of my site covers 2000BCE to 100BCE. The 60 or so pages that remain to be uploaded are for 100BCE to 0BCE.
The tool that gave me the response is:
http://validator.w3.org/
Peculiar. I've never seen that kind of output from the w3c validator.
The page you linked to generates some errors, but none of them close to the error you originally asked about.
Right. I said That particular page is not on my site yet.
Do I need to have it on my site in order to continue?
Can I upload it here? It's 97.4k.
I can also upload a smaller version of that page which has the errors I'm talking about.
Hi @cary
Thanks for sharing the problem here.
I am having expertise in same domain and can surely help you out.
Please share details on rachel at cisinlabs dot com
or can discuss more on skype - live:.cid.52caceaa56239236
Looking forward.
Rachel
Thank you Christian. Here is my attempt to do that.
This 4.22k doc called "Carys validation prob" has 8 errors of 3 types, none of which I understand. It is a knocked down version of a page from my World Chronology section:
http://www.sanityquestpublishing.com/time/tindex.html
Attached File(s)
Carys_validation_prob.html ( 4.23k )
Number of downloads: 649
Uhm, no it does not.
Congratulations
The document located at <http://www.sanityquestpublishing.com/time/tindex.html> was successfully checked as HTML 4.01 Transitional.
https://validator.w3.org/check?uri=http%3A%2F%2Fwww.sanityquestpublishing.com%2Ftime%2Ftindex.html&charset=%28detect+automatically%29&doctype=Inline&group=0
Aha. The attached file is the one with the 8 errors. I assumed they were the same. Let's see.
Since you use HTML 4.01 I use the validator on this site. Its output is a little easier to understand.
https://htmlhelp.com/cgi-bin/validate.cgi?area=%3C%21--Force+IE6+into+quirks+mode+with+this+comment+tag--%3E%0D%0A%3C%21DOCTYPE+html+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+HTML+4.01+Transitional%2F%2FEN%22%0D%0A%22http%3A%2F%2Fwww.w3.org%2FTR%2Fhtml4%2Floose.dtd%22%3E%0D%0A%3Chtml%3E%0D%0A%3Chead%3E%0D%0A%3Cmeta+http-equiv%3D%22content-type%22+content%3D%22text%2Fhtml%3B+charset%3Diso-8859-1%22%3E%0D%0A+%3Ctitle%3ELevant+1200-1001%3C%2Ftitle%3E%0D%0A%3Clink+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+href%3D%22..%2Fhstyles.css%22%3E%0D%0A%3C%21--%5Bif+IE%5D%3E%0D%0A%3Clink+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+href%3D%22..%2Fhie.css%22+%2F%3E%0D%0A%3C%21%5Bendif%5D--%3E%0D%0A%3Cscript+src%3D%22..%2Fexternal.js%22+type%3D%22text%2Fjavascript%22%3E%3C%2Fscript%3E%0D%0A%3Cmeta+name%3D%22keywords%22+content%3D%22chronicle%2C+chronology%2C+history%2C+timeline%22%3E%0D%0A%3C%2Fhead%3E%0D%0A%0D%0A%3Cbody+onLoad+%3D+%22adjScroll%28%29%22+bgcolor%3D%22%2366CDAA%22%3E+%0D%0A%0D%0A%3Cdiv+id%3D%22header%22%3E%0D%0A%3Ctable+width%3D%22100%25%22+class%3D%22c%22+bgcolor%3D%22%2366CDAA%22+border%3D%220%22%3E%0D%0A%3Ctr%3E%0D%0A%3Ctd+width%3D%22200%22+class%3D%22chel%22%3Ewebsite+%26nbsp%3Bsource%26nbsp%3Blinks%26nbsp%3B%26nbsp%3B%3Cbr%3E%0D%0A%3C%2Ftd%3E%0D%0A%0D%0A%3Ctd%3E%3Cimg+src%3D%22pix%2FIztop2.gif%22+height%3D%22200%22+width%3D%22640%22+border%3D%220%22+alt%3D%22Levant%22+usemap%3D%22%23maps%22%3E%0D%0A%3Cmap+name%3D%22maps%22%3E++%3Carea+shape%3D%22poly%22%0D%0A%09coords%3D%220%2C88%2C41%2C88%2C0%2C121%22+alt%3D%22Go+to+Anatolia%22+href%3D%22An2.html%22%3E%0D%0A++%3Carea+shape%3D%22poly%22%0D%0A%09coords%3D%2265%2C88%2C85%2C88%2C85%2C121%2C65%2C117%22+alt%3D%22Go+to+Mesopotamia%22+href%3D%22Ms595.html%22%3E%0D%0A++%3Carea+shape%3D%22poly%22%0D%0A%09coords%3D%2265%2C116%2C85%2C120%2C85%2C199%2C29%2C199%2C21%2C188%2C65%2C186%22+alt%3D%22Go+to+Arabia%22+href%3D%22Arabia.html%22%3E%0D%0A++%3Carea+shape%3D%22poly%22%0D%0A%09coords%3D%220%2C186%2C15%2C184%2C24%2C199%2C0%2C199%22+alt%3D%22Go+to+Egypt%22+href%3D%22Egypt%2FNK.html%22%3E%0D%0A++%3Carea+shape%3D%22poly%22%0D%0A%09coords%3D%220%2C123%2C27%2C103%2C42%2C128%2C32%2C175%2C0%2C183%22+alt%3D%22Go+to+Mediterranean%22+href%3D%22Med.html%22%3E%3C%2Fmap%3E%3C%2Ftd%3E%0D%0A%3C%2Ftr%3E%0D%0A%3C%2Ftable%3E%0D%0A%0D%0A%3Ctable+width%3D%22100%25%22+bgcolor%3D%22%2366CDAA%22+border%3D%221%22+class%3D%22c12%22+cellpadding%3D%225%22%3E%0D%0A%3Ctr%3E%0D%0A%3Cth+width%3D%22186px%22%3E%3Ca+href%3D%22Lv4c.html%23bot%22%3E%26%23923%3B%3C%2Fa%3E+%26nbsp%3B+%26nbsp%3B+%3Ca+href%3D%22..%2Ftindex.html%232k-1k%22%3EI+N+D+E+X%3C%2Fa%3E+%26nbsp%3B+%26nbsp%3B+%3Ca+href%3D%22..%2F1k-500%2FLv.html%22%3EV%3C%2Fa%3E+%26nbsp%3B+%3Cspan+class%3D%22UrSybg%22%3E%3Ca+href%3D%22..%2F1k-500%2FUrSy.html%22%3EV%3C%2Fa%3E%3C%2Fspan%3E%3C%2Fth%3E%0D%0A%3Cth+width%3D%2250px%22%3EB+C+E%3C%2Fth%3E%0D%0A%3Cth%3ELevant+%26nbsp%3B+1200-1001+BCE%3C%2Fth%3E%0D%0A%3Cth+width%3D%2290px%22%3E%3Ca+href%3D%22sources.html%22+target%3D%22_blank%22%3Esources%3C%2Fa%3E%3C%2Fth%3E%0D%0A%3Cth+width%3D%223px%22%3E%3C%2Fth%3E%0D%0A%3C%2Ftr%3E%0D%0A%3C%2Ftable%3E+%0D%0A%3C%2Fdiv%3E%0D%0A%0D%0A%3Cdiv+id%3D%22lefcol%22%3E%0D%0A%3Cimg+src%3D%22pix%2FLev2.gif%22+height%3D%22684%22+width%3D%22200%22+alt%3D%22Levant%22+border%3D%220%22%3E%0D%0A%3C%2Fdiv%3E%0D%0A%0D%0A%3Cdiv+id%3D%22maincontent%22+class%3D%22lvl%22%3E%0D%0A%3Cblockquote+class%3D%22hel%22% 3EThe+land+we+call+Syria+is+abbreviated+from+Assyria+because+the+name+stuck+afte
r+Assyria+fell+in+612.%26nbsp% 3B+It+is+arbitrarily+called+Aram+here+because+the+Torah+calls+it+Aram+even+befor
e+the+Arameans+arrived.%3C%2Fblockquote%3E%0D%0A%0D%0A%0D%0A%3Ca+name%3D%22dmsp%22%3E%3C%2Fa%3E%0D%0A%3Ctable+width%3D%22100%25%22+border%3D%221%22+cellpadding%3D%225%22%3E%0D%0A%3Ctr%3E%0D%0A%09%3Ctd+width%3D%2250px%22%3Ec.1200%3C%2Ftd%3E%0D%0A%09%3Ctd%3EDAMASCUS%2C+%3Cspan+class%3D%22egl%22%3Eunder+Egypt+from+%3Ca+href%3D%22Lv4c.html%23dmr%22%3E1259%3C%2Fa%3E%2C+no+longer+under+Egypt%3C%2Fspan%3E%2C+but+oppressed+by+%3Cspan+class%3D%22wtlbg%22%3ESea+Peoples%3C%2Fspan%3E+until+%3F.%3C%2Ftd%3E%0D%0A%09%3Ctd+width%3D%2240px%22+class%3D%22hel%22%3E%3Cb%3E1200%3C%2Fb%3E+%3Ca+href%3D%22http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FDamascus%22+target%3D%22_blank%22%3EwikD%3C%2Fa%3E%3C%2Ftd%3E%0D%0A%3C%2Ftr%3E%0D%0A%3C%2Ftable%3E%0D%0A%0D%0A%3Ca+name%3D%22h2a%22%3E%3C%2Fa%3E%0D%0A%3Ctable+width%3D%22100%25%22+border%3D%221%22+cellpadding%3D%225%22%3E%0D%0A%3Ctr%3E%0D%0A%09%3Ctd+width%3D%2250px%22%3Ec.1200%3C%2Ftd%3E%0D%0A%09%3Ctd%3EHALAP%2C+%3Cspan+class%3D%22hit%22%3Eunder+Hittites+from+%3F%3C%2Fspan%3E%2C+reverts+to+a+small+market+town%2C+returns+to+Arameans+until+%3Ca+href%3D%22..%2F1k-500%2FUrSy.html%23h2a%22%3E900%3C%2Fa%3E.%3C%2Ftd%3E%0D%0A%09%3Ctd+width%3D%22100px%22+class%3D%22hel%22%3E%3Cb%3E1200%3C%2Fb%3E+B76+1-465%2C+%3Ca+href%3D%22http%3A%2F%2Fmy.raex.com%2F%7Eobsidian%2FSyria.html%22+target%3D%22_blank%22%3ErcS%3C%2Fa%3E%3C%2Ftd%3E%0D%0A%3C%2Ftr%3E%0D%0A%3C%2Ftable%3E%0D%0A%0D%0A%3Ctable+width%3D%22100%25%22+border%3D%221%22+cellpadding%3D%225%22%3E%0D%0A%3Ctr%3E%0D%0A%09%3Ctd+width%3D%2250px%22%3Ec.1200%3C%2Ftd%3E%0D%0A%09%3Ctd%3ESIDON+overcome+by+the+king+of+the+%26%2334%3BAskalonians%26%2334%3B+%28probably+%3Cspan+class%3D%22wtlbg%22%3ESea+People%3C%2Fspan%3E%29.%26nbsp%3B+Flee+in+ships+to+Tyre.%3Cbr%3ETYRE+is+taken+over+by+Sidonians%2C+and+becomes+chief+Phoenician+port.%3C%2Ftd%3E%0D%0A%09%3Ctd+width%3D%22100px%22+rowspan%3D%222%22+class%3D%22hel%22%3E%3Cb%3E1200%3C%2Fb%3E+ENBD+1302%2C+MW%26%23934%3B+9%2C+%3Cu%3ErcHL%3C%2Fu%3E%3Cbr%3E%3Cb%3E1198%3C%2Fb%3E+WBANE+342%3C%2Ftd%3E%0D%0A%3C%2Ftr%3E%0D%0A%3C%2Ftable%3E%0D%0A%0D%0A%3Ca+name%3D%22act%22%3E%0D%0A%3Ctable+width%3D%22100%25%22+border%3D%221%22+cellpadding%3D%225%22%3E%0D%0A%3Ctr%3E%0D%0A%09%3Ctd+width%3D%2250px%22+rowspan%3D%222%22%3Ec.1200%3C%2Ftd%3E%0D%0A%09%3Ctd%3EACCO%2C+%3Cspan+class%3D%22egl%22%3Eunder+Egypt+from+%3Ca+href%3D%22Lv.html%23ace%22%3E1900%3C%2Fa%3E%3C%2Fspan%3E%2C+comes+under+TYRE+until+%3Ca+href%3D%22..%2F1k-500%2FLv.html%23aci%22%3E1000%3C%2Fa%3E.%3C%2Ftd%3E%0D%0A%3C%2Ftr%3E%0D%0A%3C%2Ftable%3E%0D%0A%0D%0A%3Cp+class%3D%22c%22%3ELevant+1000-612+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%3Cspan+class%3D%22UrSybg%22%3ESyria+%26amp%3B+Urartu+1000-612%3C%2Fspan%3E%3Cbr%3E%3Cspan+class%3D%22h36%22%3E+%3Ca+href%3D%22..%2F1k-500%2FLv.html%22%3EV%3C%2Fa%3E+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%26nbsp%3B+%3Cspan+class%3D%22UrSybg%22%3E%3Ca+href%3D%22..%2F1k-500%2FUrSy.html%22%3EV%3C%2Fa%3E%3C%2Fspan%3E%3C%2Fspan%3E%0D%0A%3C%2Fp%3E%0D%0A%3Cp+class%3D%22space%22%3E%26nbsp%3B%3C%2Fp%3E%0D%0A%3C%2Fdiv%3E%0D%0A%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E+%0D%0A%0D%0A&charset=ISO-8859-1&warnings=yes&input=yes
No, it applies to all versions of (X)HTML except HTML 5.
[quote name='pandy' date='Feb 25 2020, 11:58 PM' post='138436']
Since you use HTML 4.01 I use the validator on this site. Its output is a little easier to understand.
OOOOOOOOOOOOOOOOKay
THANK YOU!
Now I feel stupid, but it was worth it.
Where's the donation page?
Cary
Nah, you aren't stupid. You validate and that's very smart.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)