Html Label

What is the use of label?


<form name=testform>
<label name=testlabel> My Label </label>
Result :


A form should always have "form" tag. The attribute name may be defined (e.g "name=myform"). However the name will be required only during form action's which we will reqire javascript. So we will see those things in our javascript tutorials.
The type label is just a form a text. The result shows how a label is displayed
Basically forms are used to get the data from the user and use the data.
To validate the data you need the learn javascript. To get the data and use it you need to learn any server side scripting languages like php or jsp or asp... We use php and we will see it in the tutorials (To Be Published Soon).

Ask Questions

Ask Question