Bad HTML

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Would you say the following is incorrect HTML :
Code:
<a target="_blank" href="http://www.blbla.com/" title="whatever">
or do you think it doesn't matter which way around you put things?

Obviously it's not the standard way to write it and I wouldn't write it that way around, but does it matter?
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
I didn't think it did matter, just someone who wrote me an email reckoned it was incorrect HTML.
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
JingleBells is correct that you can put attributes in any order you like.

The reason they might have acused you of ‘bad HTML’ is your use of ‘target="_blank"’. Basically, opening new windows outside of the user's control is a bit antisocial, breaks the ‘back’ button and can be confusing. If that is their complaint though, they should probably have been more specific than just saying ‘bad HTML’ :)
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Well I'm removing all target="blank"s from Maljonic's Dreams, but it wasn't that site they were talking about anyway, and it wasn't because of that. They've just made this kacky link script that balks if it gets an anchor tag without the href right after it and they recon it's made that way so it doesn't accept 'bad' HTML. :)
 

Users who are viewing this thread

Top Bottom