Forum Moderators: open

Message Too Old, No Replies

XHTML Strict and question marks

         

coolant

6:35 am on Aug 29, 2004 (gmt 0)

10+ Year Member



I'm trying to go XHTML 1.1, but I run into one problem. When I try to use php and have?id=1, it freaks out.

Line 61, column 79: an attribute value must be a literal unless it contains only name characters

...d='news_cat'>hot<br /></span><a href=?id=1>Welcome to the site!</a><br /><spa

Any ideas how to make the XHTML 1.1 gods happy?

coolant

6:41 am on Aug 29, 2004 (gmt 0)

10+ Year Member



n/m

figured it out

index.php?id=1 works just fine :)

tedster

7:00 am on Aug 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, coolant. I imagine that tidbit will help someone in the future.

coolant

7:57 am on Aug 29, 2004 (gmt 0)

10+ Year Member



np :D

Purple Martin

6:37 am on Sep 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



XHTML requires that all attribute values must be quoted, therefore you'll need this:

<a href="index.php?id=1">

More info about correct XHTML syntax at the W3Schools site:
[w3schools.com...]