If you set the target attribute on a element it won't validate at http://validator.w3.org how doe one come around this and still have it validating?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
The target attribute is still part of the HTML 4.01 standard (and works in all browsers), but it is no longer part of XHTML (which you are probably trying to validate for). There is currently no HTML-way to emulate its effect. There is the CSS3 Hyperlink Presentation Module draft however, that would bring back such a possibility via CSS. However it is currently not implemented by any browser. |
||||
|
|
You can't use target in valid XHTML. Here's a way to emulate its effect using valid xhtml with a small snippet of javascript: http://snippets.dzone.com/posts/show/4074 |
|||
|
|
|
|
|||
|
|