Tutorial 6: Creating a Web form

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Internet Basics & Way Beyond!
Tutorial 6 Creating a Web Form
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Tutorial 5 Working with the Box Model. XP Objectives Understand the box model Create padding, margins, and borders Wrap text around an image Float a block-level.
XP 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
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
XP Tutorial 6: Creating Web Page Forms. XP An Example of a Form.
Computing Concepts Advanced HTML: Tables and Forms.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
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.
4.01 Cascading Style Sheets
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Creating Web Page Forms
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.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
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.
Unit 4 Lesson 3 HTML Power Techniques Textbook Authors: Knowlton, Barksdale, Turner, & Collings PowerPoint Lecture by Mr. Clausen.
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?
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Tutorial 5 Working with Web Tables. XP Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
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.
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 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
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.
TUTORIAL 6: CREATING A WEB FORM Session OBJECTIVES Create a text area Create a selection list Create option buttons Create check boxes.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 HTML Forms
HTML Hyper Text Markup Language 1BFCET BATHINDA. Definitions Web server: a system on the internet containing one or more web site Web site: a collection.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
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 The TEXT Object Presented By: Ankit Gupta.
Creating Web Page Forms COE 201- Computer Proficiency.
Basic Webpage Design HTML Forms. Objectives Learn how to use HTML to create a form. Explain the concept of forms Know the difference of GET and POST Discuss.
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.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
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.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
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
Section 10.1 Define scripting
Working with Cascading Style Sheets
4.01 Cascading Style Sheets
ITE 115 Creating Web Page Forms
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Designing Forms Lesson 10.
CNIT 131 HTML5 - Forms.
Introduction to HTML: Forms
Lesson 6: Web Forms.
4.01 Cascading Style Sheets
HTML Forms
Presentation transcript:

Tutorial 6: Creating a Web form Session 6.1.

OBJECTIVES Explore how Web forms interact with Web servers Create a Web form Create a field set Create input boxes and field labels Defining default values and placeholders Applying a style sheet to a Web form

INTRODUCING WEB FORMS Web forms collect information from Web site visitors. Can you identify the following HTML form controls? http://en.wikipedia.org/wiki/Form_(HTML)

FORMS and SERVER-BASED PROGRAMS

FORMS AND SERVER-BASED PROGRAMS Server-based programs are written in many languages The earliest and most commonly used are Common Gateway Interface (CGI) scripts that are written in Perl. Other popular languages? -

CREATING A WEB FORM Forms are created using the form element, structured as follows: <form id=“id” name=“name” action=“url” method=“methodtype” enctype=“type”>… </form> Name: naming the form is useful for pages that contain several forms so you can differentiate one form from another. Id: uniquely identifies the form element among the different page elements. Action: Specifies the filename and location of the program that processes the form. Method: two possible values (get and post). Method to send data. Get is the default method. Enctype: determine how the form should be encoded as it is sent to the server.

PRACTICE: CREATING A WEB FORM Download pizza.zip from my Web site and use the files in the zipped file to complete the following: Go to order.htm and directly below the paragraph in the section element, insert a form element with: name: pizza id: pizza action: http://www.redballpizza.com/cgi- bin/buildpizza method: post

CREATING A FIELD SET HTML and XHTML allow you to organize a form into a group of fields called field sets. <fieldset id=“id”> controls </fieldset> where id identifies the field set and controls are the control elements associated with fields within the field set

CREATING A FIELD SET To add a legend to a field set, add the following tag after the opening <fieldset> tag: <legend>text</legend> Where text is the text of the field set caption.

PRACTICE: CREATING A FIELD SET Create two field sets with the ids custInfo and buildPizza, and with the legend text Customer Information and Build Your Own Pizza respectively.

CREATING INPUT BOXES The general syntax of input elements is as follows: <input type=“type” name=“name” id=“id” /> Where type specifies the type of input control, and the name and id attributes provide the control’s name and id.

CREATING INPUT BOXES

ADDING FIELD LABELS You can also expressly link text with a control element. The syntax for creating a form label is as follows: <label for=“id”>label text</label> Where id is the value of the id attribute for a field’s control element, and label text is the text of the label.

PRACTICE: INPUT BOXES AND FIELD LABELS Within the custInfo field set, create a label with the text Name* along with a text input box for the custname field.

DEFINING DEFAULT VALUES AND PLACEHOLDERS To define the default value of a field, add the attribute value=”value” to the control element, where value is the default value assumed by a browser unless a user enters a different value Starting with HTML5, you can also populate your input boxes with placeholders. A placeholder is a text string that appears within the control element and provides users with information about the kind of information accepted by the field

DEFINING DEFAULT VALUES AND PLACEHOLDERS

PRACTICE: DEFAULT VALUES AND PLACEHOLDERS Add the placeholder text First and Last Name for the custname text input box.

APPLYING A STYLE SHEET TO A WEB FORM You can apply a style sheet to a Web Form to format the Web Form.

PRACTICE: STYLE SHEET AND WEB FORM Go to the pizza.css file and create the following styles: display all field sets with a background color value of (255, 246, 205) and with a solid 1-pixel border with the color value (233, 69, 0). Float the field sets on the left with a 1% margin. Set the width of the custInfo field set to 35%, the width of the buildPizza field set to 60%.