SlideShare a Scribd company logo
1 of 41
Building HTML Forms
T.L.E. – ICT 10
What is a Form?
• Allows you to gather feedback from your readers or
visitors and work on the data to provide better
service. The areas on the form are called fields or
text fields or text boxes. You can also see standard
controls such as check buttons or radio buttons and
list boxes.
Forms present a variety of means for users to
key in the said information:
• Textboxes
• Password boxes
• Radio Buttons
• Check Boxes
• Dropdown Menus
• Text Areas
• Submit Buttons
• Reset or Clear Buttons
Two Attributes:
Action Attribute – is responsible for indicating where the
information will be passed whether it is another Web
page or to script.
Method Attribute – is responsible for indicating the way
for sending the information.
 Get Method – sending information appends the data into
the URL. Basically, for retrieving Data.
 Post Method – update or store data.
Creating Form
The container tag <form></form>
is used to create a form.
Attribute Table for <form></form>
Attribute Name Definition Values
Action Indicates where the information will be
submitted.
Ex:
<form action=“process.html”></form>
Filename (path
could be included),
URL
Method Indicates the method of submitting the
information.
Ex:
<form action=“process.html”
Method=“post”></form>
Post, get
Text Box
Radio
Button
Check Box
Drop-
down List
Text Area
Submit &
Clear
Text Box
Radio
Button
Check Box
Drop-
down List
Text Area
Submit & Clear
Input Element
<input>
- is used for making textboxes, password
boxes, check boxes, radio buttons, submit
buttons and reset buttons depending on
the value of the type attribute which can
be text, password, checkbox, radio,
submit and reset respectively.
Attribute table for
<input>
Attribute Name Definition Values
Name Assigns a name to the input field. The name can be used for various
purposes and is required in most circumstances.
Ex: <input name=“textArea1”>
Any text (without spaces)
Type Indicates the type of input field.
Ex: <input name=“textArea1” type=“text”>
Text, password,checkbox,
radio, submit, reset
Size Indicates the size of the input field.
Ex: <input name=“textArea1” type=“text” size=“30”>
Any number
Value Indicates the initial value of the input field. Indicates the label for the
submit and reset buttons.
Ex: <input name=“textArea1” type=“text” value=“Input” text here”>
Any text
Checked Indicates, if by default, the input field (radio button or check box) is none
Creating a Textbox
• Textboxes are single line text input boxes.
Usually, textboxes are used for username input
and other single line texts such as names,
email addresses, etc. and can be made by
keying in text as the value of the type attribute
of <input>.
• Example: <input type=“text”>
Value Attribute- to set an initial text input.
Size Attribute- indicates the length of the
textbox
Creating a Large Text Area
• You can create an input field that can span
several rows and columns to allow the reader
to enter their feedback, requests,
instructions, opinions or any communication.
• Text area are made via container tag
<textarea></textarea>.
Ex: <textarea name=“textarea1”>This is a text
area.</textarea>
Match the following items. Write only
the letter of the correct answer.
___1. Value for the attribute of <input> that defines a password.
___2.Used when there are many choices and one, many or none
can be selected.
___3.Value for the attribute of <input> that defines a reset button.
___4.Value for the attribute of <input> that defines a check box.
___5. Usually used when there are many choices and only one is to
be selected.
___6.Value for the attribute of <input> that defines a radio button.
___7. Value for the attribute of <input> that defines a submit button.
___8. The attributes that indicates the way of submission of information.
___9.A single line text input.
___10. Usually used when there are only a few choices and only one is to
be selected.
A. RESET
B. CLEAR
C. CHECKBOXES
D. DROPDOWN
MENUS
E. PASSWORD
F. METHOD
G. RADIO
BUTTONS
H. CHECKBOX
I. SUBMIT
J. TEXTBOX
K. RADIO
1. E
2. C
3. A
4. H
5. D
6. K
7. I
8. F
9. J
10.G
Match the form instruments icon with
its name. Write letter of the correct
answer.
Creating Radio Buttons
• Radio Buttons provide the users a variety of choices
where only one can be selected. Radio buttons can
be made by keying in radio as the value of the type
attribute of <input>.
• Example: <input type=“radio” name=“gender”>
Creating Check Boxes
Unlike radio buttons, check boxes offer users a
variety of choices where none, only one or many
may be selected. Check boxes can be made by
keying in checkbox as the value of the type
attribute of <input>.
Example: <input type=“checkbox”
name=“checkboxCS”>
Creating Drop-down
Menus
Drop-down lists or drop-down
menus, like radio buttons offer
users a variety of choices where
only one can be selected.
Attribute Table for <select></select>
ATTRIBUTE NAME DEFINITION VALUES
Name
Assigns a name to the dropdown menu. The name can be used for
various purpose and is required in most circumstances.
Ex.:
<select name=”dropdown1”></select>
Any text
(without
spaces)
Size
Indicates the number of visible items (lines).
Ex.:
<select name=”dropdown1 size=”4””></select>
Any number
Attribute Table for <option></option>
Items in dropdown menus are defined by the container tag
<option></option>.
ATTRIBUTE NAME DEFINITION VALUES
value
Assigns a name to the dropdown menu item. The name can be used
for various purpose and is required in most circumstances.
Ex.:
<option value=”qc”>Quezon City</select>
Any text
(without
spaces)
selected
Indicates, if by default, the item is selected.
Ex.:
<option value=”qc” selected>Quezon City</select>
none
Creating a Submit Button
A submit button is usually placed at the end of forms and
when clicked, submits the information input. It can be made
by keying in submit as the value of the type attribute of
<input>.
Example: <input type=“submit”>
The value of the value attribute indicates the label on the
button.
Submit
Submit
Creating Reset Buttons
• Reset or Clear Button is usually placed at
the end of a form. When it is clicked, it
clears all the input information. This can
be done by keying in reset as the value of
the type attribute of <input>.
• Example: <input type=“reset”>
Reset
Reset
• Create the codes for the
following forms.
• 1 whole sheet of paper.
APPLICATION FORM
Barangay
No
1. Insert a graphic within a web page.
2. Create a link within a web page.
3. Identify online form controls/buttons.

