SlideShare a Scribd company logo
1 of 21
Class 21
Finals
• Final Project website is due:
Midnight of Tuesday, 12/7/2010
• Compress the website into a .zip or .rar file and
email it to jilee@lagcc.cuny.edu.
You will get a confirmation email as soon as the
instructor checks that your submission is valid. If you
don’t get a confirmation email within 8 hours of
submission, contact instructor by phone.
718-482-5419
Final Project Requirements
• Website
at least 3 complete HTML pages
navigation to other pages and back (menu)
an external CSS file for styling elements
a link to the Design Rationale Document
a Spry element
a form element
• Design Rationale Document
Goal, target user or audience, deployment and update
plan
Final Presentation
12/8/2010 12/15/2010
Dejesus, Carlos Akhtar, Asma
Hamed, Mutaz Akil, Mohammed
Pena, Stephanie De Jesus, Alba
Westcott, Jessica Galindo, Wolfgang
Hsu, Wei Yu Islam, Muhammad
Toro, Michael Mendoza, Yessica
Campos, Tony Muniz, Walter
Alban, Percy Fatah, Nour
Gonzales, Carla Law, Min
Lowenfield, Jevon Correa-Richterman, Elizabeth
Sgrizzi, Antoinette Bascom, Mark
Wilson, Lisa Campos, Jimmy
Forms
• Forms are used all over the Web to
– Accept information
– Provide interactivity
• Types of forms:
– Search form, Order form, Newsletter sign-up form, Survey
form, Add to Cart form, and so on…
Let’s look at an example! CLICK
Two Components of Using Forms
1. The XHTML form
-- the Web page user interface
and
2. The server-side processing
Server-side processing works with the
form data and sends e-mail, writes to a
text file, updates a database, or
performs some other type of processing
on the server.
6
XHTML Using Forms
• <form> tag
– Contains the form elements on a web page
– Container tag
• <input /> tag
– Configures a variety of form elements including text boxes, radio
buttons, check boxes, and buttons
– Stand alone tag
• <textarea> tag
– Configures a scrolling text box
– Container tag
• <select> tag
– Configures a select box (drop down list)
– Container tag
• <option> tag
– Configures an option in the select box
– Container tag
7
XHTML <form> element
• The form tag attributes:
– action
• Specifies the server-side program or script that
will process your form data
– method
• get – default value,
form data passed in URL
• post – more secure,
form data passed in HTTP Entity Body
– name
• Identifies the form
– id
• Identifies the form
8
XHTML<input /> Text box
• Accepts text information
• Attributes:
– type=“text”
– name
– id
– size
– maxlength
– value
9
XHTML<input /> Password box
• Accepts text information that needs to
be hidden as it is entered
• Attributes:
– type=“password”
– name
– id
– size
– maxlength
– value
10
XHTML<input /> Check box
• Allows the user to select one or more of
a group of predetermined items
• Attributes:
– type=“checkbox”
– name
– id
– checked
– value
11
XHTML<input /> Radio Button
• Allows the user to select exactly one from a group
of predetermined items
• Each radio button in a group is given the same
name and a unique value
• Attributes:
– type=“radio”
– name
– id
– checked
– value
12
XHTML<textarea> Scrolling Text Box
• Configures a scrolling text box
• Attributes:
– name
– id
– cols
– rows
13
XHTML<select> Select List
• Configures a select list (along with <option> tags)
• Also known as: Select Box, Drop-Down List,
Drop-Down Box, and Option Box.
• Allows the user to select one or more items from
a list of predetermined choices.
• Attributes:
– name
– id
– size
– multiple
14
XHTML<option>
Options in a Select List
• Configures the options in a Select List
• Attributes:
– value
– selected
15
XHTML<input /> Submit Button
• Submits the form information
• When clicked:
– Triggers the action method on the <form> tag
– Sends the form data (the name=value pair for each
form element) to the web server.
• Attributes:
– type=“submit”
– name
– id
– value
16
XHTML<input /> Reset Button
• Resets the form fields to their initial
values
• Attributes:
– type=“reset”
– name
– id
– value
17
XHTML<input /> Button
• Offers a flexible user interface
• There is no default action when the button is
clicked
• Usually a JavaScript function is invoked when a
button is clicked
• Attributes:
– type=“button”
– name
– id
– value
18
XHTML<input /> Hidden form data
• This form control is not displayed on the Web page.
• Hidden form fields
– Can be accessed by both client-side and server-side
scripting
– Sometimes used to contain information needed as the
visitor moves from page to page.
• Attributes:
– type=“hidden”
– name
– id
– value
19
Today’s Assignment
Create a Contact page that has:
• text-field
• text-area
• checkbox or radiobox
• list/menu
• Submit button
Demo Task

