I'd like to add to the msg below (which was eaten
by a 'no subject' filter first time round) that
attribute values only _must_ be quoted with certain DOCTYPES.

additionally the values can be quoted with single
quotes, I'm 80% sure.

I do know that using double quotes on attribute values
in practice never causes a problem (I'm sure I read up on it
years ago, can't remember the specifics :-S).

additionally ALWAYS (depending on your situation this could be taken
on per client/system/project basis) using either single OR double (not mixed!)
for html attributes (the same goes for javascript or css, with
regard to quotes) has a benefit when you spend lots of time
writing things that generate [dynamic] html/js/css - the benefit
being less 'mis-quote' bugs.

rgds,
Jochem

-------- Original Message --------
Subject: Re: [css-d] (no subject)
Date: Sat, 18 Feb 2006 13:15:21 +0100
From: Jochem Maas <[EMAIL PROTECTED]>
To: Maxwell Balmain <[EMAIL PROTECTED]>
CC: [email protected]
References: <[EMAIL PROTECTED]>

Maxwell Balmain wrote:
> Hi All,
> 
> Quick question: I am converting some pages to to xhtml "strict"  &  
> CSS. What is the correct way to get links to open in a fresh page? I  
> guess the "target= _blank" function will not validate.

'target' is an attribute of an anchor tag; you can still use it
though all attribute values should be quoted i.e.:

<a href="#test" target="_blank">click</a>

not strictly anything to do with CSS (I trying to think
if it's possible to define that certain [classes of] link
should open in a new window using CSS - but I can't)

> 
> Thanks,
> 
> Max
> 
> 
> 
> Maxwell Balmain
> [EMAIL PROTECTED]
> 
> 
> 
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to