Re: [PHP] target question

[email protected] (Stuart Dallas)
Newsgroups php.general
Message-ID <[email protected]>
On 25 Mar 2013, at 16:35, "Ford, Mike" <[email protected]> wrote:

>> -----Original Message-----
>> From: Paul M Foster [mailto:[email protected]]
>> Sent: 25 March 2013 16:09
>> 
>> This behavior of the browser actually conforms to the standard as
>> far as
>> I know. The "target" attribute is attached only to the <a> tag,
>> according to w3schools.com
> 
> Actually, the W3C HTML 4.01 Recommendation says:
> 
>    target = frame-target [CI]
> 
>    This attribute specifies the name of a frame where a document
>    is to be opened.
> 
>    By assigning a name to a frame via the name attribute, authors
>    can refer to it as the "target" of links defined by other
>    elements. The target attribute may be set for elements that
>    create links (A, LINK), image maps (AREA), and forms (FORM).
> 
> In the current HTML5 draft, target is explicitly a permitted
> attribute of the form tag -- although I believe it was originally
> marked as deprecated.

Indeed. In fact w3schools.com is known to be a very unreliable source of information these days. My advice would be to avoid it at all costs!

http://w3fools.com/

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.