473,796 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

target="_blank" with xHTML

Hi

How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?

I will use it with xHTML and CSS ... but the validator say's to me,
that this tag wasn't valid for xHTML! ... Why? Is there no "same
effect"-Tag in xHTML?

Thx for answers!
Jul 20 '05 #1
16 3619
St. Rechsteiner wrote:
Hi

How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?


You don't. Use HTML4.01 if you need _blank.
Matthias

Jul 20 '05 #2
sc****@macprime .ch (St. Rechsteiner) wrote:
target="_blank "
Stop trying to mess with a user's UI.
Tag


Attribute

--
Spartanicus
Jul 20 '05 #3
On Tue, 24 Feb 2004 08:37:55 +0100, Matthias Gutfeldt wrote:
St. Rechsteiner wrote:
How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?


You don't. Use HTML4.01 if you need _blank.


You misspelled "a transitional DOCTYPE". HTH, etc. Or, possibly, you
misspelled "don't".

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Jul 20 '05 #4
In article <89************ **************@ posting.google. com>,
sc****@macprime .ch (St. Rechsteiner) wrote:
How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?
Attribute. It is allowed in XHTML1.0 Transitional. Author that if you
cannot let go of this 'demon from the old world'. Others will undoubtly
state why it is what it is.
I will use it with xHTML and CSS ...
If you 'will', then there is not much sense trying to convert you, sadly.
but the validator say's to me,
that this tag wasn't valid for xHTML! ... Why? Is there no "same
effect"-Tag in xHTML?


There are no effect tags in HTML. They were deprecated when the Flash
standard came out.

--
Kris
<kr*******@xs4a ll.netherlands> (nl)
<http://www.cinnamon.nl/>
Jul 20 '05 #5
sc****@macprime .ch (St. Rechsteiner) wrote:
How i made the same effect in xHTML like the - target="_blank" - Tag
It's an attribute, not a tag.
in HTML 4.01?
The same way you do in HTML 4.01.

XHTML 1.0 and HTML 4.01 are identical - in both of them the target
attribute exists only in the Transitional forms.

So I'm guessing that you're jumping from HTML 4.01 Transitional to
XHTML 1.0 Strict. Any reason why?
I will use it with xHTML and CSS ... but the validator say's to me,
that this tag wasn't valid for xHTML! ... Why?


Same reason that it's not in HTML 4.01 - anything to do with opening
new windows or frames is against the spirit of the Strict versions of
(X)HTML.

So in order of preference:
1. Stop trying to force a new window on your users, if they want a new
window they can open one themselves
2. Use a Transitional DTD instead
3. Use JavaScript

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #6
"St. Rechsteiner" <sc****@macprim e.ch> wrote in message
news:89******** *************** ***@posting.goo gle.com...
Hi

How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?


Why? You wanna create a site that confuses your visitors?

From a usability study by Stanford University - "Users became reliably
confused when links opened new windows"
--

Karl Groves
http://www.karlcore.com
Jul 20 '05 #7
Owen Jacobson wrote:
On Tue, 24 Feb 2004 08:37:55 +0100, Matthias Gutfeldt wrote:

St. Rechsteiner wrote:
How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?


You don't. Use HTML4.01 if you need _blank.

You misspelled "a transitional DOCTYPE". HTH, etc. Or, possibly, you
misspelled "don't".


Err, nope, I didn't misspell anything. I just didn't quite think it through.
Matthias

Jul 20 '05 #8
On Tue, 24 Feb 2004, Spartanicus wrote:
sc****@macprime .ch (St. Rechsteiner) wrote:
target="_blank "


Stop trying to mess with a user's UI.
Tag


Attribute


http://www.flightlab.com/~joe/sgml/faq-not.txt part 5. SCNR.

Jul 20 '05 #9
"Alan J. Flavell" <fl*****@ph.gla .ac.uk> wrote:
>Tag


Attribute


http://www.flightlab.com/~joe/sgml/faq-not.txt part 5. SCNR.


:)

--
Spartanicus
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
7688
by: Sugapablo | last post by:
I admit, I'm terrible creating reg ex's. I'm trying to create a preg_replace that would remove from a <a href> tag that would replace the target attribute regardless of what the value might be. Any ideas? --
12
3320
by: Romain | last post by:
Hi, I've used an excellent way to make target="_blank" links that still validate while using HTML 4.01 Transitional doctypes in the past. I learned the trick from : http://www.sitepoint.com/article/1041 Basically, instead of typing : <a href="yourlink.html" target="_blank" alt="">The link</a>
6
77511
by: Tony Marston | last post by:
The code <a href="..." target="_blank">...</a> will not validate as XHTML STRICT because of the 'target' tag, so how do I achieve the same result by moving it to a CSS file? I cannot find anything which allows me to specify 'target=' on an anchor tag. -- Tony Marston http://www.tonymarston.net
2
2845
by: Matt | last post by:
In the following code, page1.asp is inside the frame of main.html. When the user click submit button in page1.asp, it will submit the form and open a new window called page2.asp. When the user clicks submit button on page2.asp, I expected to open a new window called page3.asp. Unfortunately, it just open page3.asp in the same window as page2.asp, and now page2.asp is gone. However, if I just open page1.asp, and begins from there, it is...
8
3860
by: msnews.microsoft.com | last post by:
I want to redirect the user to a url outside of our website but I want it to preserve our application's window by opening a new window. We have a datagrid that has five hyperlink columns containing links to external sites. The hyperlink columns have the target="_blank" attribute so they preserve the existing window. This works OK except that the NavigateURL's are quite long due to the size of the query string and this makes the page slow. ...
5
3991
by: Jon via DotNetMonster.com | last post by:
<siteMapNode title="share price" description="Link to Netcall on the London Stock Exchange" url="http://www.yahoo.co.uk" role="" target="_blank" /> Hi all I'm trying to open the Yahoo web site in a new window using the above code in my asp.net web.sitemap. I'm expecting the target="_blank" bit to make it do this. but it isnt. Does anyone know why?? Thanks in advance.
0
10465
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10242
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5453
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.