473,795 Members | 2,861 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 11193
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
2642
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
6718
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
7372
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
9522
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
10448
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...
1
10167
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
10003
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
9046
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...
0
6784
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
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
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.