More Related Content

Viewers also liked (7)

Class 20
Class 20Class 20
Class 20
 
Class22
Class22Class22
Class22
 
jacando for business
jacando for businessjacando for business
jacando for business
 
Class4
Class4Class4
Class4
 
Class11
Class11Class11
Class11
 
Cultural conflict resolution
Cultural conflict resolutionCultural conflict resolution
Cultural conflict resolution
 
Why Embrace "Html5"?
Why Embrace "Html5"?Why Embrace "Html5"?
Why Embrace "Html5"?
 

Similar to Class 21

Chapter 6 Getting Data from the Client (1).pptx
Chapter 6 Getting Data from the Client (1).pptxChapter 6 Getting Data from the Client (1).pptx
Chapter 6 Getting Data from the Client (1).pptx
AhmedKafi7
 
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
Maitree Patel
 

Similar to Class 21 (20)

Html forms
Html formsHtml forms
Html forms
 
Forms Part 1
Forms Part 1Forms Part 1
Forms Part 1
 
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZer
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZerStd 12 Computer Chapter 1 Creating Html Forms Using KompoZer
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZer
 
Chapter 6 Getting Data from the Client (1).pptx
Chapter 6 Getting Data from the Client (1).pptxChapter 6 Getting Data from the Client (1).pptx
Chapter 6 Getting Data from the Client (1).pptx
 
Lesson 15
Lesson 15Lesson 15
Lesson 15
 
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
 
CSS_Forms.pdf
CSS_Forms.pdfCSS_Forms.pdf
CSS_Forms.pdf
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Cmsc 100 (web forms)
Cmsc 100 (web forms)Cmsc 100 (web forms)
Cmsc 100 (web forms)
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML Form
 
Chapter9
Chapter9Chapter9
Chapter9
 
Web forms and html (lect 4)
Web forms and html (lect 4)Web forms and html (lect 4)
Web forms and html (lect 4)
 
Dom
DomDom
Dom
 
Chapter09
Chapter09Chapter09
Chapter09
 
Html forms
Html formsHtml forms
Html forms
 
Getting Information through HTML Forms
Getting Information through HTML FormsGetting Information through HTML Forms
Getting Information through HTML Forms
 
Html4
Html4Html4
Html4
 
Chapter 9: Forms
Chapter 9: FormsChapter 9: Forms
Chapter 9: Forms
 
Computer language - Html forms
Computer language - Html formsComputer language - Html forms
Computer language - Html forms
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup language
 

More from Jiyeon Lee (13)

Class19
Class19Class19
Class19
 
Class18
Class18Class18
Class18
 
Class14
Class14Class14
Class14
 
Class15
Class15Class15
Class15
 
Class 12
Class 12Class 12
Class 12
 
Class13
Class13Class13
Class13
 
Class 10
Class 10Class 10
Class 10
 
Class8
Class8Class8
Class8
 
Class7
Class7Class7
Class7
 
Class6
Class6Class6
Class6
 
Class5
Class5Class5
Class5
 
Class 3
Class 3Class 3
Class 3
 
