Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.

Slides:



Advertisements
Similar presentations
Svetlin Nakov Telerik Corporation
Advertisements

Tutorial 6 Creating a Web Form
Images, Tables, lists, blocks, layout, forms, iframes
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.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
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.
Form Basics CS Web Data  Most interesting web pages revolve around data  examples: Google, IMDB, Digg, Facebook, YouTube, Rotten Tomatoes  can.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Creating Web Page Forms
Svetlin Nakov Telerik Corporation
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
CST JavaScript Validating Form Data with JavaScript.
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.
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?
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
Svetlin Nakov Telerik Corporation
Chapter 5 Java Script And Forms JavaScript, Third Edition.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.
Forms Sangeetha Parthasarathy 02/05/2001. Introduction to Forms A form makes it possible to transform your web pages from text to graphics to interactive.
Tables and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
INTRODUCTORY Tutorial 8 Creating Forms. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create an HTML form Create fields for text Create.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 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.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, 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.
Svetlin Nakov Telerik Corporation
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
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.
Web Forms. Survey or poll Contact us Sign up for an newsletter Register for an event Submit comments or feedback about our site Log in to a members-only.
Introduction To HTML Form Inputs Written By George Gimian.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Page Design Forms! Website Design. Objectives What forms can do The Attributes of the form tag Using Textboxes Textareas Checkboxes Radio buttons.
+ 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.
WEB FORM DESIGN. Creating forms for a web page For your web project you have to design a form for inclusion on your web site (the form information should.
HTML Forms.
Week 10: HTML Forms HNDIT11062 – Web Development.
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.
03 – HTML (2) Informatics Department Parahyangan Catholic University.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc 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.
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.
Creating and Processing Web Forms
Objectives Design a form Create a form Create text fields
ITE 115 Creating Web Page Forms
CNIT 131 HTML5 - Forms.
Basics of Web Design Chapter 10 Form Basics Key Concepts
Unit 5 Create Forms.
Presentation transcript:

Tutorial #9 – Creating Forms

Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan Alternating rows (.stripe) tr:hover Tables in Dreamweaver

Forms Form – a collection of HTML elements used to gather data User enters data and submit button is pressed and data is sent to a Form Handler. This could be a script or could be sent to a database. The element is the container for all elements of the form Use HTML code to create the Form Controls

Creating a Form Use the following code

Adding Inputs Inputs ( ) are the fields or elements that the form uses to enter data For example: Text type can be text, password, , or another valid value Size is the width and maxlength is the max number of characters that can be entered

Adding Inputs For example (continued): Input uses both name and id attributes. It is best practice use both and make them the same name. If they are tied to a database they should have the same name as the database field Also remember case sensitivity

Fieldset and Legend To organize the form elements can use and elements legendtext

First Form My Form

Input Types The label element is used as a prompt to determine the type of data a control collects Uses for attribute which ties the label to a field based on the id Usually placed before or after the field to put the prompt Enter your First Name

Adding Password Field Password fields have the text displayed as stars or bullets to hide the text being entered Change the type to password For example: Enter your Password

Adding an field Another type for an input field is This has simple validation added in it For example: Enter your

CSS Add display block in CSS to stack up fields input { display: block; }

Lab 1. Create a form with a 3 inputs and 3 labels 1. Name (type=“texttype”) 2. Password (type=“password”) 3. (type=“ ”) 2. Create a fieldset to hold all your form elements and give the fieldset a legend of “My First Form” 3. Add an embedded CSS for input to set the display:block

CSS to style Form Controls We talked about display block All of the CSS we have talked about will work with the form elements input { display: block; } label { float: left; padding-right: 15px; text-align:right; } fieldset { display: block; background-color: #befca7; } legend{ color: red; font-size: 1.9em; }

Initial Values and Place Holders Set the value attribute to give an initial value Placeholder attribute was added with HTML5 Not all browsers support it so make sure it’s not critical to user understanding

Radio Buttons Radio Buttons give multiple options but only one choice is allowed to be picked Input type=“radio” Use name attribute to type buttons into the same group The name must be identical for all in the same group otherwise both buttons could be pressed Set the value attribute to give the selection a value

Radio Buttons Color Choice Red Blue

Check Boxes Similar to radio buttons but multiple boxes within a group can be selected Input type=“checkbox” Again use the name attribute to tie multiple check boxes to the same group ID will be the unique id for that box and value will have the value when checked Checked = “checked” will default it to checked

Check Boxes I like the following Puppies Kittens

Selection Lists Drop-down list boxes displays one option and allows others to be picked from a list This is done with the select element Each select has the option elements to give the values in the list Selected attribute on the option element set to “selected” will set the default value The multiple attribute on the select element allows multiple values to be selected by ctrl or shift clicking

Selection Lists Animals Kittens Puppies Horses

Selection Lists The size attribute is set to show how many items in the list are displayed Set to 1 for a drop down style list Set to a bigger amount for a different style

Selection Lists Kittens Puppies Horses

Lab 1. Create a new field set with a radio button group with at least 3 options 2. Create a checkbox group with at least 3 options 3. Create a select list with at least 3 options 4. Don’t worry as much about formatting at this time

Text Area The textarea element is similar to texttype but allows multiple row entry The rows and cols attributes give the text area it’s shape Nice for comment and boxes

Text Area Questions/Comments Message

Submitting data A command button is a form control that lets the use execute an action Two types Submit – submits the entered data to be processed Reset – clears the entered data Value attribute sets the button text

Lab 1. Get tutorial9_form_handler.php from the CLASS_INFO/Labs folder 2. Add a submit and clear button to your form 3. Set the form attributes to the following: 4. Upload your files to your lab directory 5. Test clear and submit buttons

Forms in Dreamweaver Dreamweaver makes it easy to set up form elements Demo

Other Topics - iframes Iframes - An inline frame is used to embed another document within the current HTML document. Example: Can style like other elements iframe.dmacc { height: 500px; width: 800px; border: solid thick red; }

Other Topics - iframes Some sites have really nice iframes for you to use Google Maps has a great one (demo)