The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> html validation problems. Will pay.
Cary
post Feb 23 2020, 09:20 PM
Post #1





Group: Members
Posts: 3
Joined: 20-September 19
Member No.: 26,995



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 23 2020, 09:23 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,540
Joined: 9-August 06
Member No.: 6



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Cary
post Yesterday, 08:08 PM
Post #3





Group: Members
Posts: 3
Joined: 20-September 19
Member No.: 26,995



[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/

This post has been edited by Cary: Yesterday, 08:13 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Yesterday, 09:09 PM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,540
Joined: 9-August 06
Member No.: 6



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Cary
post Today, 01:22 AM
Post #5





Group: Members
Posts: 3
Joined: 20-September 19
Member No.: 26,995



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.

This post has been edited by Cary: Today, 01:30 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
1 Members: Darin McGrew

 



- Lo-Fi Version Time is now: 25th February 2020 - 01:44 AM