Professional Documents
Culture Documents
2nd Q. Week 7
2nd Q. Week 7
COMPUT
SCIENCE
ER
By Jeric C. Calleja
Pre-Test
1. WHAT HTML TAG IS USED TO CREATE
A FORM?
A) <form>
B) <input>
C) <div>
D) <section>
Pre-Test
2. WHICH ATTRIBUTE IS USED TO SPECIFY THE
HTTP METHOD FOR SENDING FORM DATA TO
THE SERVER?
A) method
B) action
C) type
D) submit
Pre-Test
3. WHAT TYPE OF INPUT FIELD IS USED FOR
ENTERING A SINGLE LINE OF TEXT?
A) text
B) password
C) checkbox
D) radio
Pre-Test
4. HOW CAN YOU CREATE A DROP-DOWN LIST
IN HTML?
A) <dropdown>
B) <select>
C) <list>
D) <options>
Pre-Test
5. WHAT ATTRIBUTE IS USED TO SPECIFY THE
MAXIMUM NUMBER OF CHARACTERS
ALLOWED IN A TEXT INPUT FIELD?
A) size
B) maxlength
C) limit
D) maxchars
Objetives
1 • DEFINE THE PURPOSE OF
HTML FORMS IN WEB
DEVELOPMENT.
Feedba
Form
ck Different
<form>....</
form>
The <form> element is a
container for different types of
input elements, such as: text
fields, checkboxes, radio
buttons, submit buttons, etc.
form attributes
action method
form attributes
action values
Indicates where the Filename(path
information will be could be
submitted. included), URL
Ex:
<form action="sample.html"
form attributes
method values
Indicates the method of post, get
submitting the information.
Ex:
<form action="sample.html"
method="post">
method attributes
post value get
The post method is The get method is
used to send data to the used to request data
server to create a new from a specified
resource. resource.
<label>
The <label> element in HTML is used to
associate a text label with a form
element, enhancing accessibility and user
experience.
<label for="username">Username:</label>
The <input>
Element
The HTML <input> element is the most used
form element.
Ex:
<form action="sample.html" method="post">
<input …….>
input attributes
type values
text checkbox date
Ex:
<input type="text" name="username" >
password
This creates a text input field, but the entered
text is masked for security (e.g., for password
entry).
<input type="password" name="password" >
checkbox
This creates a checkbox that users can
check or uncheck.
A) check
B) checkbox
C) input
D) select
Thanks
!