Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Input Button
Input Button

Input Button type is used to create simple button, input is an open tag. Button is used in forms or any other event it is used to submit data or create event and value attribute is used as name for button.

Syntax

<input type=button value=button name />


You can use button any where within an HTML document.


Example


Input is unpair tag and output of button is button like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create a button with name send data
  • Use input type button with value=Send Data

save file with name task.html or task.htm and then open it using any browser and see results.


Solution