<command> Tag in HTML 5

In this article I am going to explain about command tag in HTML 5
  • 2250


<command> tag in HTML 5 is used to defines a command that the user can invoke. <command> tag in HTML 5 can be used in any where in web page. It can be used in menu or tool bar.

Browser Support by <command> tag

The <command> tag only supports in internet explorer 9 browser.

Lets take an example of <command> tag



    <script type="text/javascript">

        function hello() {

            alert("Hello MCN Solutions");






        <command type="command" label="hello" onclick="hello()">Hello</command>








You may also read more about HTML 5 here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.