View Full Version : Targeting links in XHTML Strict


Forgotten
07-25-2005, 10:54 AM
It there a way to target links to a new window using CSS or something in Strict XHTML?

Sheila
07-25-2005, 11:01 AM
I found this: http://www.martiansoftware.com/articles/xhtmltargetting.html ....not sure if that is what you are after.

Forgotten
07-25-2005, 11:02 AM
I'm not sure, I don't think so but thanx anyway.

oldcrazylegs
07-25-2005, 06:06 PM
The target attribute was deprecated in XHTML 1.0 Strict. You will have to use a Transitional DTD to target a link.

Forgotten
07-25-2005, 09:29 PM
Thank you, I looked on w3 schools but they didn't seam to have anything about links so I couldn't be sure. :D

oldcrazylegs
07-25-2005, 10:15 PM
If I want most of my links to open in a new browser window i use the following.

<base target="_blank">

Then put target="_self" in the few links i want to open in the current window etc. This method makes your file size a little smaller.