More Related Content

What's hot

Entering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML FormsEntering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML Formssathish sak
 
Html tables, forms and audio video
Html tables, forms and audio videoHtml tables, forms and audio video
Html tables, forms and audio videoSaad Sheikh
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms TutorialProdigyView
 
html 5 new form attribute
html 5 new form attributehtml 5 new form attribute
html 5 new form attributePriyanka Rasal
 
New Form Element in HTML5
New Form Element in HTML5New Form Element in HTML5
New Form Element in HTML5Zahra Rezwana
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML FormNosheen Qamar
 
Forms in html5
Forms in html5Forms in html5
Forms in html5hrisi87
 
Forms with html5 (1)
Forms with html5 (1)Forms with html5 (1)
Forms with html5 (1)Anada Kale
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4Mudasir Syed
 
Form using html and java script validation
Form using html and java script validationForm using html and java script validation
Form using html and java script validationMaitree Patel
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html formsCK Yang
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html formsCK Yang
 

What's hot (20)

HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Web design - Working with forms in HTML
Web design - Working with forms in HTMLWeb design - Working with forms in HTML
Web design - Working with forms in HTML
 
Entering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML FormsEntering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML Forms
 
2. HTML forms
2. HTML forms2. HTML forms
2. HTML forms
 
html forms
html formshtml forms
html forms
 
Html tables, forms and audio video
Html tables, forms and audio videoHtml tables, forms and audio video
Html tables, forms and audio video
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms Tutorial
 
html 5 new form attribute
html 5 new form attributehtml 5 new form attribute
html 5 new form attribute
 
Html forms
Html formsHtml forms
Html forms
 
New Form Element in HTML5
New Form Element in HTML5New Form Element in HTML5
New Form Element in HTML5
 
Html forms
Html formsHtml forms
Html forms
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML Form
 
Forms in html5
Forms in html5Forms in html5
Forms in html5
 
Forms with html5 (1)
Forms with html5 (1)Forms with html5 (1)
Forms with html5 (1)
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4
 
Form using html and java script validation
Form using html and java script validationForm using html and java script validation
Form using html and java script validation
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
 
Web Development 5
Web Development 5 Web Development 5
Web Development 5
 
