SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Destaque (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"?
 

Semelhante a 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
 

Semelhante a 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
 

Mais de 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
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

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