Web Development & Design Foundations with HTML5 8th Edition

Slides:



Advertisements
Similar presentations
Tutorial 6 Creating a Web Form
Advertisements

Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
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.
Using Entities & Creating Forms Jill R. Sommer Institute for Applied Linguistics Kent State University.
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.
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.
Forms and Form Controls Chapter What is a Form?
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
1 HTML References: A HTML Tutorial: /HTMLPrimer.html
Tables and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
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.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
HTML Forms.
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.
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.
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.
1 HTML Forms
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.
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.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
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.
expanded by J. Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
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
Chapter 5 Validating Form Data with JavaScript
How to Write Web Forms By Mimi Opkins.
HTML Forms Pat Morin COMP 2405.
(and available form fields)
HTML IV (Forms) Robin Burke ECT 270.
ITE 115 Creating Web Page Forms
Today - Forms! WD Students produce a basic HTML/XHTML document using forms. Find the group that best matches the part of the project you are going.
ARUSHA TECHNICAL COLLEGE WEB DESIGN(html forms)
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 7th Edition
Designing Forms Lesson 10.
Unit I: Collecting Data with Forms
Web Development & Design Foundations with H T M L 5
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
Forms, cont’d.
CNIT 131 HTML5 - Forms.
Web Development & Design Foundations with H T M L 5
Basics of Web Design Chapter 10 Form Basics Key Concepts
Input Element Form Controls HOP 9.2 Scrolling Text Box
HTML Forms
Presentation transcript:

Web Development & Design Foundations with HTML5 8th Edition Chapter 9 Key Concepts

Select List <select></select> 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

Options in a Select List <option></option> Configures the options in a Select List Attributes: value selected

Input Image Button <input> Submits the form 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=“image” name id src

Input image button <input type=“image” src=“login.gif” alt=“Login Button”>

Button Element <button></button> A container tag When clicked, its function depends on the value of the type attribute. Can contain a combination of text, images, and media Attributes: type="submit", type="reset", type="button“ name id alt value

Button element <button type=“submit”> <img src=“signup.gif” width=“80” height=“28” alt=“Sign up for free newsletter”><br> Sign up for free newsletter </button>

Accessibility & Forms Label Element Fieldset Element Legend Element Tabindex Attribute Accesskey Attribute

Label element <label></label> Associates a text label with a form control Two Different Formats: <label>Email: <input type="text" name=“email" id ="email"></label> Or <label for="email">Email: </label> <input type="text" name="CustEmail" id= "email">

Hands-on practice 9.3 (page 415) chapter9/9.3/form.html For screen readers

Fieldset and Legend Elements The Fieldset Element Container tag Creates a visual group of form elements on a web page The Legend Element Creates a text label within the fieldset <fieldset><legend>Customer Information</legend> <label>Name: <input type="text" name="Name" id="Name“></label> <br><br> <label>Email: <input type="text" name="Email" id="Email"></label> </fieldset>

Hands-on practice 9.4 (page 400) chapter9/9.4/form4.html chapter9/9.4/form5.html

tabindex attribute Attribute that can be used on form controls and anchor tags Modifies the default tab order Assign a numeric value <input type="text" name="CustEmail" id="CustEmail" tabindex="1">

accesskey attribute Attribute that can be used on form controls and anchor tags Create a “hot-key” combination to place the focus on the component Assign a value of a keyboard letter On Windows use the CTRL and the “hot-key” to move the cursor <input type="text" name="CustEmail" id="CustEmail" accesskey="E">

Using CSS to Style a Form Student Files: formcss.html form { background-color: #eaeaea; font-family: Arial, sans-serif; padding: 10px; } label { float: left; width: 100px; clear: left; text-align: right; padding-right: 10px; margin-top: 10px; } input, textarea { margin-top: 10px; display: block; } #mySubmit { margin-left: 110px; }

Server-Side Processing 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.

CGI Common Gateway Interface A protocol for a web server to pass a web page user's request to an application program and accept information to send to the user.

Server-Side Scripting 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) .asp (Active Server Pages) .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.

Steps in Utilizing Server-Side Processing Web page invokes server-side processing by a form or hyperlink. Web server executes a server-side script. Server-side script accesses requested database, file, or process. Web server returns web page with requested information or confirmation of action.

Common Uses of Server-Side Scripting Search a database Place an order at an online store Send a web page to a friend Subscribe to a newsletter

Sending information to a Server-side Script <form method="post" action="http://webdevbasics.net/scripts/demo.php ">

Sources of Free Server-Side Processing Many web host providers offer free scripts for their clients. Contact their support area or FAQ to learn more about their services. Some web sites that offer FREE remotely hosted scripts (in return for displaying an ad). http://formbuddy.com http://response-o-matic.com http://master.com http://www.formmail.com http://wufoo.com http://formassembly.com

Server-Side Scripting Technologies JavaServer Pages http://www.oracle.com/technetwork/java/javaee/jsp ColdFusion http://www.adobe.com/products/coldfusion PHP http://www.php.net Ruby on Rails http://www.rubyonrails.org Microsoft’s .NET Framework http://www.microsoft.com/net Microsoft Active Server Pages http://msdn.microsoft.com/en-us/library/ms972337.aspx

Hands-on practice 9.5 (pages 421-3) chapter9/9.5/contact.html