HTML & CSS
Or will browser recognize blank if xhtml 1.0 transitional is being served as text/html?
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
This has nothing to do with XHTML vs HTML. It's about Transitional vs Strict.
XHTML 1.0 Transitional and HTML 4.01 Transitional allow the
XHTML 1.0 Strict and HTML 4.01 Strict do not.
Hi - thank you for the link! That page states: "Transitional versions of the specifications still include it, but by definition, these specs are on the way out."
Can someone tell me how long a xhtml 1.0 transitional site will last? This is the first programming update I'm doing in 11 years (to switch from tables to css) and I hope not to do another one for at least 10 years! Will xhtml transit last that long?
I don't think too many mobile phones can handle opening links in a new window, no matter which method you choose to go with.
The XHTML 1.0 Transitional DTD has been deprecated for nine years already and was never intended to be used when creating new documents.
I still cannot fathom the reason why it exists in the first place. I mean, people claim to use XHTML to be 'future-proof' (which is silly, but never mind). How can one reconcile that with using a Transitional DTD that is already deprecated?
I doubt that there are many XHTML 1.0 Transitional documents that are served as XHTML. That means they are, to all intents and purposes, HTML 4.01 Transitional. And I don't think user agents will cease to support that in a hurry.
It'll work for a very long time. Browsers also still accept font tags and all that. Blink tags work. Marquee works. The align attribute works.
If you use the JS as posted above, those without JS will be able to open the link fine, just not in the new window. They can use the back button to go back. It's like the second most-used button on teh Interwebs.
Is there a special reason you need "target"? 99% of the time, links should be allowed to be links.
I always use target if it's a link to another site. I don't want anyone losing my site in their surfing!
thank you! - Val
Just be aware that the effect may be the opposite. I've seen a large study (done by IBM, I believe) where beginners actually got lost more easily when external links were opened in new windows. They used maximised browsers and didn't notice that a new window appeared on top of the old one. When they then tried the Back button (which every user knows) it didn't work and they couldn't find their way back.
The best way not to lose any visitors, in my opinion, is to have sufficiently good content that people want to stay (or come back).
Don't worry too much, most users know to navigate backwards with the Back Button. Written 10 years ago and still relevant.
It's no mortal sin to have target="blank" on your links, but use it with caaaaare. I have disabled target in my browser because I personally don't like it (I prefer them to open in a new tab) though not everyone knows how to do this, and those with IE6 or some other older browser don't have tabs.
Flash with target="blank" in the Actionscript url trigger my popup blocker, which is annoying. Unfortunately Flash ships with that as a default and Flash books tell people to write that code : (
This topic is now closed. New replies are no longer allowed.