Me, Myself and Mayvelous
3 Mar
Do you know that target=”_blank” (Open page in new window) is not a valid xhtml tag? Well you probaby do but I didn’t till now.
I kinda knew it’s invalid but I thought it’s valid for Xhtml transitional and version 1.0 only but not for strict…something like that I thought. Well I was absolutely wrong. It’s a html tag and totally invalid for xhtml whether your xhtml is transitional or strict or frame. Just not gonna work(it works) validate right.
So I asked one of my colleagues and he pointed me to some script he used. I looked at it, thought about it and knew it’s opening new window or pop up window (Douh!). But I’m confused which tag exactly is the replacement of target=”_blank” tag. I got sinking feeling that I might be looking at the very solution right under my nose and don’t know about it. It’s kinda embarressing to ask him again for straight answer so what to do…google is my best friend. Always to google before asking stupid questions. So I googled and there is it, so simple and so stupid I was. hehe.
So the answer is to replace it with rel=”external”
Check these articles for more short explanation and a nice script:
target=”_blank” XHTML 1.0 Strict Conversion
New-Window Links in a Standards-Compliant World
This is probably a usless post but who cares!
Anyway I’m compiling a longer, useful post and this one is posted as a breaking news.