HTML-Forms
HTML-FormsHTML-Forms
HTML-Forms
 

Similar to Building html forms (20)

Html class-04
Html class-04Html class-04
Html class-04
 
HtmlForms- basic HTML forms description.
HtmlForms- basic HTML forms description.HtmlForms- basic HTML forms description.
HtmlForms- basic HTML forms description.
 
Tut 06 (forms)
Tut 06 (forms)Tut 06 (forms)
Tut 06 (forms)
 
11-html-forms.ppt
11-html-forms.ppt11-html-forms.ppt
11-html-forms.ppt
 
Forms.pptx
Forms.pptxForms.pptx
Forms.pptx
 
20-html-forms.ppt
20-html-forms.ppt20-html-forms.ppt
20-html-forms.ppt
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
HTML Form
HTML FormHTML Form
HTML Form
 
Lectures-web
Lectures-webLectures-web
Lectures-web
 
Html,Css and Javascript Forms using different tags
Html,Css and Javascript Forms using different tagsHtml,Css and Javascript Forms using different tags
Html,Css and Javascript Forms using different tags
 
Chapter 9: Forms
Chapter 9: FormsChapter 9: Forms
Chapter 9: Forms
 
Html Forms.ppt
Html Forms.pptHtml Forms.ppt
Html Forms.ppt
 
Chapter 2 class power point
Chapter 2 class power pointChapter 2 class power point
Chapter 2 class power point
 
HTML 5 Simple Tutorial Part 4
HTML 5 Simple Tutorial Part 4HTML 5 Simple Tutorial Part 4
HTML 5 Simple Tutorial Part 4
 
HTML
HTML HTML
HTML
 
Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
HTML Tables and Forms
HTML Tables and Forms HTML Tables and Forms
HTML Tables and Forms
 
HTML Foundations, pt 3: Forms
HTML Foundations, pt 3: FormsHTML Foundations, pt 3: Forms
HTML Foundations, pt 3: Forms
 
HTML - FORMS.pptx
HTML - FORMS.pptxHTML - FORMS.pptx
HTML - FORMS.pptx
 
Tm 1st quarter - 2nd meeting
Tm   1st quarter - 2nd meetingTm   1st quarter - 2nd meeting
Tm 1st quarter - 2nd meeting
 

