Introduction To HTML Form Inputs Written By George Gimian.

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.
CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
Technologies for web publishing Ing. Václav Freylich Lecture 4.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
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.
Forms. Form An HTML form is a section of a document containing normal content, special elements called controls (checkboxes, radio buttons, buttons, etc.),
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 –
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.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
HTML Forms What is a form.
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.
CSE 382/ETE 334 Internet and Web Technology Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
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.
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.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Suzanne J. Sultan Javascript Lecture 2. Suzanne J. Sultan function What is a function> Types of functions:  Function with no parameters  Function with.
Forms. Forms Forms are used for e-commerce, online purchases, surveys, registrations, etc. Website using forms usually collect information and must use.
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
Slide 1 CMPS 211 Internet Programming Spring 2008 Forms Chapter 17 4/22/08.
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.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
HTML - Forms By Joaquin Vila, Ph.D.. Form Tag The FORM tag specifies a fill-out form within an HTML document. More than one fill-out form can be in a.
76 © 1998, 1999, 2000 David T. Gray, Howard Duncan, Jane Kernan Frames When displaying information in a browser, it is sometimes useful to divide the display.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in HTML.
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.
HTML Forms A Preliminary Step into Dynamic Web Fred Durao
TJ 3043 – Web Application Development HTML Form. 2.0 Forms A form is the usual way to communicate information from a Web browser to a server HTML has.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
FORMS. Forms are used to receive information from the web surfer, such as: their name, address, credit card, etc. Form fields are objects that allow.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
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.
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.
TJ 3043 – Web Application Development HTML Form. 2.0 Forms - A form is the usual way information is gotten from a browser to a server - HTML has tags.
HTLM Forms CS3505. Form Handling in Browser html User Files out form WEbBROWSErWEbBROWSEr User read response submit Get URL?input html Get file html script.
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.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
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 Form Inputs. Creating a basic form …content goes here…
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.
Week 10: HTML Forms HNDIT11062 – Web Development.
HTML FORMS Basharat Mahmood, Department of Computer Science,CIIT,Islamabad,Pakistan. 1.
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.
Creating Forms on a Web Page. 2 Introduction  Forms allow Web developers to collect visitor feedback  Forms create an environment that invites people.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
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.
HTML Elements: Forms and Controls Chapter 9 B. Ramamurthy.
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.
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Introducing Forms.
Creating Form Elements
Creating Forms on a Web Page
Introduction to HTML: Forms
Presentation transcript:

Introduction To HTML Form Inputs Written By George Gimian

Forms Forms are used to make web pages more interactive Forms are used to make web pages more interactive They allows us to collect information from the web page They allows us to collect information from the web page The information is collected via input text boxes or checkboxes or radio buttons as we will learn today The information is collected via input text boxes or checkboxes or radio buttons as we will learn today

Forms The basic form structure is as follows The basic form structure is as follows<form>content</form> As you can see it takes the form of any standard html tag. As you can see it takes the form of any standard html tag.

Forms – Attributes Forms like every other tag has attributes: Forms like every other tag has attributes: –Action – this is used to tell a web page do this when I press the button on this page –Method – Get (data sent to server appended) or Post (transaction body) –Target – where is the information going to be displayed

Forms – Buttons To create a button on your page which works in contribution to your form simply: To create a button on your page which works in contribution to your form simply:<form> </form>

Forms – Buttons

If you have created an action for a form though you should use a submit button to send your information via or via another file. Or a reset button to reset the page. If you have created an action for a form though you should use a submit button to send your information via or via another file. Or a reset button to reset the page.<form> </form>

Forms – Inputs (text) Adding an input to the form is also very simple. You simply say: Adding an input to the form is also very simple. You simply say:<form> </form> This tells the browser To expect input This tells the browser The type of input to expect Because the input tag Doesn’t have a closing Tag you must put a space And backslash to make it XHTML compatible

Forms – Inputs (text) Adding an input to the form is also very simple. You simply say: Adding an input to the form is also very simple. You simply say:<form> </form> Text can have attributes: -name -size -maxlength

Forms – Input (text) Example For example: For example:<form> Please enter your first name: Please enter your first name: Please enter your surname: Please enter your surname: </form>

Forms – Input (text) Example

Forms – Input (text) What about if I want some information in the text box initially? What about if I want some information in the text box initially? Well all we simply do is use the value attribute of the input tag! Well all we simply do is use the value attribute of the input tag! Eg: Eg:

Forms – Input (text) Example

Forms – Input (Password) What happens if you want to enter a password into a field though? You don’t want everyone to see youre password! What happens if you want to enter a password into a field though? You don’t want everyone to see youre password! Well there is a solution. You simply use a password field Well there is a solution. You simply use a password field

Forms – Input (Password) - Example

Forms – Multiple-Line Text Areas What if you would like a multiple line input? Well its simple you simply use the following tag: What if you would like a multiple line input? Well its simple you simply use the following tag: </textarea> With this tag it has two main attributes: With this tag it has two main attributes: –Rows – the height of the text box –Cols – the width of the text box

Forms – Multiple-Line Text Areas Example

Forms – Radio Buttons How can we make an easy solution were a user can select from one option only within a selection? Simple using a Radio Button, which is another input type. How can we make an easy solution were a user can select from one option only within a selection? Simple using a Radio Button, which is another input type. A Radio button list needs to have the same name to be part of a selection list A Radio button list needs to have the same name to be part of a selection list

Forms – Radio Buttons Eg: Eg:<form> Please select from the following: Selection 1 Selection 1 Selection 2 Selection 2 Selection 3 Selection 3 </form>

Forms – Radio Buttons

Forms – Check Boxes How can we make an easy solution were a user can select more than one option within a selection? Simple using a Check Box, which is another input type. How can we make an easy solution were a user can select more than one option within a selection? Simple using a Check Box, which is another input type. A Check Box needs to have the same name to be part of a selection list A Check Box needs to have the same name to be part of a selection list

Forms – Check Boxes Eg: Eg:<form> Please select from the following: Selection 1 Selection 1 Selection 2 Selection 2 Selection 3 Selection 3 </form>

Forms – Check Boxes

Forms – Select Menus How can we make an easy solution were a user can select one option within a drop down selection? Simple using a Selection Menu, which is another input type. How can we make an easy solution were a user can select one option within a drop down selection? Simple using a Selection Menu, which is another input type.

Forms – Select Menus Eg: Eg:<form> Please select a colour: blue blue red red pink pink white white </select></form>

Forms – Select Menus

Eg: Eg:<form> Please select a colour: blue blue red red pink pink white white </select></form>

Forms – Select Menus

Forms – The Possibilities Forms have endless possibilities which are detailed on w3schools: Forms have endless possibilities which are detailed on w3schools: –Submenus –File uploads –Hidden fields –Buttons –etc

Forms – Submenus Monday morning Monday morning Monday afternoon Monday afternoon </optgroup> Tuesday morning Tuesday morning Tuesday afternoon Tuesday afternoon </optgroup></select>