AllExperts > DHTML 
Search      
DHTML
Volunteer
Answers to thousands of questions
 Home · More DHTML Questions · Answer Library  · Encyclopedia ·
More DHTML Answers
Question Library

Ask a question about DHTML
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Andrew Hoffman
Expertise
I can field just about any question within this topic ranging from JavaScript to CSS, the two ingredients of DHTML. I`m very interested in the W3C and its validation rules for HTML, XHTML, and CSS, and enjoy answering questions of this type as well. I detest sleep and respond at all hours of the day or night.


Experience
Experience in the area
I've been working with DHTML and CSS for 7 years now and build/maintain websites of my own that implement DHTML navigation.

What I'm doing now
My contract with Microsoft has ended and I am working for myself once again. Please contact me for any front-end work at antibland@gmail.com

 
   

You are here:  Experts > Computing/Technology > HTML/XML > DHTML > link code

DHTML - link code


Expert: Andrew Hoffman - 8/25/2004

Question
I put in the space, but it still didn't work.



-------------------------
Followup To
Question -
I am using the code <a href="http://www.address.com"target="_blank">text</a> but when I view my page, it is not working.  Is this wrong? Is there another code I can use?

I have windows XP and my site is on tripod.

Thank you
Answer -
Hi,

If this is the exact same code you used in your page, you need a space between the last quote in the href tag and the word 'target'.

You have this:

<a href="http://www.address.com"target="_blank">text</a>

You need this:

<a href="http://www.address.com" target="_blank">text</a>

Notice that extra space I added?  That's most likely the problem.

Best,

Andrew  

Answer
Hello,

Here is a complete document that I successfully tested.  Copy, paste, and try for yourself.



<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<a href="http://www.google.com" target="_blank">google</a>
<a href="http://www.walmart.com" target="_blank">walmart</a>
</body>
</html>


Hope this helps,

Andrew

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.