Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Output Element
Output Element

Output is a HTML5 element used to represents result of calculation.

Syntax

<output name="name" for="variables">


You can define one or more than one ouput element in a document.


Example

Output

Practice Task

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


  • Use <form> element to create form
  • Inside form use <input> element to create 2 number field
  • Assign id "x" to field one
  • Assign id "y" to field two
  • In form open tag use onclick event to perform action
  • Do multiplication of x and y when action is performed
  • Inside form create submit button using <input type="submit">

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


Solution

Output