3 replies [Last post]
clay
Offline
Regular
Sydney.
Last seen: 17 years 28 weeks ago
Sydney.
Timezone: GMT+10
Joined: 2004-11-09
Posts: 15
Points: 0

Okay, just wondering if there's any way to use this attribute for link in CSS that will abide by the W3C standards.

(Note: if not the attribute than something that will perform the same task.)

clay
Offline
Regular
Sydney.
Last seen: 17 years 28 weeks ago
Sydney.
Timezone: GMT+10
Joined: 2004-11-09
Posts: 15
Points: 0

target="_blank" in CSS...

Okay, I finished the site and decided to not use the target="_blank" attribute, or get into any Javascript. I just made a simple gallery template that will only sidetrack the user for a short moment.

a) Validation is important.
b) ...as is usability!

I've now finished the site and have grabbed a cheap .tk registration to showcase. It's bassboy.tk

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 19 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

target="_blank" in CSS...

Well you answered your own question I guess, sorry was going to reply.
I think the reason that the target attribute has been deprecated is that opening of new windows or not, is an UI issue and not really part of html code and it tends to frighten people when they see new windows appearing on their desktop Smile and should be left under their control.
So accessibility and validation just about cover it.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

jbbrwcky
Offline
newbie
Florida
Last seen: 17 years 25 weeks ago
Florida
Joined: 2004-12-04
Posts: 2
Points: 0

target="_blank" in CSS...

For standards compliancy, and obtaining target for forms:

 <form name="some_name" onsubmit="this.target='yourtarget'">
 </form>

This is standard compliant, passes the W3C validation tests, and works just dandy Smile

Jbbrwcky