Computer Applications
Write the tags to define the following :
(i) A text box
(ii) A text area
(iii) A radio button
(iv) A check box
(v) A Password box
(vi) A pop up box
(vii) Submit button
(viii) A Label
Answer
(i) A text box
<INPUT TYPE = "TEXT" NAME = "NAME" />
(ii) A text area
<TEXTAREA NAME = "COMMENTS" ROWS = "5" COLS = "50">
Default Text
</TEXTAREA>
(iii) A radio button
<INPUT TYPE = "RADIO" NAME = "STREAM" VALUE = "Science" /> Science
(iv) A check box
<INPUT TYPE = "CHECKBOX" NAME = "S1" VALUE = "ENGLISH" /> English
(v) A Password box
<INPUT TYPE = "PASSWORD" NAME = "PASSWD" />
(vi) A pop up box
<SELECT NAME = "COLOUR">
<OPTION VALUE = "Red"> Red </OPTION>
<OPTION VALUE = "Blue"> Blue</OPTION>
<OPTION VALUE = "Green"> Green</OPTION>
</SELECT>
(vii) Submit button
<INPUT TYPE = "SUBMIT" NAME = "SUBMIT" VALUE = "SUBMIT" />
(viii) A Label
<LABEL FOR = "S1">Science</LABEL>
<INPUT TYPE = "RADIO" ID = "S1" NAME = "STREAM" VALUE = "Science">
Related Questions
What do you understand by controls in forms ?
Name different control types supported by HTML forms.
Write HTML code to produce following controls :
Grade : A B C Subjects : English Maths Computers Accounts Economics Business Studies
Write HTML code to produce these controls :
(i) a text box
(ii) a text area with 10 rows and 30 columns
(iii) A password text box
(iv) A pop up box to choose class from it.