LESSON 10 UNIT K FORMS. WHY FORMS? Free-form – input that is unstructured and does not limit choices. For example, lets say you ask clients to e-mail.

Slides:



Advertisements
Similar presentations
23-Aug-14 HTML/XHTML Forms. 2 What are forms? is just another kind of XHTML/HTML tag Forms are used to create (rather primitive) GUIs on Web pages Usually.
Advertisements

24-Aug-14 HTML Forms. 2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the.
Tutorial 6 Creating a Web Form
1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
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.
CHAPTER 30 THE HTML 5 FORMS PROCESSING. LEARNING OBJECTIVES What the three form elements are How to use the HTML 5 tag to specify a list of words’ form.
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.
USER INTERACTIONS: FORMS
Creating Web Page Forms
XHTML Forms for Data Collection and Submission Chapter 5.
ECA 228 Internet/Intranet Design I Forms. ECA 228 Internet/Intranet Design I Forms forms are a way for a user to communicate with you – text fields –
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
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.
HTML Forms What is a form.
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
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.
Suzanne J. Sultan Javascript Lecture 2. Suzanne J. Sultan function What is a function> Types of functions:  Function with no parameters  Function with.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
 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.
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.
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.
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.
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 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.
HTML FORMS The TEXT Object Presented By: Ankit Gupta.
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Forms.
1 HTML Forms
USABLEANDACCESSIBLEFORMS. accessibility or Accessibility?
Tutorial 6 Creating a Web Form
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.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
HTML Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
Informatics Computer School CS114 Web Publishing HTML Lesson 4.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Creating and Processing Web Forms
Web Forms.
Client-Side Internet and Web Programming
Web Forms.
FORMS Lesson 10 Unit J Why Forms? Free-form – input that is unstructured and does not limit choices. For example, lets say you ask clients to .
Objectives Design a form Create a form Create text fields
>> More on HTML Forms
Validation and Building Small Apps
Designing Forms Lesson 10.
Web Systems Development (CSC-215)
Web Development & Design Foundations with H T M L 5
Forms, cont’d.
Basics of Web Design Chapter 10 Form Basics Key Concepts
© Hugh McCabe 2000 Web Authoring Lecture 8
HTML5 - 2 Forms, Frames, Graphics.
HTML Forms
Web Forms.
Presentation transcript:

LESSON 10 UNIT K FORMS

WHY FORMS? Free-form – input that is unstructured and does not limit choices. For example, lets say you ask clients to you the information about your pet so that your can book the pet a spot in the kennel. number 1 - Bowser is a five year old grey and white female and weighs about 13 pounds. Bowser will be staying 3 days starting next Friday. number 2 - Bubba is our family dog. Bubba is a very gentle brown Labrador Retriever. Lately Bubba has had some medical problems but it should not be during the stay on the upcoming holiday weekend. Do you know the gender, type of animal, status of shots or even exactly which days and nights the animal will be at the kennel? 2

FORM ADVANTAGES User does the work. Can require information Can limit choices Can validate input Can give default values Can put information into discrete pieces – “chunks” Birthdate Better Phone number Better PatJones 3

WHICH IS BETTER? Which is better a persons age or their date of birth? ANSWER: Date of birth because it does not change and age can be calculated. Derived data - data value can be computed based upon other data. More accurate. Why? 4

WHERE TO START? What is the purpose of the form? How will the information be used? What type of data? Yes/no, numbers to what decimal, abbreviations, codes How discreet? First name, initial, last name Break down into multiple has advantages and disadvantages. Talk to the users if possible. 5

WHERE TO START? Design on paper first. Put a title on the form Place a unique identifier of the form (usually in top right corner or in the footer). Provide instructions and explanations. Every input should have a label. 6

WHERE TO START? Put related fields together. Order should be what users expect. Logical flow left  right top V bottom Place a field for questions or comments at the bottom of the form. 7

FORM ESSENTIALS Define the form with form tags Your entire form MUST be within the form tags! Add input controls – they all must be within the form tags. Add action buttons – at bottom of form before the end form tag. 8

Without css 9

With css 10

FIELDSET – Group of form elements LABEL – Descriptive text LEGEND – Descriptive title for a fieldset How many fieldsets in the following code? Within contactinfo, what is the first legend and what is the first label? 11

INPUT CONTROLS - TEXTFIELD Type is text for the first input, type is for the second input name= is crucial for input id= is crucial for css Placeholder gives direction 12

INPUT FROM A FORM What is submit is the name attribute of a field with the associated value. 13

HOW DOES A TEXTFIELD GET ITS SIZE? In the css file #nameinput, # input {width: 30em; maxlength: 60} #phoneinput {width: 12em; } 14

INPUT CONTROLS - CHECKBOXES Why is value crucial? 15

INPUT CONTROLS – OPTION BUTTONS In order for buttons to work, each group MUST use the same value for name. Checked indicates the default. 16

SUPPOSE YOU WANTED TO KNOW WHAT COUNTY THEY LIVE IN. How many counties in Arizona? 15 Which state has the fewest counties? Alaska has 8 and Hawaii has only 5 But the trick answer is Louisiana has zero counties and 64 parishes Which state has the most counties? Texas has 254 Use Drop down menu for a selection of one from many. Limits choices and controls input. 17

SUPPOSE YOU WANTED TO KNOW WHAT COUNTY THEY LIVE IN. 18

INPUT CONTROLS PROVIDE A VARIETY OF INPUT TECHNIQUES. 19

ADDITIONAL INPUTS Textarea – multi-column text area. 20

ADDITION ITEMS 21

ADDITION ITEM REQUIRING INPUT. New attribute in HTML5 Can be done with a script – javascript. Contact Information Name 22

EVEN MORE ADDITIONAL ITEMS 23

<input type="submit" id="submit“ value="Add to Cart" /> ACTION BUTTONS 24

MORE ABOUT BUTTONS On the begin form tag you can indicate an action and a method for how the form is submitted. 25

SUBMIT BUTTON “ action ” attribute used to specify name and location of script that will accept form data “ method ” attribute used to indicate how data should be submitted On the form tag you might have: or 26

27

28