Recently uploaded

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Building html forms

  • 2. What is a Form? • Allows you to gather feedback from your readers or visitors and work on the data to provide better service. The areas on the form are called fields or text fields or text boxes. You can also see standard controls such as check buttons or radio buttons and list boxes.
  • 3. Forms present a variety of means for users to key in the said information: • Textboxes • Password boxes • Radio Buttons • Check Boxes • Dropdown Menus • Text Areas • Submit Buttons • Reset or Clear Buttons
  • 4. Two Attributes: Action Attribute – is responsible for indicating where the information will be passed whether it is another Web page or to script. Method Attribute – is responsible for indicating the way for sending the information.  Get Method – sending information appends the data into the URL. Basically, for retrieving Data.  Post Method – update or store data.
  • 5. Creating Form The container tag <form></form> is used to create a form.
  • 6. Attribute Table for <form></form> Attribute Name Definition Values Action Indicates where the information will be submitted. Ex: <form action=“process.html”></form> Filename (path could be included), URL Method Indicates the method of submitting the information. Ex: <form action=“process.html” Method=“post”></form> Post, get
  • 7. Text Box Radio Button Check Box Drop- down List Text Area Submit & Clear
  • 8. Text Box Radio Button Check Box Drop- down List Text Area Submit & Clear
  • 9. Input Element <input> - is used for making textboxes, password boxes, check boxes, radio buttons, submit buttons and reset buttons depending on the value of the type attribute which can be text, password, checkbox, radio, submit and reset respectively.
  • 10. Attribute table for <input> Attribute Name Definition Values Name Assigns a name to the input field. The name can be used for various purposes and is required in most circumstances. Ex: <input name=“textArea1”> Any text (without spaces) Type Indicates the type of input field. Ex: <input name=“textArea1” type=“text”> Text, password,checkbox, radio, submit, reset Size Indicates the size of the input field. Ex: <input name=“textArea1” type=“text” size=“30”> Any number Value Indicates the initial value of the input field. Indicates the label for the submit and reset buttons. Ex: <input name=“textArea1” type=“text” value=“Input” text here”> Any text Checked Indicates, if by default, the input field (radio button or check box) is none
  • 11. Creating a Textbox • Textboxes are single line text input boxes. Usually, textboxes are used for username input and other single line texts such as names, email addresses, etc. and can be made by keying in text as the value of the type attribute of <input>. • Example: <input type=“text”> Value Attribute- to set an initial text input. Size Attribute- indicates the length of the textbox
  • 12. Creating a Large Text Area • You can create an input field that can span several rows and columns to allow the reader to enter their feedback, requests, instructions, opinions or any communication. • Text area are made via container tag <textarea></textarea>. Ex: <textarea name=“textarea1”>This is a text area.</textarea>
  • 13.
  • 14.
  • 15. Match the following items. Write only the letter of the correct answer. ___1. Value for the attribute of <input> that defines a password. ___2.Used when there are many choices and one, many or none can be selected. ___3.Value for the attribute of <input> that defines a reset button. ___4.Value for the attribute of <input> that defines a check box. ___5. Usually used when there are many choices and only one is to be selected. ___6.Value for the attribute of <input> that defines a radio button. ___7. Value for the attribute of <input> that defines a submit button. ___8. The attributes that indicates the way of submission of information. ___9.A single line text input. ___10. Usually used when there are only a few choices and only one is to be selected. A. RESET B. CLEAR C. CHECKBOXES D. DROPDOWN MENUS E. PASSWORD F. METHOD G. RADIO BUTTONS H. CHECKBOX I. SUBMIT J. TEXTBOX K. RADIO
  • 16. 1. E 2. C 3. A 4. H 5. D 6. K 7. I 8. F 9. J 10.G
  • 17. Match the form instruments icon with its name. Write letter of the correct answer.
  • 18. Creating Radio Buttons • Radio Buttons provide the users a variety of choices where only one can be selected. Radio buttons can be made by keying in radio as the value of the type attribute of <input>. • Example: <input type=“radio” name=“gender”>
  • 19.
  • 20.
  • 21. Creating Check Boxes Unlike radio buttons, check boxes offer users a variety of choices where none, only one or many may be selected. Check boxes can be made by keying in checkbox as the value of the type attribute of <input>. Example: <input type=“checkbox” name=“checkboxCS”>
  • 22.
  • 23.
  • 24. Creating Drop-down Menus Drop-down lists or drop-down menus, like radio buttons offer users a variety of choices where only one can be selected.
  • 25.
  • 26.
  • 27. Attribute Table for <select></select> ATTRIBUTE NAME DEFINITION VALUES Name Assigns a name to the dropdown menu. The name can be used for various purpose and is required in most circumstances. Ex.: <select name=”dropdown1”></select> Any text (without spaces) Size Indicates the number of visible items (lines). Ex.: <select name=”dropdown1 size=”4””></select> Any number
  • 28. Attribute Table for <option></option> Items in dropdown menus are defined by the container tag <option></option>. ATTRIBUTE NAME DEFINITION VALUES value Assigns a name to the dropdown menu item. The name can be used for various purpose and is required in most circumstances. Ex.: <option value=”qc”>Quezon City</select> Any text (without spaces) selected Indicates, if by default, the item is selected. Ex.: <option value=”qc” selected>Quezon City</select> none
  • 29. Creating a Submit Button A submit button is usually placed at the end of forms and when clicked, submits the information input. It can be made by keying in submit as the value of the type attribute of <input>. Example: <input type=“submit”> The value of the value attribute indicates the label on the button.
  • 32. Creating Reset Buttons • Reset or Clear Button is usually placed at the end of a form. When it is clicked, it clears all the input information. This can be done by keying in reset as the value of the type attribute of <input>. • Example: <input type=“reset”>
  • 33. Reset
  • 34. Reset
  • 35. • Create the codes for the following forms. • 1 whole sheet of paper.
  • 37.
  • 38.
  • 39. No
  • 40.
  • 41. 1. Insert a graphic within a web page. 2. Create a link within a web page. 3. Identify online form controls/buttons.