473,668 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TARGET="_top" in strict HTML ?

Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML.
How do I change the line to meet the requirements of strict HTML?

<A HREF="http://www.targetedoma in.com/" TARGET="_top">. ..</A>

Arty

Jul 20 '05 #1
19 11184
Arthur Connor wrote:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML.
How do I change the line to meet the requirements of strict HTML?

<A HREF="http://www.targetedoma in.com/" TARGET="_top">. ..</A>


<a href="http://www.targetedoma in.com/">...</a>
--
Anne van Kesteren
<http://www.annevankest eren.nl/>
Jul 20 '05 #2
Arthur Connor wrote:
Currently I specified a TARGET attribute inside an <A> tag which is not
allowed under strict XHTML. How do I change the line to meet the
requirements of strict HTML?

<A HREF="http://www.targetedoma in.com/" TARGET="_top">. ..</A>


If you are using frames, use a transitional doctype for the documents loaded
into the frames (or resort to unreliable JavaScript).

.... and correct the case of your tags and attributes. <a href, not <A HREF.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #3
Please fix your newsreader to wrap lines in messages you compose to 65
characters or so. Thank you.

Arthur Connor wrote:
Currently I specified a TARGET attribute inside an <A> tag
Why do you do this?
which is not allowed under strict XHTML.
Correct. You could change the dtd to a transitional one, to
accomodate the markup you use.
How do I change the line to meet the requirements of strict HTML?
Remove the target attribute.
<A HREF="http://www.targetedoma in.com/" TARGET="_top">. ..</A>


<A HREF="http://www.targetedoma in.com/">...</A>

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4
Brian wrote:
which is not allowed under strict XHTML.
<A HREF="http://www.targetedoma in.com/">...</A>


Don't confuse him, give him a correct answer at once. Lowercase please.
--
Anne van Kesteren
<http://www.annevankest eren.nl/>
Jul 20 '05 #5
Anne van Kesteren wrote:
Brian wrote:
which is not allowed under strict XHTML.

<A HREF="http://www.targetedoma in.com/">...</A>


Don't confuse him, give him a correct answer at once. Lowercase please.


Missed the xhtml thing. I never touch the stuff, myself.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #6
Quoth the raven named Arthur Connor:
Currently I specified a TARGET attribute inside an <A> tag which is
not allowed under strict XHTML. How do I change the line to meet
the requirements of strict HTML?

<A HREF="http://www.targetedoma in.com/" TARGET="_top">. ..</A>


target is not allowed in XHTML Strict.

http://www.w3schools.com/tags/tag_a.asp

What is the real reason you want to use it?

--
-bts
-This space intentionally left blank.
Jul 20 '05 #7
In article <bt************ *@news.t-online.com> in
comp.infosystem s.www.authoring.html, Arthur Connor wrote:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML.
How do I change the line to meet the requirements of strict HTML?


You remove the target attribute, of course.

If you mean, is there another HTML way to hijack the user's desktop
by opening extra windows, the answer is No. You'd have to go to
Javascript, accepting that quite a lot of us have turned off JS in
response to such antics.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #8
Arthur Connor wrote:
Currently I specified a TARGET attribute inside an <A> tag which is not
allowed under strict XHTML. How do I change the line to meet the
requirements of strict HTML?


You cannot. Strict HTML/XHTML assumes you've already thrown away cruft like
frames. Either lose the frames or go back to Transitional.
--
Jim Dabell

Jul 20 '05 #9

"Arthur Connor" <ar***@redseven .com> wrote in message
news:bt******** *****@news.t-online.com...
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML. How do I change the line to meet the requirements of strict HTML?

<A HREF="http://www.targetedoma in.com/" TARGET="_top">. ..</A>

Arty


Remove the target attribute, or use a loose DTD. If it's a frames site. And
my unsolicited comment is that friends don't let friends use frames.

If it's not a frames site, still remove the target, because (1) new windows
for links are a sign that the web author thinks more highly of his site than
the user's desires and (2) as more and more people block popups, the link
will be killed anyhow. I request users open some links in a new window, but
even if they don't they do have the Back button to come back to my site.
Jul 20 '05 #10

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

Similar topics

2
2634
by: Rob McLennan - ZETLAND | last post by:
Hi, I'm relatively clueless when it comes to correct ASP syntax. I'm testing out a search form for my company's website which is done in ASP. The results are displayed as per the code shown at the very bottom of this message. All I want to do is add a target="top" to the URL which is displayed as a link at the top of the results. I know enough about html to know that it probably goes somewhere into the follwing section: <a href=""" &...
8
6707
by: Dave | last post by:
Hello, I have written a website www.pusspaws.net, my problem is in the gallery section. I have coded ... <object type="text/html" data="galleryobj.html" border="0" width="422" height="325"></object><br> to make a scrolling window (Or is it a frame with an <object> tab ?),
3
868
by: Arthur Connor | last post by:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML. How do I change the line to meet the requirements of strict HTML? <A HREF="http://www.targetedomain.com/" TARGET="_top">...</A> Arty
4
7366
by: socialism001 | last post by:
I have the following code in my cgi script. How would I use target="_top" in the code below so that it would prevent my page from opening in a frame. Thanks, Chris ********************* my $url_1 = 'http://www.company.com/cgi-bin/company.cgi/_address?for_sale=&_act=query&_dbf=retailol.dbf&_tar=_ret_m&';
0
8378
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8890
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
8791
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...
1
8577
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8653
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...
1
6206
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
5677
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();...
1
2786
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2018
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.