Class2
Class2Class2
Class2
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Class 21

  • 2. Finals • Final Project website is due: Midnight of Tuesday, 12/7/2010 • Compress the website into a .zip or .rar file and email it to jilee@lagcc.cuny.edu. You will get a confirmation email as soon as the instructor checks that your submission is valid. If you don’t get a confirmation email within 8 hours of submission, contact instructor by phone. 718-482-5419
  • 3. Final Project Requirements • Website at least 3 complete HTML pages navigation to other pages and back (menu) an external CSS file for styling elements a link to the Design Rationale Document a Spry element a form element • Design Rationale Document Goal, target user or audience, deployment and update plan
  • 4. Final Presentation 12/8/2010 12/15/2010 Dejesus, Carlos Akhtar, Asma Hamed, Mutaz Akil, Mohammed Pena, Stephanie De Jesus, Alba Westcott, Jessica Galindo, Wolfgang Hsu, Wei Yu Islam, Muhammad Toro, Michael Mendoza, Yessica Campos, Tony Muniz, Walter Alban, Percy Fatah, Nour Gonzales, Carla Law, Min Lowenfield, Jevon Correa-Richterman, Elizabeth Sgrizzi, Antoinette Bascom, Mark Wilson, Lisa Campos, Jimmy
  • 5. Forms • Forms are used all over the Web to – Accept information – Provide interactivity • Types of forms: – Search form, Order form, Newsletter sign-up form, Survey form, Add to Cart form, and so on… Let’s look at an example! CLICK
  • 6. Two Components of Using Forms 1. The XHTML form -- the Web page user interface and 2. The server-side processing Server-side processing works with the form data and sends e-mail, writes to a text file, updates a database, or performs some other type of processing on the server. 6
  • 7. XHTML Using Forms • <form> tag – Contains the form elements on a web page – Container tag • <input /> tag – Configures a variety of form elements including text boxes, radio buttons, check boxes, and buttons – Stand alone tag • <textarea> tag – Configures a scrolling text box – Container tag • <select> tag – Configures a select box (drop down list) – Container tag • <option> tag – Configures an option in the select box – Container tag 7
  • 8. XHTML <form> element • The form tag attributes: – action • Specifies the server-side program or script that will process your form data – method • get – default value, form data passed in URL • post – more secure, form data passed in HTTP Entity Body – name • Identifies the form – id • Identifies the form 8
  • 9. XHTML<input /> Text box • Accepts text information • Attributes: – type=“text” – name – id – size – maxlength – value 9
  • 10. XHTML<input /> Password box • Accepts text information that needs to be hidden as it is entered • Attributes: – type=“password” – name – id – size – maxlength – value 10
  • 11. XHTML<input /> Check box • Allows the user to select one or more of a group of predetermined items • Attributes: – type=“checkbox” – name – id – checked – value 11
  • 12. XHTML<input /> Radio Button • Allows the user to select exactly one from a group of predetermined items • Each radio button in a group is given the same name and a unique value • Attributes: – type=“radio” – name – id – checked – value 12
  • 13. XHTML<textarea> Scrolling Text Box • Configures a scrolling text box • Attributes: – name – id – cols – rows 13
  • 14. XHTML<select> Select List • Configures a select list (along with <option> tags) • Also known as: Select Box, Drop-Down List, Drop-Down Box, and Option Box. • Allows the user to select one or more items from a list of predetermined choices. • Attributes: – name – id – size – multiple 14
  • 15. XHTML<option> Options in a Select List • Configures the options in a Select List • Attributes: – value – selected 15
  • 16. XHTML<input /> Submit Button • Submits the form information • When clicked: – Triggers the action method on the <form> tag – Sends the form data (the name=value pair for each form element) to the web server. • Attributes: – type=“submit” – name – id – value 16
  • 17. XHTML<input /> Reset Button • Resets the form fields to their initial values • Attributes: – type=“reset” – name – id – value 17
  • 18. XHTML<input /> Button • Offers a flexible user interface • There is no default action when the button is clicked • Usually a JavaScript function is invoked when a button is clicked • Attributes: – type=“button” – name – id – value 18
  • 19. XHTML<input /> Hidden form data • This form control is not displayed on the Web page. • Hidden form fields – Can be accessed by both client-side and server-side scripting – Sometimes used to contain information needed as the visitor moves from page to page. • Attributes: – type=“hidden” – name – id – value 19
  • 20. Today’s Assignment Create a Contact page that has: • text-field • text-area • checkbox or radiobox • list/menu • Submit button