>> Introduction to HTML: Forms

Slides:



Advertisements
Similar presentations
Tutorial 6 Creating a Web Form
Advertisements

Ch3: Introduction to HTML5 part 2 Dr. Abdullah Almutairi ISC 340 Fall 2014.
>> Introduction to HTML: Forms. Introduction to HTML 5 Important HTML Tags HTML tags and attributes Images Hyperlinks Lists –{ordered | unordered | definition}
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.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Tables and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
Session: 10. © Aptech Ltd. 2HTML Forms / Session 10  Describe HTML5 forms  Explain the working of new input types in HTML5  Explain the new Form attributes.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing 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.
PHP Form Introduction Getting User Information Text Input.
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.
1 Form Elements  Form elements have properties: Text boxes, Password boxes, Checkboxes, Option(Radio) buttons, Submit, Reset, File, Hidden and Image.
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.
Session 8: Working with Form iNET Academy Open Source Web Development.
Copyright © Terry Felke-Morris HTML5: TEXT BOX Accepts text information in address format Common Attributes: ◦ type=“ ” ◦ name ◦ id ◦
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.
HTML FORMS The TEXT Object Presented By: Ankit Gupta.
Project 6 Creating Forms on a Web Page. Objectives Define terms related to forms Describe the different form controls and their uses Use the tag Create.
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.
Week 10: HTML Forms HNDIT11062 – Web Development.
Creating Forms on a Web Page. 2 Introduction  Forms allow Web developers to collect visitor feedback  Forms create an environment that invites people.
1 Web Engineering Forms Lecture 05. FORMS Its how HTML does interactivity. There are quite new feature in HTML5. But the fundamental idea does not change.
Tutorial 6 Creating a Web Form
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.
HTML 5.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
How to Write Web Forms By Mimi Opkins.
>> More on HTML Forms
WHY FORMS? Explain: Mostly, when you need to collect data from a user you need a form Click: Google search form Click: Facebook login form Click:
ITE 115 Creating Web Page Forms
Web Development & Design Foundations with HTML5 8th Edition
JavaScript Forms Adding User Input.
Forms and Form Controls
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Web Development & Design Foundations with HTML5 8th Edition
Designing Forms Lesson 10.
Creating Form Elements
Web Development & Design Foundations with H T M L 5
Forms Data Entry and Capture
HTML5 Level II Session III
CNIT 131 HTML5 - Forms.
Web Development & Design Foundations with H T M L 5
New Form Input Types.
Creating Forms on a Web Page
HTML5 Form Types – Newer Available Fields
Basics of Web Design Chapter 10 Form Basics Key Concepts
HTML5 - 2 Forms, Frames, Graphics.
Session III Chapter 10 – How to Work with Forms and Data Validation
Kanida Sinmai HTML Form Kanida Sinmai
Presentation transcript:

>> Introduction to HTML: Forms

Web-Based Systems - Misbhauddin Recall HTML Tags Text-based Tags Structure-based Tags Media-based Tags Hyperlinks List Tags Tables Web-Based Systems - Misbhauddin

HTML Forms Can be used for variety of different purposes in your website Sign-Up/Login Comment Area Guestbook Contact Form Questionnaires Polls / Surveys Needs JavaScript or PHP to function properly For later

Creating a Form Use the <form> tag Important attributes of this tag id – Unique identifier of the form (to be used in the JS/PHP to refer to a particular form) name – Name of the form action – URL of the function that will process the form (will see this later in the course) method - {GET|POST} (will see this later in the course)

Fields of a Form Label Form Input Field

Label Labels provide captions or headings for form controls/elements Add labels using the <label> tag Attribute for refers to the name of the input element Allow users to click on the <label> element to bring focus to the proper form control <label for=“password”>Password</label>

Form Input Elements Text Fields and Text Areas Multiple Choice Elements Form Buttons Other Inputs Hidden Inputs File Inputs Field Sets Legend

Web-based Systems | Misbhauddin FORM INPUT ELEMENTS TEXT FIELDS Web-based Systems | Misbhauddin

Input Element <input> tag It is a void element (self-closing) It has an attribute “type” which differentiates between different types of input elements Originally there were only two text field elements Text Password HTML 5 added many new input types

Textbox - Form <input> tag with type=“text” name – assigns a name to the field (to be used in JS/PHP) maxlength – the maximum length of the text box area <form> <label for=“fname">Name</label> <input type="text" name=“fname"/> </form> Name

Password - Form <input> tag with type=“password” name – assigns a name to the field (to be used in JS/PHP) maxlength – the maximum length of the text box area <form> <label for=“pwd">Password</label> <input type=“password" name=“pwd"/> </form> Password

HTML5 Forms New Input Types 13 New Input Types tel search url email date time datetime datetime-local month week number range color Similar to text, only different semantically Not supported by major browsers (chrome also)

New Input Type - url <input> tag with type=“url” For entering a single URL Automatic validation on Form Submit Keypad changes on mobiles <form> <label for=“link">Link</label> <input type=“url" name=“link"/> <input type=“submit”/> </form>

New Input Type - email <input> tag with type=“email” For entering a single/list of email addresses Automatic validation on Form Submit Keypad changes on mobiles <form> <label for=“email">Email</label> <input type=“email" name=“email"/> <input type=“submit”/> </form>

New Input Type – date <input> tag with type=“date” For entering a date <form> <label for=“date">Date</label> <input type=“date" name=“date"/> </form>

New Input Type – time <input> tag with type=“time” For entering a time value with hour, minute <form> <label for=“time">Time</label> <input type=“time" name=“time"/> </form>

New Input Type - number <input> tag with type=“number” For entering numerical input Automatic validation on Form Submit Keypad changes on mobiles Attributes min => Minimum value max => Maximum value Step => Increment value value => Default value <form> <label for=“a">A</label> <input type=“number name=“a"/> <input type=“submit”/> </form> spinbox

New Input Type – range <input> tag with type=“range” Attributes Uses a slider to select a number range For entering a numerical input Attributes min => Minimum value max => Maximum value Step => Increment value value => Default value <form> <label for=“a">A</label> <input type=“range" name=“a"/> </form>

New Input Type – color <input> tag with type=“color” For choosing color through a color well control <form> <label for=“color">Color</label> <input type=“color" name=“color"/> </form>

Web-based Systems | Misbhauddin FORM INPUT ELEMENTS TEXT AREA Web-based Systems | Misbhauddin

Text Area - Form Accept larger passages of text spanning multiple lines It is a paired element Use the <textarea> tag Important attributes cols - number of columns rows - number of rows <textarea name="comment“ rows=“5” cols=“10”>Add your comment here</textarea>