failing to validate xhtml

T

the idiot

i keep getting this

'Line 4, column 10: an attribute value specification must be an attribute
value literal unless SHORTTAG YES is specified'

in relation to (the letter 's' in stylesheet) this

<link rel=stylesheet type="text/css" href="html/new.css" />

what the buggery am i supposed to do?

thankyou
 
P

Philip Ronan

the said:
i keep getting this

'Line 4, column 10: an attribute value specification must be an attribute
value literal unless SHORTTAG YES is specified'

in relation to (the letter 's' in stylesheet) this

<link rel=stylesheet type="text/css" href="html/new.css" />

what the buggery am i supposed to do?

Put some quote marks around it

<link rel="stylesheet" ...
 
M

Mark Parnell

Previously in alt.html said:
'Line 4, column 10: an attribute value specification must be an attribute
value literal unless SHORTTAG YES is specified'
<link rel=stylesheet type="text/css" href="html/new.css" />

what the buggery am i supposed to do?

a) Quote your attributes, as required by the XHTML DTD.
b) Go back to using HTML until you understand the stricter requirements
of XHTML (and no, it's not just that it's kewl).

Take your pick. :)
 
T

the idiot

Mark Parnell said:
a) Quote your attributes, as required by the XHTML DTD.
b) Go back to using HTML until you understand the stricter requirements
of XHTML (and no, it's not just that it's kewl).

Take your pick. :)
but i do understand them now (ish) ... anyway how do i learn if i dont ask?
 
M

Mark Parnell

Actually, thinking about this again, just go back to HTML regardless.
There's no real reason for anyone to use XHTML, and you have to pretend
it's HTML for IE to accept it anyway.
but i do understand them now (ish) ... anyway how do i learn if i dont ask?

Read the specs. :)

Assuming you have a decent knowledge of HTML, this is probably a good
place to start:
http://w3.org/TR/xhtml1/#diffs
 
T

the idiot

Mark Parnell said:
Actually, thinking about this again, just go back to HTML regardless.
There's no real reason for anyone to use XHTML, and you have to pretend
it's HTML for IE to accept it anyway.
ask?

Read the specs. :)

Assuming you have a decent knowledge of HTML, this is probably a good
place to start:
http://w3.org/TR/xhtml1/#diffs
i do but im an old man and the terminology confuses me. pesky kids.
 
J

Jukka K. Korpela

Mark Parnell said:
Assuming you have a decent knowledge of HTML, this is probably a good
place to start:
http://w3.org/TR/xhtml1/#diffs

Just beware that
a) not all items listed there are differences between HTML 4 and XHTML
(item 4.1 is not a difference, and item 4.7 is incorrect as formulated
- it does not apply to attributes with CDATA values)
b) it does not contain all the differences
(e.g., the name attribute was removed from XHTML 1.0, by the DTD,
despite the prose text; I'm afraid nobody really cared about
collecting all the actual differences)
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,017
Latest member
GreenAcreCBDGummiesReview

Latest Threads

Top