Search the web
Sign In
New User? Sign Up
91513-s08
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
PS2 - XHTML Strict vs Transitional DTD   Message List  
Reply | Forward Message #13 of 42 |
Re: PS2 - XHTML Strict vs Transitional DTD

You can use strict if you extend the DTD. There are 2 ways to do this,
but one of the ways causes a browser bug. The best way is to use an
external DTD, but you have to make sure your file is interpreted as XML.

Web servers will serve up .html as text/html, but validators want
text/xhtml+xml for a mime type. One way around that I found was to add
the xml tag to the beginning of the document in conjunction with an
external DTD that allows the target attribute. Here are the first 2
lines of my xhtml file:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//golem.ph.utexas.edu//DTD XHTML 1.1 plus
Target 1.0//EN" "http://golem.ph.utexas.edu/DTD/xhtml11-ta
rget.dtd">

You can verify this validates here:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.kareem.net%2Fakad%2Fservices.\
html&charset=
(detect+automatically)&doctype=Inline&group=1




Wed Feb 20, 2008 4:53 am

kayzeezee
Offline Offline
Send Email Send Email

Forward
Message #13 of 42 |
Expand Messages Author Sort by Date

I ran my XHTML through the W3C markup validator (http://validator.w3.org/) and it failed due to the use of the anchor tag's target attribute. I used this...
ungarro
Offline Send Email
Feb 19, 2008
3:48 am

That's fine....
Dr. Martin Schedlbauer
mjs01776
Offline Send Email
Feb 19, 2008
3:08 pm

You can use strict if you extend the DTD. There are 2 ways to do this, but one of the ways causes a browser bug. The best way is to use an external DTD, but...
kayzeezee
Offline Send Email
Feb 20, 2008
4:53 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help