Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.

Slides:



Advertisements
Similar presentations
>> Introduction to HTML: Forms. Introduction to HTML 5 Important HTML Tags HTML tags and attributes Images Hyperlinks Lists –{ordered | unordered | definition}
Advertisements

Lecture 14 HTML Forms CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
Technologies for web publishing Ing. Václav Freylich Lecture 4.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
Forms Review. 2 Using Forms tag  Contains the form elements on a web page  Container tag tag  Configures a variety of form elements including text.
Forms Describe common uses of forms on web pages
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
4-Sep-15 HTML Forms Mrs. Goins Web Design Class. Parts of a Web Form A Form is an area that can contain Form Control/Elements. Each piece of information.
Brief Overview of Web Forms L. G. Piper Bunker Hill Community College 23 March 2011.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
Forms and Form Controls Chapter What is a Form?
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Forms. Today’s Lecture We will try to understand the utility of forms on Web pages We will find out about the various components that are used in.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in HTML.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
1 Review of Form Elements. 2 The tag Used in between tags.  Form elements(text control, buttons, etc.. ) goes here. OR  Form elements(text control,
HTML Forms a form is a container for input elements on a web page input elements contain data that is sent to the web server for processing.
SYST Web Technologies SYST Web Technologies XHTML Forms.
+ FORMS HTML forms are used to pass data to a server. begins and ends a form Forms are made up of input elements Every input element has a name and value.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
Starting BBEdit or Notepad and Opening the HTML File Start BBEdit or Notepad Select Open from the File Menu Open survey1.htm from the Public Folder.
Project 6 Creating Forms on a Web Page. Objectives Define terms related to forms Describe the different form controls and their uses Use the tag Create.
Netprog CGI and Forms1 CGI and Forms A detailed look at HTML forms.
HTML Creating Forms on a Web Page. 2 Objectives  Discuss the process of creating a form  Distinguish between data input controls and text input controls.
Week 10: HTML Forms HNDIT11062 – Web Development.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
Creating Forms on a Web Page. 2 Introduction  Forms allow Web developers to collect visitor feedback  Forms create an environment that invites people.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Web Forms. Web Forms: A form allows our web visitors to submit information to us. Some examples uses for forms are to let the web user contact us, fill.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
Lesson 5 Introduction to HTML Forms. Lesson 5 Forms A form is an area that can contain form elements. Form elements are elements that allow the user to.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
How to Write Web Forms By Mimi Opkins.
Forms Web Design Ms. Olifer.
Designing Forms Lesson 10.
1.5 FORMS.
Creating Form Elements
Creating Form Elements
Web Development & Design Foundations with H T M L 5
Forms Data Entry and Capture
FORM OBJECT When creating an interactive web site for the Internet it is necessary to capture user input and process this input. Based on the result of.
Forms, cont’d.
Web Development & Design Foundations with H T M L 5
Creating Forms on a Web Page
Basics of Web Design Chapter 10 Form Basics Key Concepts
Lesson 6: Web Forms.
Presentation transcript:

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris

OVERVIEW OF 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… 2

Copyright © Terry Felke-Morris OVERVIEW OF FORMS (2)  Form  An HTML element that contains and organizes  form controls such as text boxes, check boxes, and buttons that can accept information from website visitors. 3

Copyright © Terry Felke-Morris TWO COMPONENTS OF USING FORMS 1. The HTML form (INF286) -- the web page user interface and 2. The server-side processing (CSC301) Server-side processing works with the form data and sends , writes to a text file, updates a database, or performs some other type of processing on the server. 4

Copyright © Terry Felke-Morris HTML USING FORMS   Contains the form elements on a web page  Container tag   Configures a variety of form elements including text boxes, radio buttons, check boxes, and buttons  Stand alone tag   Configures a scrolling text box  Container tag   Configures a select box (drop down list)  Container tag   Configures an option in the select box  Container tag 5

Copyright © Terry Felke-Morris SAMPLE FORM HTML 6

Copyright © Terry Felke-Morris HTML FORM ELEMENT The form element 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 7

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 9.1  Chapter9/form1.html 8

Copyright © Terry Felke-Morris INPUT TEXT BOX Accepts text information Attributes: ◦ type=“text” ◦ name ◦ id ◦ size ◦ maxlength ◦ value 9

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 9.1  Chapter9/form1.html 10

Copyright © Terry Felke-Morris TEXTAREA SCROLLING TEXT BOX   Configures a scrolling text box  Attributes:  name  id  cols  rows 11

Copyright © Terry Felke-Morris INPUT SUBMIT BUTTON   Submits the form information  When clicked:  Triggers the action method on the tag  Sends the form data (the name=value pair for each form element) to the web server.  Attributes:  type=“submit”  name  id  value 12

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 9.2  Chapter9/form2.html 13

Copyright © Terry Felke-Morris INPUT RESET BUTTON   Resets the form fields to their initial values  Attributes:  type=“reset”  name  id  value 14

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 15

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 9.2  Chapter9/form2.html 16

Copyright © Terry Felke-Morris PRIME PROPERTIES CONTACT  Prime/Chapter9/contact.html 17

Copyright © Terry Felke-Morris INPUT PASSWORD BOX Accepts text information that needs to be hidden as it is entered Attributes: ◦ type=“password” ◦ name ◦ id ◦ size ◦ maxlength ◦ value 18

Copyright © Terry Felke-Morris EXAMPLE  Chapter9/login.html 19

Copyright © Terry Felke-Morris INPUT CHECK BOX Allows the user to select one or more of a group of predetermined items Attributes: ◦ type=“checkbox” ◦ name ◦ id ◦ checked ◦ value 1

Copyright © Terry Felke-Morris EXAMPLE  Chapter9/info.html 21

Copyright © Terry Felke-Morris 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 22

Copyright © Terry Felke-Morris EXAMPLE  Chapter9/info.html 23

Copyright © Terry Felke-Morris 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 24

Copyright © Terry Felke-Morris EXAMPLE  Chapter9/login2.html 25

Copyright © Terry Felke-Morris SELECT LIST Configures a select list (along with option elements) 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 26

Copyright © Terry Felke-Morris OPTIONS IN A SELECT LIST   Configures the options in a Select List  Attributes:  value  selected 27

Copyright © Terry Felke-Morris EXAMPLE  Chapter9/state.html 28