Windpuffs said:
Re: the bit about "target = blanK" & "Border = 0", what's the correct way to get it to open in it's own window and not have a border around the link? The Firefox link didn't give this trouble, and it has the same attributes....? (am I whining?)
For the border, you could do:
Code:
<img src="blah.png" alt="Blah" style="border:0" />
Although it's usually better to put style information in the document header, via a stylesheet link or a style tag.
As for the target thing, among standards advocates, it's generally considered bad practice to use techniques that open pages in new windows. A lot of users (including myself) simply don't like not knowing where the window will open up. The target attribute and its functionality was removed in HTML 4.01 strict and beyond. CSS 3 will offer a way to pull off the same effect, but that's a long time coming. Your only real alternative right now, if you want it to validate as XHTML, is to use a JavaScript trick. Do something like this:
Code:
<a href="blah.html" onclick="window.open('blah.html')">Link</a>
window.open() isn't technically a standard, but all of the major graphical web browsers support it. Still, if I were you, I wouldn't add this functionality at all.
Elefekt said:
Nanobot you are correct that XHTML does not have those attributes but in a transitional document this is allowed.
Windpuffs already said in
another thread that he/she was rewriting the site in XHTML, so that's what I assumed we were talking about. And I was right.
