?
Solved

in internet explorer 6 the attribute '</a is not permited for the img tag

Posted on 2011-10-20
9
Medium Priority
?
314 Views
Last Modified: 2012-05-12
I have created a redirect page and wanted to add a clickable image

but I'm getting this error:
in internet explorer 6 the attribute '</a is not permited for the img tag

I can't put an image inside a simple href?
0
Comment
Question by:sullisnyc44
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 16

Accepted Solution

by:
sjklein42 earned 800 total points
ID: 37004083
Sure you can.

<a href="targetPage.html"><img src="myimage.jpg"></a>

Open in new window

0
 
LVL 9

Assisted Solution

by:keyu
keyu earned 800 total points
ID: 37005570
its because you might have not close the image tag you must end it with />

<img src="dffdgdfgf.jpg" />

if still this not helps

<img src="dffdgdfgf.jpg" onclick="document.location.href='http://yourpage.html"  />

Hope this helps,
0
 

Author Comment

by:sullisnyc44
ID: 37009071
this works but I still get that error in my editor (sharepoint designer)

<html>

<head>
<meta http-equiv="refresh" content="5;url=http://www.mydomain.com/">
</head>
<body><a href="http://www.mydomain.com/"><img src="Rdrct.jpg" border="0" align="left"
</a>
</body>
</html>

Open in new window

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Assisted Solution

by:haloexpertsexchange
haloexpertsexchange earned 400 total points
ID: 37009124
it because you never closed your image tag
<html>

<head>
<meta http-equiv="refresh" content="5;url=http://www.mydomain.com/">
</head>
<body><a href="http://www.mydomain.com/"><img src="Rdrct.jpg" border="0" align="left"<--need /> here
</a>
</body>
</html>
0
 
LVL 16

Assisted Solution

by:sjklein42
sjklein42 earned 800 total points
ID: 37009309
You have no closing angle bracket on the <img> tag.

You do NOT need a slash before the closing angle bracket.  It is optional.
0
 
LVL 9

Assisted Solution

by:keyu
keyu earned 800 total points
ID: 37022929
hi,

Either close image tag with />  or try below method.

<img src="dffdgdfgf.jpg" onclick="document.location.href='http://yourpage.html"  />


Thanks,
0
 

Author Comment

by:sullisnyc44
ID: 37149522
I've requested that this question be closed as follows:

Accepted answer: 0 points for sullisnyc44's comment http:/Q_27408003.html#37009071

for the following reason:

was a sharepoint designer thang
0
 

Author Comment

by:sullisnyc44
ID: 37149523
cuz
0
 

Author Closing Comment

by:sullisnyc44
ID: 37149524
it was the solution
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question