On Friday, March 25, 2011, Grega Leskovek wrote: > Do I have to use target="_new" - I can not do this - I am working > this for my University seminar and it has to be valid HTML5.
I guess that this is an HTML issue rather than PHP. However: Despite what the W3C validator might claim, I understand that the target attribute of the anchor tag is still valid in HTML5. In any case, HTML5 is a draft standard AFAICT, and so I have to question a university's insistence on adhering to a 'moving target'. http://www.w3.org/TR/2011/WD-html5-20110113/links.html#attr-hyperlink-target should give you some ammunition to demonstrate to your tutor that <a href="somewhere.html" target="_blank"> is valid. Quoting from that W3C document: The target attribute, if present, must be a valid browsing context name or keyword. It gives the name of the browsing context that will be used. User agents use this name when following hyperlinks. They also say: A valid browsing context name or keyword is any string that is either a valid browsing context name or that is an ASCII case-insensitive match for one of: _blank, _self, _parent, or _top. FWIW, the 'target' attribute has been removed from 'link' elements, which many have apparently wrongly taken to mean it's been removed from hyperlinks (i.e. anchor tags). However, <link> and <a> are not the same thing! An example of each: <link rel="stylesheet" type="text/css" href="styles.css" /> <a href="someplace.html" target="_blank">click here</a> HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php