LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.

Slides:



Advertisements
Similar presentations
1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
Advertisements

Images, Tables, lists, blocks, layout, forms, iframes
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.
Tutorial 6 Working with Web Forms
Form Basics CS Web Data  Most interesting web pages revolve around data  examples: Google, IMDB, Digg, Facebook, YouTube, Rotten Tomatoes  can.
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.
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.),
HTML F ORMS. F ORMS HTML forms are used to pass data to a server. An HTML form can contain input elements like text fields, checkboxes, radio-buttons,
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
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.
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.
DAT602 Database Application Development Lecture 14 HTML.
HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.
1 XHTML Forms A form is the mechanism to –Collect information from a browser user –Transmit collected information from a browser to a server HTML/XHTML.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML Forms.
IDK0040 Võrgurakendused I harjutus 05: Forms Deniss Kumlander.
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.
C REATING HTML F ORMS. Web forms allow you to receive feedback, orders, or other information from your Web pages readers. If you’ve ever used a Web search.
HTML : Forms, Frames Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
ITCS373: Internet Technology Lecture 5: More HTML.
HTML FORMS GET/POST METHODS. HTML FORMS HTML Forms HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes,
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 Form Elements  Form elements have properties: Text boxes, Password boxes, Checkboxes, Option(Radio) buttons, Submit, Reset, File, Hidden and Image.
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.
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.
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.
+ 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.
Starting BBEdit or Notepad and Opening the HTML File Start BBEdit or Notepad Select Open from the File Menu Open survey1.htm from the Public Folder.
©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.
Creating Web Page Forms COE 201- Computer Proficiency.
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 Form. HTML forms are used to collect user input. The element defines an HTML form: Form elements are different types of input elements, checkboxes,
Week 10: HTML Forms HNDIT11062 – Web Development.
HTML FORMS Basharat Mahmood, Department of Computer Science,CIIT,Islamabad,Pakistan. 1.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
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.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
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.
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.
Client-Side Internet and Web Programming
Objectives Design a form Create a form Create text fields
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Validation and Building Small Apps
Creating Forms on a Web Page
Presentation transcript:

LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side Internet and Web Programming Prepared by: R. Kansoy

5. FORMs in HTML 2  Used to collect information from people viewing your site  The tag is used to create an HTML form.  FORM element Attributes  METHOD attribute indicates the way the Web server will organize and send you form output. METHOD = “post” in a form that causes changes to server data. METHOD = “get” in a form that does not cause any changes in server data.  ACTION attribute Path to a script Web server: machine that processes browser requests.

5. FORMs in HTML 3  HTML forms are used to pass data to a server.  A form can contain input elements like;  text fields,  checkboxes,  radio buttons,  submit buttons  and more..  A form can also contain  select lists,  textarea,  fieldset,  legend,  and label elements.

5. FORMs in HTML 4 The Input Element  The most important form element is the input element.  An input element can vary in many ways, depending on the type attribute.  An input element can be of type  text,  checkbox,  password,  radio,  submit,  reset  and more..

5. FORMs in HTML 5 The Input Element  INPUT element Attributes:  TYPE (required) – Defines the usage of the INPUT element – Hidden inputs always have TYPE = “hidden”  NAME provides a unique identification for INPUT element  VALUE indicates the value that the INPUT element sends to the server upon submission  SIZE – For TYPE = “text”, specifies the width of the text input, measured in characters  MAXLENGTH – For TYPE = “text”, specifies the maximum number of characters that the text input will accept

First name: Last name: First name: Last name: 5. FORMs in HTML Text Fields  defines a one-line input field that a user can enter text into: 6 How the HTML code above looks in a browser: Note: The form itself is not visible. Also note that the default width of a text field is 25 characters.

Password: 5. FORMs in HTML Password Field  defines a password field: 7 How the HTML code above looks in a browser: Note: The characters in a password field are masked (shown as asterisks or circles).

Male Female 5. FORMs in HTML Radio Buttons  Radio buttons let a user select ONLY ONE of a limited number of choices.  defines a radio button.  CHECKED attribute indicates which radio button is selected initially 8 How the HTML code above looks in a browser:

5. FORMs in HTML Checkboxes  Checkboxes let a user select NONE/ONE/MORE options of a limited number of choices.  defines a checkbox.  Used individually or in groups  Each checkbox in a group should have same NAME  Make sure that the checkboxes within a group have different VALUE attribute values Otherwise, browser will cannot distinguish between them  CHECKED attribute checks boxes initially 9

I have a bike I have a car I have a bike I have a car 5. FORMs in HTML Checkboxes 10 How the HTML code above looks in a browser:

Username: 5. FORMs in HTML Submit Button  defines a submit button.  A submit button is used to send form data to a server.  The data is sent to the page specified in the form's action attribute.  The file defined in the action attribute usually does something with the received input.  VALUE attribute changes the text displayed on the button (default is “Submit”) 11 How the HTML code above looks in a browser: NOTE: If you type some characters in the text field above, and click the "Submit" button, the browser will send your input to a page called "html_form_action.asp". The page will show you the received input

Username: Password: Username: Password: 5. FORMs in HTML Reset Button  defines a reset button.  A reset button is used to clear all the entries user entered into the form.  VALUE attribute changes the text displayed on the button (default is “Reset”) 12 How the HTML code above looks in a browser:

ITEC 229 ITEC FORMs in HTML TEXTAREA  Inserts a scrollable text box into FORM  ROWS and COLS attributes specify the number of character rows and columns 13 How the HTML code above looks in a browser:

5. FORMs in HTML SELECT  Places a selectable list of items inside FORM  Include NAME attribute  Add an item to list  Insert an OPTION element in the … tags  Closing OPTION tag optional  SELECTED attribute applies a default selection to list  Change the number of list options visible  Including the SIZE = “x” attribute inside the tag  x number of options visible 14

5. FORMs in HTML SELECT 15 BMW Mercedes Audi BMW Mercedes Audi How the HTML code above looks in a browser:

5. FORMs in HTML EXAMPLE 1: 16 Forms Feedback Form Please fill out this form to help us improve our site. Name: Comments: Forms Feedback Form Please fill out this form to help us improve our site. Name: Comments:

5. FORMs in HTML EXAMPLE 1 (cont..) : Address: Things you liked: Site design Links Ease of use Images Source code Address: Things you liked: Site design Links Ease of use Images Source code

5. FORMs in HTML EXAMPLE 1 (output): 18

5. FORMs in HTML EXAMPLE 2: 19 Forms II Feedback Form Please fill out this form to help us improve our site. Name: Comments: Address: Forms II Feedback Form Please fill out this form to help us improve our site. Name: Comments: Address:

5. FORMs in HTML EXAMPLE 2 (cont..): 20 Things you liked: Site design Links Ease of use Images Source code How did you get to our site?: Search engine Links from another site Deitel.com Web site Reference in a book Other Things you liked: Site design Links Ease of use Images Source code How did you get to our site?: Search engine Links from another site Deitel.com Web site Reference in a book Other

5. FORMs in HTML EXAMPLE 2 (cont..): 21 Rate our site (1-10): Amazing:-) The Pits:-( Rate our site (1-10): Amazing:-) The Pits:-(

5. FORMs in HTML EXAMPLE 2 (output): 22

LOGOhttp://sct.emu.edu.tr/it/itec229 FORMs in HTML END of CHAPTER 5