xhtml validation

B

Bart van den Burg

Hi

I'm trying to switch to xhtml, so of my page (http://www.tvreclames.nl/) i
ripped all the tags and put new ones instead (also because it started to
become a real mess), which can be seen at http://www2.tvreclames.nl/

Now I'm trying to validate the page (xhtml strict) and i'm getting a LOT of
the same errors:

Line 46, column 4: document type does not allow element "div" here; missing
one of "object", "ins", "del", "map", "button" start-tag
<div><a href="index.pl">Nieuws</a></div>

Can anyone tell me what the cause of this is? I know HTML 4.01 pretty well,
but I'm an XHTML n00b...

Thanks
Bart
 
M

Matthias Gutfeldt

Bart said:
Line 46, column 4: document type does not allow element "div" here; missing
one of "object", "ins", "del", "map", "button" start-tag
<div><a href="index.pl">Nieuws</a></div>

Can anyone tell me what the cause of this is? I know HTML 4.01 pretty well,
but I'm an XHTML n00b...


-You have DIV inside of P, which is not allowed.
-All inline elements must be wrapped in a block-level element, this also
applies to any inline elements in your form.


Matthias
 
S

Steve Pugh

Bart van den Burg said:
I'm trying to switch to xhtml,

Why?
What benefits do you think it offers to yourself or to your visitors?
so of my page (http://www.tvreclames.nl/) i
ripped all the tags and put new ones instead (also because it started to
become a real mess), which can be seen at http://www2.tvreclames.nl/

Now I'm trying to validate the page (xhtml strict) and i'm getting a LOT of
the same errors:

Line 46, column 4: document type does not allow element "div" here; missing
one of "object", "ins", "del", "map", "button" start-tag
<div><a href="index.pl">Nieuws</a></div>

<div> is not permitted inside <p>.

But that looks like a list anyway.
Can anyone tell me what the cause of this is? I know HTML 4.01 pretty well,
but I'm an XHTML n00b...

The rules for which elements can be nested inside other elements are
identical in HTML 4 and XHTML 1.

Steve
 
B

Bart van den Burg

----- Original Message -----
From: "Steve Pugh" <[email protected]>
Newsgroups: alt.html
Sent: Friday, September 12, 2003 6:30 PM
Subject: Re: xhtml validation

Why?
What benefits do you think it offers to yourself or to your visitors?

Not much...
There's actually another reason: I started this site in november '02 just
for myself. Now I'm studying at a school for webdevelopment/design, and I'm
using this project for school now. But that is only usefull if I use it to
learn new stuff. That's why I'm trying to do XHTML strict now, as well as
using XML for language files (is this actually to be recommended?)
<div> is not permitted inside <p>.

But that looks like a list anyway.
Use <ul> and <li> instead; and if you want to get rid of the bullets
and indent use CSS.

Thanks, that'll do!

Should've better said "I know (X)HTML Transitional pretty well, but I'm an
(X)HTML Strict n00b..."
The rules for which elements can be nested inside other elements are
identical in HTML 4 and XHTML 1.

Steve

thanks for your responce
Bart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top