Comprog1 - SLK Q3 3
Comprog1 - SLK Q3 3
GRADE
11
Name: _______________________________________________________________________
After this lesson, you will be able to answer the following questions:
• What is an HTML Form?
• What is an Input Element?
• What are the different Input Elements?
LESSON PROPER
• The <form> element is a container for different types of <input> elements, such as:
• text fields
• Checkboxes
• radio buttons
• submit buttons
• etc.…
Example
Page | 1
Page | 2
Other input types
<form>
Username: <br>
<input type="text“>
</form>
<form>
Username: <br>
<input type="text“><br>
Password: <br>
<input type="password“><br>
</form>
<form>
Password: <br>
<input type="password”>
<br>
<input type="submit”>
</form> Page | 3
<form>
Last name: <br>
<input type="text”>
<br>
<input type="submit”>
<input type="reset”>
</form>
<form>
Select your Favorite color:
<input type="color”>
<input type="submit”>
</form>
Page | 4
<form>
Select a file:
<input type="file”>
</br>
<input type="submit”>
</form>
<form>
Quantity (between 1 and 5)
<input type="number”> </br>
<input type="submit”>
</form>
REFERENCES:
https://www.w3schools.com/tags/tag_img.asp
https://w3schools.com/html/forms Page | 5
ASSESMENT A
A <form>
B <input>
C <block>
D <iframe>
D <h1>Username</h1><input type="submit">
Page | 6
5 What element will create a submit button?
Page | 7
9 I will create a webpage that will ask a favorite color. What should I choose?
10 I will create a webpage that will ask a password. What should I choose?
Page | 8
ASSESMENT B
Build you own code based on the given task and situation.
EXAMPLE
• Create a webpage with input type text and password.
EXAMPLE ANSWER
<!DOCTYPE html>
<html>
<body>
<form>
<input type=”text”>
<input type=”password”>
</form>
</body>
</html>
Page | 9
1
• Design a webpage with the following:
• 1 input type password
• 1 input type text
• 1 input type number
• 1 reset button
• 1 submit button
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
Page | 10
________________________________________________________________________________
________________________________________________________________________________
2
• Design a webpage with the following:
• 1 text box for username
• 1 text box for password
• 1 input for file upload
• 1 input for color
• 1 reset button
• 1 submit button
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
Page | 11
________________________________________________________________________________
________________________________________________________________________________