[whatwg] command in head
    Thomas Broyer 
    t.broyer at gmail.com
       
    Wed Apr 25 05:55:59 PDT 2007
    
    
  
2007/4/25, Elliotte Harold:
> What does a command element in the head of a document mean? Why might
> one put one there as a metadata element?
I think this is related to the note about defining « the command="" attribute »
You would define a set of commands in the 'head' and then refer to
them from within the 'body', eventually using the same command several
times (but having it defined once only). A concept similar to Actions
in the Java world [1].
[1] http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/Action.html
-- 
Thomas Broyer
    
    
More information about the whatwg
mailing list