is the target attribute depricated in xhtml?

admin

Administrator
Staff member
I keep getting:<br />
<br />
Line 5, column 77: there is no attribute "target" (explain...). <br />
...ory'><h3><a href='http://www.webdeveloper.com/?PageID=1' target='_self'>Home</a></h3></div><div class='n<br />
<br />
while running the xhtml validator at validator.w3.org. Is there a new way of setting the target attribute on a link in xhtml?<!--content-->It doesn't look as if it's deprecated, dont' know why you're getting that, check here for the list of deprecated attributes:<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/html40/index/attributes.html">http://www.w3.org/TR/html40/index/attributes.html</a><!-- m --> <br />
<br />
and for your info, you may want a look here too:<br />
<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/html40/index/elements.html">http://www.w3.org/TR/html40/index/elements.html</a><!-- m --><br />
<br />
Sorry, I couldn't be more help but maybe someone else will!<!--content-->Originally posted by screaming_banjo <br />
It doesn't look as if it's deprecated, dont' know why you're getting that, check here for the list of deprecated attributes:<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/html40/index/attributes.html">http://www.w3.org/TR/html40/index/attributes.html</a><!-- m --> <br />
<br />
and for your info, you may want a look here too:<br />
<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/html40/index/elements.html">http://www.w3.org/TR/html40/index/elements.html</a><!-- m --><br />
<br />
Sorry, I couldn't be more help but maybe someone else will! <br />
<br />
They asked about XHTML and you gave them a link to HTML. I do know that in XHTML 1.1 the target attribute isn't allowed. I debated if this was a good thing, or not for about two minutes and then just learned to live with it.<!--content-->Ooops! Sorry, my mistake!<br />
<br />
Just trying....and failing to help!<!--content-->The target attribute is valid with an XHTML 1.0 Frameset DOCTYPE...<!--content-->thanks pyro<br />
<br />
im using strict doctype, and validating as long as I remove the target attributes from my links. looks like frameset is the only doctype that still supports the target attribute. this seems to me like a bug, what would setting a frame enabled doctype have anything to do with the target attribute?<!--content-->confirmed:<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3schools.com/tags/tag_a.asp">http://www.w3schools.com/tags/tag_a.asp</a><!-- m --><br />
<br />
shows the target attribute is only supported under Transitional and Frameset doctypes? Seems odd to me how adding the target attribute breaks adherence to the strict rendering mode, but they didn't ask me to sit in on the meetings when they were writing the xhtml standard so i guess were stuck without the target attribute.<br />
<br />
must be web enabled refrigerators won't be able to launch new instances of a their browsers.<!--content-->Originally posted by lcscne <br />
what would setting a frame enabled doctype have anything to do with the target attribute? The target attribute is needed with a frameset DOCTYPE as if one is using frames, they need to be able to specify which frame links open in. I'm gussing that this (<!-- m --><a class="postlink" href="http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-avoid-pop-ups">http://www.w3.org/TR/WCAG10/wai-pageaut ... id-pop-ups</a><!-- m -->) is a large part of the reason that the target attribute has been depreciated with XHTML 1.1.<!--content-->
 
Back
Top