INTRODUCTORY Tutorial 8 Creating Forms. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create an HTML form Create fields for text Create.

Slides:



Advertisements
Similar presentations
Tutorial 6 Creating a Web Form
Advertisements

1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
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
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 Forms Section A - Working with Forms in JavaScript.
XHTML Forms for Data Collection and Submission Chapter 5.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
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.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
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.
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 © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
1 HTML Forms
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.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 HTML Forms
1 HTML Forms
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
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.
Intro to Forms  HTML forms are used to gather information from end-users.  A form can contain elements like radio- buttons, text fields, checkboxes,
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.
Creating Web Page Forms COE 201- Computer Proficiency.
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.
HTML Forms.
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.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
1 HTML Forms
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
INTRODUCTORY Tutorial 9 Creating Frames. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Decide when to use frames for a Web site Learn.
1 HTML forms (cont.)
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Tutorial 6 Creating a Web Form
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
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.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
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.
Tutorial 6 Working with Web Forms
Objectives Design a form Create a form Create text fields
ITE 115 Creating Web Page Forms
Validation and Building Small Apps
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.
CNIT 131 HTML5 - Forms.
Intro to Forms HTML forms are used to gather information from end-users. A form can contain elements like radio-buttons, text fields, checkboxes, submit.
Intro to Forms HTML forms are used to gather information from end-users. A form can contain elements like radio-buttons, text fields, checkboxes, submit.
Lesson 6: Web Forms.
Presentation transcript:

INTRODUCTORY Tutorial 8 Creating Forms

XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create an HTML form Create fields for text Create text boxes Choose an appropriate form control Create radio buttons, check boxes, and list boxes

XP Objectives Create menus in a group Create methods for sending data and clearing forms Create command buttons Organize Windows controls New Perspectives on Blended HTML, XHTML, and CSS3

XP Creating an HTML Form Similar to a paper-based form, an HTML form is used to gather data from a user To create a form, enter the following code: where methodtype is either get or post, and scripturl is the location on the file server where the script will be run when the form is submitted New Perspectives on Blended HTML, XHTML, and CSS4

XP Using Windows Controls An HTML form contains a number of Windows controls—text areas, radio buttons, check boxes, drop-down list items, and command buttons The action attribute and its value identify the location on the server and the name of the script that will run when the user clicks the Submit button in the form The method attribute and its value follow the action attribute and its value New Perspectives on Blended HTML, XHTML, and CSS5

XP Creating Input Fields New Perspectives on Blended HTML, XHTML, and CSS6

XP Creating Input Fields New Perspectives on Blended HTML, XHTML, and CSS7

XP Creating Text Boxes To create a text box, use the following code: <input type="text_type" id="label" value="initialvalue" size="sizewidth" maxlength="maxwidth" /> where text_type is either text or password, label is the text that identifies the input data, initialvalue is the default data that will be shown in the field, sizewidth is the width of the box in pixels, and maxwidth is the maximum number of characters that can be typed in the field New Perspectives on Blended HTML, XHTML, and CSS8

XP Creating Text Boxes New Perspectives on Blended HTML, XHTML, and CSS9

XP Creating Text Boxes New Perspectives on Blended HTML, XHTML, and CSS10

XP Creating Radio Buttons To create radio buttons, enter the following code: <input type="radio" name="button_name" value="data" />display_text where radio is the value for the type attribute, button_name identifies the button selected, data is the data that will be sent to the server if the button is selected, and display_text is the text that will appear to the right of the radio button. Optionally, the attribute and value of checked="checked" may be used to identify a single default choice New Perspectives on Blended HTML, XHTML, and CSS11

XP Creating Radio Buttons New Perspectives on Blended HTML, XHTML, and CSS12

XP Creating Check Boxes To create check boxes, enter the following code: <input type="checkbox" id="box_name" value="data" />display_text where checkbox is the value for the type attribute, box_name identifies the box being selected, data is the data that will be sent to the server if the check box is selected, and display_text is the text that will appear to the right of the check box. Optionally, the attribute and value of checked="checked" may be used to identify a default choice New Perspectives on Blended HTML, XHTML, and CSS13

XP Creating Check Boxes New Perspectives on Blended HTML, XHTML, and CSS14

XP Creating Drop-Down List Boxes To create a drop-down list box, enter the following code:... where label identifies the data that will be sent to the server, number is the number of items to display (a value of 1 creates a drop-down list box), optionA is the first option in the list, and optionZ is the last option in the list Optionally, use multiple="multiple" to allow more than one item in the list to be chosen Optionally, use selected="selected" to make an item the default choice New Perspectives on Blended HTML, XHTML, and CSS15

XP Creating Drop-Down List Boxes New Perspectives on Blended HTML, XHTML, and CSS16

XP Creating Option Groups To create an option group, enter the following code: options... where heading is the name of the heading for the option group, and options are the options in the option list New Perspectives on Blended HTML, XHTML, and CSS17

XP Creating Option Groups New Perspectives on Blended HTML, XHTML, and CSS18

XP Creating Option Groups New Perspectives on Blended HTML, XHTML, and CSS19

XP Creating a Text Area To create text areas, enter the following code: where label is the text that identifies the input data to the server, height is the number of rows expressed as a number, and width is the character width of the text area expressed as a number New Perspectives on Blended HTML, XHTML, and CSS20

XP Creating a Text Area New Perspectives on Blended HTML, XHTML, and CSS21

XP Creating a Button To create a button, enter the following code: buttontext where buttontype is either submit or reset, and buttontext is the text that will be displayed on the button Optionally, you may include an image with alternate text, the vertical-align property, and the width and height properties If you are using an image with text, you may have the image appear to the left or the right of the button text You can also use a background image for the button New Perspectives on Blended HTML, XHTML, and CSS22

XP Creating a Button New Perspectives on Blended HTML, XHTML, and CSS23

XP Setting the Style for the Button Element New Perspectives on Blended HTML, XHTML, and CSS24

XP Organizing Form Elements To organize form elements using the fieldset and legend tags, enter the following code: legendtext form_elements where legendtext is the text for the legend and form_elements are the controls you want in the fieldset New Perspectives on Blended HTML, XHTML, and CSS25

XP Organizing Form Elements New Perspectives on Blended HTML, XHTML, and CSS26

XP The label Tags New Perspectives on Blended HTML, XHTML, and CSS27

XP Form Elements New Perspectives on Blended HTML, XHTML, and CSS28

XP Form Attributes New Perspectives on Blended HTML, XHTML, and CSS29