With reference of previous chapter you may have known about CANVAS Element now. In this chapter we will learn about theCOMMAND Element. This Element is not supported in any browsers yet.
<command> …. </command>
COMMAND Element is basically used for commanding code of HTML5. As if we want to save a file, open a file or anything else that shows the command function, will be prompted with COMMAND Element. It can be used for radio buttons, checkboxes and command buttons to invoke the particular function. The COMMAND Element is not supported by any of the browsers yet. This Element is still under development. The COMMAND Element can be used inside the MENU Element or outside anywhere in the BODY Element.
Here is the Syntax for COMMAND Element
Supported Browser
1
|
< command type = "command" label = "click" onclick = "click()" >Click Me</ command > |
Below is complete syntax along with example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!DOCTYPE html> < html >         < head >          < title >Title name will go here</ title >          < script type = "text/javascript" >             function click()                 {                 alert("You have click me");                 }         </ script >             </ head >         < body >         < command type = "command" label = "click" onclick = "click()" >         Click Me         </ command >             </ body >     </ html > |