Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
xhtml <img "border"> and <a href "target"> attributes
Old 01-12-2007, 04:31 PM xhtml <img "border"> and <a href "target"> attributes
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
trying to keep xhtml 1.0 strict VALID

get errors for <img src="image.gif" border="0">

and <a href="site.com" target="_blank">

what can I use in place of these

want to keep color link visited borders away from linked images
and open some links in another window

how can I while maintaining validated code?
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
 
Register now for full access!
Old 01-12-2007, 04:51 PM Re: xhtml <img "border"> and <a href "target"> attributes
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
oops, my doctype was xhtml strict

a fix to above problem is making it xhtml 1.0 TRANSITIONAL

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 01-12-2007, 08:29 PM Re: xhtml <img "border"> and <a href "target"> attributes
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
border="0" is presentational, not allowed in XHTML Strict. Use CSS to turn off image borders:

img{border: none;}

the target attribute is also forbidden in XHTML Strict, it is deprecated and shouldn't be used, opening new windows is generally frowned upon. If you want to open new windows with XHTML Strict, you're going to have to use some javascript. Better not to do it at all. People get disoriented with you start opening windows in their faces and you take away their ability to use the Back button - which the do know how to use and prefer to do so.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-13-2007, 01:15 AM Re: xhtml <img "border"> and <a href "target"> attributes
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
thanks for the info

did a little reading on it myself at w3c site

they have LOADS of tidbits there


We only use a few "tools" that we offer customers that will open in other windows.
there not pop ups, there's no frowning upon

I think the only people who frown upon target attributes is google in their ad campaigns
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 01-13-2007, 02:09 AM Re: xhtml <img "border"> and <a href "target"> attributes
Skilled Talker

Posts: 96
Name: Tudor Barbu
Trades: 0
Read this article to see how you can get your links to open in a new page, even if the DTD is XHTML Strict.
__________________

Please login or register to view this content. Registration is FREE
Tudor.b is offline
Reply With Quote
View Public Profile Visit Tudor.b's homepage!
 
Old 01-13-2007, 03:02 AM Re: xhtml <img "border"> and <a href "target"> attributes
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
nice tudor.b

just earned some good talkupation
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 01-13-2007, 11:25 AM Re: xhtml <img "border"> and <a href "target"> attributes
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
I think the only people who frown upon target attributes is google in their ad campaigns
Sorry, but you think wrong

There are TONS of usability studies that show that opening new windows is simply not a good practice. *I* don't like it when someone litters their site with links that constantly open new windows. WHY do you need a new window ?? I can use my back button and, as I said, studies show that people DO use their back button - a LOT. I've watched people myself, they use the back button, and I"ve watched as new window confuse people - and not unintelligent people either. I don't personally surf that way, but I'm not an 'ordinary' user either.

The method linked above (good link too !) uses javascript to open a new window. which is what I recommended. Usability manners says that if a link is going to open a new window, TELL THEM on the page that the link will open a new window, that way there are no surprises. I do use new windows on our company intranet because we have tons of documents that people open and refer to while they read the rest of the pages, but every link warns people there will be a new window.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-14-2007, 04:43 PM Re: xhtml <img "border"> and <a href "target"> attributes
Skilled Talker

Posts: 96
Name: Tudor Barbu
Trades: 0
I'm pleased to hear that you liked my article. When I use that aproach, I usually add make the "taget _blank" links different from the others, so the user will know that the link will be opened in a new page. I sometimes use some small icons to achive this, just like the ones in Wikipedia.I didn't do it on it-base because I lacked the time, but I will, soon enough.
__________________

Please login or register to view this content. Registration is FREE

Last edited by Tudor.b; 01-14-2007 at 04:44 PM.. Reason: typos :(
Tudor.b is offline
Reply With Quote
View Public Profile Visit Tudor.b's homepage!
 
Old 01-14-2007, 05:11 PM Re: xhtml <img "border"> and <a href "target"> attributes
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Nice article Tudor. I like your site too.

I agree with LadynRed about opening links in new windows. I think the practice started because people were afraid to have someone leave their site, which amounts to not having much confidence in your own site.

Especially now with tabbed browsing and the ability to open any link we want in a new window it's not necessary to force it on people.

I know I do have a few links which open in a new window on my site, though only a few. I do (at least I think I do) let people know they open a new window
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-14-2007, 06:00 PM Re: xhtml <img "border"> and <a href "target"> attributes
McBone's Avatar
Super Talker

Posts: 149
Name: i have left
Location: i have left
Trades: 0
i think new windows are ok at times, eg: my wife's site has a myspace link on, which you have to sign into etc... which is pointless without new window as are forum links, once you start signing into things and filling forms out people tend not to go back, i dunno!?!?!

(dont shout at me )
McBone is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to xhtml <img "border"> and <a href "target"> attributes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30430 seconds with 12 queries