KEMBAR78
10 Creating Forms | PDF
0% found this document useful (0 votes)
15 views3 pages

10 Creating Forms

The document provides an overview of creating forms in HTML, including true or false questions about HTML tags and their attributes. It details the usage of various tags such as <FORM>, <INPUT>, <SELECT>, and <TEXTAREA>, along with their attributes and purposes. Additionally, it explains the different types of buttons available in HTML forms.

Uploaded by

mplmoney602
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

10 Creating Forms

The document provides an overview of creating forms in HTML, including true or false questions about HTML tags and their attributes. It details the usage of various tags such as <FORM>, <INPUT>, <SELECT>, and <TEXTAREA>, along with their attributes and purposes. Additionally, it explains the different types of buttons available in HTML forms.

Uploaded by

mplmoney602
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

10 Creating Forms

A. True or false?
1. The <FORM> tag is used to create forms in HTML. TRUE
2. A Text Box with multiple lines can be created by using the
<SELECT> tag. FALSE
3. The <TEXTAREA> tag is used to enter multiple lines of data in a Text
Box. TRUE
4. Name and Selected are the attributes of the <OPTION> tag. FALSE
5. You cannot hide characters in the Password Box. FALSE

B. Name the HTML tag and all attribute used to create the
following:
1. Text Box
 <input type="text" name="textbox" value="name"
maxlength="50" size="20" >
2. Scrolling list box
 <select name="list box" size="5" multiple>
 <option value="1" selected>Option 1</option>
 <option value="2">Option 2</option></select>
3. Checkbox
 <input type="checkbox" name="checkbox" value="gender ">
4. Radio Button
 <input type="radio" name="button " value="option1">
5. Submit and Reset buttons
 <input type="submit" name="submit button" value="Submit" >
 <input type="reset" name="reset button" value="Reset" >
6. Password
<input type="password" name="password" value="*******"
maxlength="20" size="15">

C. Explain the uses of the following tags:


1. <FORM>
 Creates a form to collect user input (like login, signup).
2. <INPUT>
 Creates different types of input fields (text, password, etc).
3. <SELECT>
 Creates a dropdown menu to choose from options
4. <TEXTAREA>
 Creates a big text box for typing long messages

D. Answer the following questions.


1. What are forms? How do you create forms in HTML?
 Forms are used to collect user input, like names, emails,
passwords, and messages. The <form> tag is used to create a
form. Inside it, we add different input fields like text boxes,
checkboxes, and buttons.

2. What is the purpose of the <OPTION> tag? Explain.


 The <OPTION> tag is used inside the <SELECT> tag to create a
dropdown menu. Each <OPTION> represents a choice. It helps
users select one (or more) options from a list.

3. Give the attribute listing of the <TEXTAREA> tag.


Attributes of <TEXTAREA>:
 name – Identifies the text area.
 rows – Sets the height (number of lines).
 cols – Sets the width (number of characters per line).
 maxlength – Limits the number of characters.

4. What are different types of buttons available in HTML?


Button Type Description
Submit button Sends form data to a server.
Reset Button Clears all form fields.
Button A normal button
Image Button Uses an image as a submit button.

You might also like