Lesson 5
Lesson 5
FORMS
By: Sir Eugene N. Bayona
classify different form elements using HTML;
create simple electronic form using HTML; and
appreciate the HTML electronic form elements
that help in creating a website.
FORMS
FORM controls
<form>
......
......
</form>
input elements
The HTML <input> element is the most used form element.
An <input> element can be displayed in many ways,
depending on the type attribute
RESULT
password input
The <input type="password"> defines a single-line input
field for text input except that character in a password
field are masked (shown as asterisk or circle
RESULT
date input
RESULT
radio button
The <input type="radio"> defines a radio button.
Radio buttons let a user select ONE of a limited number of choices.
checked attribute can be used to indicate which value (if any) should be
selected when the page loads
RESULT
checkbox
RESULT
drop down list box
The <option> element is used to specify the options that the user
can select from.
RESULT
text area
The <textarea> element is used to create a multi-line text
input.
RESULT
submit button and reset button
The <input type="reset"> defines a reset button which resets all form values to its
initial values.
RESULT
What is input tag?
How to create a single-
line text input field?
What is the difference
between the radio button
and the checkbox?
ITS YOUR TIME
PETA #5