DHTML/link code

Advertisement


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



-------------------------
Followup To
Question -
I am using the code text 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:

text

You need this:

text

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>
google
walmart
</body>
</html>


Hope this helps,

Andrew

DHTML

All Answers


Answers by Expert:


Ask Experts

Volunteer


Andrew Hoffman

Expertise

Ask me about JavaScript, CSS, HTML5/XHTML, or PHP. Chances are I'll be able to help you. I know the economy is in the tank, but if you like my answer, please consider donating a few bucks. It's like tipping your barista, if your barista served fresh code instead of coffee.

Experience

I started doing this when boy bands were still cool.

Education/Credentials
I read a lot of nerdy books to get here.

©2012 About.com, a part of The New York Times Company. All rights reserved.