Board index » html » XHTML, and target

XHTML, and target

2003-09-27 01:07:00 AM
Hi,
I'm trying to make a website valid XHTML, and the w3
validator finds only one error, in my links :
there is no attribute "target".
<a href="
external-website.net" target="_blank">
^
It seems like "target" is not allowed in XHTML, but [how]
can I make a link open in a new tab ?
And why does it point the last letter of the link, if the
problem is the target attribute ?
Thanks :-)
--
SeeSchlo?- gpu.sourceforge.net
-
 

Re:XHTML, and target

SeeSchloss <adresse-ng@seeschloss.net>wrote:
Quote
I'm trying to make a website valid XHTML, and the w3
validator finds only one error, in my links :

there is no attribute "target".
<a href="external-website.net" target="_blank">
^

It seems like "target" is not allowed in XHTML, but [how]
can I make a link open in a new tab ?
Right click on the link and select open in new tab from the context
menu.
In other words, let your visitors decide whether they want the link to
open in the same page, a new page, a new tab, etc.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net><steve.pugh.net/>
-

Re:XHTML, and target

"Steve Pugh" a utilis?son clavier pour écrire :
Quote
SeeSchloss <adresse-ng@seeschloss.net>wrote:

Quote
I'm trying to make a website valid XHTML, and the w3
validator finds only one error, in my links :

there is no attribute "target".
<a href="external-website.net" target="_blank">
^

It seems like "target" is not allowed in XHTML, but [how]
can I make a link open in a new tab ?

Right click on the link and select open in new tab from the
context menu.

In other words, let your visitors decide whether they want the
link to open in the same page, a new page, a new tab, etc.
I know, but since some people do not know how to do this,
I'd have prefered the default action to be "open in a new
window" for external links.
By the way, I wanted to say "in a new window" and not tab.
--
SeeSchlo?- gpu.sourceforge.net
-

Re:XHTML, and target

SeeSchloss <adresse-ng@seeschloss.net>wrote:
Quote
"Steve Pugh" a utilis?son clavier pour écrire :
Quote
SeeSchloss <adresse-ng@seeschloss.net>wrote:

>I'm trying to make a website valid XHTML, and the w3
>validator finds only one error, in my links :
>
>there is no attribute "target".
><a href="external-website.net" target="_blank">
>^
>
>It seems like "target" is not allowed in XHTML, but [how]
>can I make a link open in a new tab ?

Right click on the link and select open in new tab from the
context menu.

In other words, let your visitors decide whether they want the
link to open in the same page, a new page, a new tab, etc.

I know, but since some people do not know how to do this,
I'd have prefered the default action to be "open in a new
window" for external links.
Thus taking the element of choice away from all users.
You have three options if you insist on forcing your choices onto all
the visitors to your site:
1. Use a Transitional DTD and target.
2. Use JavaScript.
3. Stop worrying about validation.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net><steve.pugh.net/>
-

Re:XHTML, and target

"Steve Pugh" a formul?la demande :
Quote
SeeSchloss <adresse-ng@seeschloss.net>wrote:

Quote
"Steve Pugh" a utilis?son clavier pour écrire :
>SeeSchloss <adresse-ng@seeschloss.net>wrote:
>
>>I'm trying to make a website valid XHTML, and the w3
>>validator finds only one error, in my links :
>>
>>there is no attribute "target".
>><a href="external-website.net" target="_blank">
>>^
>>
>>It seems like "target" is not allowed in XHTML, but [how]
>>can I make a link open in a new tab ?
>
>Right click on the link and select open in new tab from the
>context menu.
>
>In other words, let your visitors decide whether they want the
>link to open in the same page, a new page, a new tab, etc.

I know, but since some people do not know how to do this,
I'd have prefered the default action to be "open in a new
window" for external links.

Thus taking the element of choice away from all users.

You have three options if you insist on forcing your choices onto
all the visitors to your site:
1. Use a Transitional DTD and target.
2. Use JavaScript.
3. Stop worrying about validation.
I don't want to force them, just make open in new window
the default action.
Oooh... but there is no mean to open it in the same window
then... ok ok, I hadn't realised that. I'll just drop the
target attribute, then.
Thanks.
--
SeeSchlo?- gpu.sourceforge.net
-

Re:XHTML, and target

In article <mesnews.d4aa7d39.54cfa73d.53.1389@seeschloss.net>,
SeeSchloss <adresse-ng@seeschloss.net>wrote:
Quote
In other words, let your visitors decide whether they want the
link to open in the same page, a new page, a new tab, etc.

I know, but since some people do not know how to do this,
I'd have prefered the default action to be "open in a new
window" for external links.
I have recently started doing something many big fellows already did a
long time, but for different reasons; external links are flagged as
such, by a small icon following the link. Visitor knows what the link is
about, so can make an informed decision to follow it in a new window or
not.
I claim that the reason for the trend of automatically opening external
links in a new window is because the visitor would be confused when
presented a different website after following the link. Focus on taking
away that confusion.
--
Kris
kristiaan@xs4all.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
-

Re:XHTML, and target

SeeSchloss wrote:
but [how] can I make a
Quote
link open in a new tab ?
In a new tab? Not possible. Only the user can do that via right-click
menu or user pref setting.
Quote
And why does it point the last letter of the link, if the problem is the
target attribute ?

I think it tries to identify the spot before the error. I think it is a
good system. It certainly works a lot better than MS javscript debugger.
Quote
Thanks :-)


DU
-

Re:XHTML, and target

"DU" a écrit :
Quote
SeeSchloss wrote:
it is allowed in transitional DTD.
But I won't use transitional for a new website, and
certainly not just because of one target attribute, I'll
just remove it.
Quote
but [how] can I make a
link open in a new tab ?

In a new tab? Not possible. Only the user can do that via
right-click menu or user pref setting.
I know I know, <cite>I wanted to say "in a new window" and
not tab</cite>.
--
SeeSchlo?- gpu.sourceforge.net
-

Re:XHTML, and target

"SeeSchloss" <adresse-ng@seeschloss.net>wrote in message
Quote
Hi,

I'm trying to make a website valid XHTML, and the w3
validator finds only one error, in my links :

there is no attribute "target".
<a href="external-website.net" target="_blank">
^

It seems like "target" is not allowed in XHTML, but [how]
can I make a link open in a new tab ?
If the user wants a new window (or tab) they'll choose it themselves.
--
Karl Core
Charles Sweeney says my sig is fine as it is.
-