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.

Slides:



Advertisements
Similar presentations
Tutorial 6 Creating a Web Form
Advertisements

Chapter 6 Basic forms 1. Forms and query string 2 form : a group of user input (UI) controls that accepts information from the user and sends the information.
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.
Tutorial 6 Working with Web Forms
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
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
CIS 1310 – HTML & CSS 9 Forms. CIS 1310 – HTML & CSS Learning Outcomes  Describe Common Uses of Forms on Web Pages  Create Forms on Web Pages  Associate.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
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.
Tables and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
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.
Forms Collecting Data CSS Class 5. Forms Create a form Add text box Add labels Add check boxes and radio buttons Build a drop-down list Group drop-down.
Copyright © Terry Felke-Morris HTML5: TEXT BOX Accepts text information in address format Common Attributes: ◦ type=“ ” ◦ name ◦ id ◦
SYST Web Technologies SYST Web Technologies XHTML Forms.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
+ 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.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
HTML Forms.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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.
expanded by J. Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
Tutorial 6 Creating a Web Form
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.
Tutorial 6 Working with Web Forms
How to Write Web Forms By Mimi Opkins.
Web Development & Design Foundations with HTML5 8th Edition
Objectives Design a form Create a form Create text fields
Web Development & Design Foundations with HTML5 8th Edition
Designing Forms Lesson 10.
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
Basics of Web Design Chapter 10 Form Basics Key Concepts
Lesson 6: Web Forms.
Presentation transcript:

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 elements 3.Associate form controls and groups using label, fieldset, and legend elements 4.Use CSS to style a form 5.Describe the features and common uses of server-side processing 6.Invoke server-side processing to handle form data 7.Configure new HTML5 form controls and attributes

 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…

1. The web page 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. 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.

 tag  Contains the form elements on a web page  Container tag  tag  Configures a variety of form elements including text boxes, radio buttons, check boxes, and buttons  Stand alone tag  tag  Configures a scrolling text box  Container tag  tag  Configures a select box (drop down list)  Container tag  tag  Configures an option in the select box  Container tag

 Container Tag  The form element attributes:  action o Specifies the server-side program or script that will process your form data  method o get – default value, form data passed in URL o post – more secure, form data passed in HTTP Entity Body  name o Identifies the form  id o Identifies the form

 Accepts text information  Common Attributes:  type=“text”  name  id  size  maxlength  value  required (HTML5)  placeholder (HTML5)

 Accepts text information that needs to be hidden as it is entered  Common Attributes:  type=“password”  name  id  size  maxlength  value  required (HTML5)  placeholder (HTML5)

 Allows the user to select one or more of a group of predetermined items  Common Attributes:  type=“checkbox”  name  id  checked  value

 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  Common Attributes:  type=“radio”  name  id  checked  value

 Configures a scrolling text box  Common Attributes:  name  id  cols  rows

 Configures a select list (along with 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.  Common Attributes: ◦ name ◦ id ◦ size ◦ multiple

 Configures the options in a Select List  Attributes:  value  selected

 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

 Resets the form fields to their initial values  Attributes:  type=“reset”  name  id  value

 This form control is not displayed on the Web page.  Hidden form fields  Can be accessed by both client-side and server-side scripting  Common Attributes:  type=“hidden”  name  id  value

 Associates a text label with a form control  Two Different Formats: Or

 The Fieldset Element  Container tag  Creates a visual group of form controls on a web page  The Legend Element  Container tag  Creates a text label within the fieldset Customer Information Name:

form { background-color:#eaeaea; font-family: Arial, sans-serif; width: 350px; padding: 10px;} label { float: left; clear: left; display: block; width: 100px; text-align: right; padding-right: 10px; margin-top: 10px; } input, textarea { margin-top: 10px; display: block;} input[type= "submit"] { margin-left: 110px; }

Your web browser requests web pages and their related files from a web server. The web server locates the files and sends them to your web browser. The web browser then renders the returned files and displays the requested web pages for you to use.

 One of many technologies in which a server-side script is embedded within a web page document saved with a file extension such as: .php (PHP) .cfm (Adobe ColdFusion) .jsp (Sun JavaServer Pages) .aspx (ASP.Net).  Uses direct execution — the script is run either by the web server itself or by an extension module to the web server.

 Accepts text information in address format  Common Attributes:  type=“ ”  name  id  size  maxlength  value  placeholder  required 23

 Accepts text information in URL format  Common Attributes:  type=“url”  name  id  size  maxlength  value  placeholder  required

 Accepts text information in telephone number format  Common Attributes:  type=“tel”  name  id  size  maxlength  value  placeholder  required

 Accepts search terms  Common Attributes:  type=“search”  name  id  size  maxlength  value  placeholder  required

Favorite Color:

Choose a number between 1 and 100: Low High

Choose a number between 1 and 10: <input type="number" name="myChoice" id="myChoice" min="1" max="10">

Choose a Date

Choose a color:

 The form display and functioning varies with browser support. 32

 This chapter introduced the use of forms on web pages.  You learned about how to configure form elements and provide for accessibility.  You learned how to configure a form to access server-side processing.  You also learned about new HTML5 form controls and attributes.