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.

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

Computer and Communication Fundamental Basic web programming Lecture 8 Rina Zviel-Girshin.
Tutorial 6 Creating a Web Form
Lecture 14 HTML Forms CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
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.
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.
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.
Personal Independent Networking Project HTML Forms by Chris Smith.
USER INTERACTIONS: FORMS
Creating Web Page Forms
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 –
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.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
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?
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.
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.
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.
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.
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.
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.
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.
Session 8: Working with Form iNET Academy Open Source Web Development.
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.
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.
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.
1 HTML Forms
+ 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.
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.
HTML FORMS Basharat Mahmood, Department of Computer Science,CIIT,Islamabad,Pakistan. 1.
1 HTML Forms
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.
1 HTML forms (cont.)
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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 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.
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.
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.
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.
Objectives Design a form Create a form Create text fields
ITE 115 Creating Web Page Forms
Introducing Forms.
Creating Form Elements
Creating Form Elements
Forms, cont’d.
CNIT 131 HTML5 - Forms.
Creating Forms on a Web Page
Presentation transcript:

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 survey’s that provide different options based on reader’s input. Basic Form Elements: Text Fields, Radio Buttons, Check Boxes. Other Form Elements: Text area, Menu of options and hidden fields.

Anatomy of a form Creating a form usually involves two independent steps: Creating layout for the form and Writing a program to process information on a form. A simple example: Enter your name:

Submit Button Submit buttons tell the browsers to send the form data to server. You should include at least one submit on every form. 1.To create a submit button, in the type attribute in, put submit. For ex: 2.To change the label of the text of button, 3.You can have multiple submit button by having the name attribute in. For ex:

Text Field Fields Text Fields enable the reader to type text in a single-line field. For multiple-line field, we need 1.To create a text-entry field, you can type “text” in type attribute in or leave the type specification altogether, as the default type for tag is text. 2.You can include name attribute in as this gives name to the field. 3.We can include the attribute size and maxlength. Size – specifies the length of text-entry in characters. Default is 20..

Maxlength – Specifies the limit of number of characters. If maxlength is less than size, browsers will draw a text field of size as maxlength. A Simple Example Enter your name: Enter your age:

Radio Buttons Radio Buttons indicates a list of items of which only one can be chosen.. If one button is selected, all the button in the same list are deselected. 1.To create the radio button, type radio in the type attribute. Animal 2.By default, all the radio buttons are off(deselected). You can determine the default radio button using the CHECKED attribute. Animal

Checkboxes Checkboxes makes it possible to choice multiple items. Each checkbox can off or on. The default is off. 1.The checkbox can be created by typing checkbox in type attribute. 2.The CHECKED attribute can be default the checkbox.. For ex: Red Green

A Sample Program Female Male C++ Java Visual Basic

Selections Selections enables the user to select one or more items from a menu or scrolling list. They are similar to radio buttons or checkboxes in a different visual format.. 1.The selections are indicated by tag and individual options within the selection with tag. 2.The tag has a name attribute to hold the value. 3.You can set the default item to be selected by using the selected attribute part of the tag.

By default only item can be selected. By using the multiple attribute part of tag. The optional attribute usually displays the scrolling list with the number of elements in the size attribute. For ex: Select a hair color: Black Blonde Brown Red Blue

Textarea Textareas are input fields in which the reader can type. Unlike text-input fields, textareas can contain many lines of text for forms that require extensive input. 1.A textarea can be created using. 2.A name can be given for the textarea using the name attribute. 3.The height of textarea can be specified using row attribute. 4.The width of textarea can be specified using cols attribute.

A textarea has a closing tag. If you need a default message, include it between. It allows to control text wrapping in browser. In Netscape, the textarea does not wrap, it simply scrolls in right. Use wrap attribute to change the wrapping behaviour. –Wrap=OFF – The default, text on one line. –Wrap=SOFT – Text wraps automatically in browser window and sends to server in one line. –Wrap=HARD – Text wraps automatically in browser but send to the server with newline.

An Example of form A Form Example Enter details of a student Enter student id: Sex:: Female Male Hobbies: Singing Dancing Reading (cont’d)

Please specify your age group: less than more than 40. Write in detail about your career goals: Career Goals