Using Entities & Creating Forms Jill R. Sommer Institute for Applied Linguistics Kent State University.

Slides:



Advertisements
Similar presentations
HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Hyperlink & Form Pertemuan 11 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
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.
JavaScript Forms Form Validation Cookies CGI Programs.
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.
Forms Describe common uses of forms on web pages
Computing Concepts Advanced HTML: Tables and 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.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
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.
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.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
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.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
CO1552 Web Application Development HTML Forms. Websites can be made more interactive by providing facilities for users to provide data To get user entered.
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?
Web111a_chapt06.ppt HTML: Section 6 Forms HTML tags: define data input and/or output Define the Input and/or Output on the web page Do not process the.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 6.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
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.
Website Development with PHP and MySQL Saving Data.
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.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
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, Frames Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
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,
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.
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.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
+ 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.
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.
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.
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.
COS 125 DAY 17. Agenda  Assignment 7 not finished grading  Assignment 8 posted Due April 9  Capstone progress reports due  Quiz 2 Corrected 2 A’s,
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.
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 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.
Validation and Building Small Apps
Forms, cont’d.
Presentation transcript:

Using Entities & Creating Forms Jill R. Sommer Institute for Applied Linguistics Kent State University

Using Entities  Many symbols are frequently published that do not appear on the standard English keyboard, such as the cent and copyright symbols. In HTML, these are called character entities.  Character entity symbols also include language diacritical marks and mathematical symbols.

Using Entities  HTML enables you to include these symbols in a Web page by typing an ampersand symbol (&), followed by a keyword or number, and then a semi-colon (;)  When the browser sees this character entity value, it replaces it with the appropriate symbol.

Using Entities  For example, to have a browser display the copyright symbol (©), you need to type © or © in your HTML file.  The numerical values are taken from the ASCII values for the various characters, but they can be difficult to remember so named character entity values were created to make it easier for Web page authors to use.

Using Entities  The most important ones to remember are: (non-breaking space) & (ampersand) and " (quotation mark)  If you use an editor, it will most likely convert your diacritical marks.

For Specific Entities, See:  entities/latin1.html  entities/symbols.html  entities/special.html

Form Basics  Forms allow users to sign guest books, answer surveys, register for information, order merchandise online, etc.  Forms used to run using Common Gateway Interface (CGI) programs, but now forms can be handled using technologies like Active Server Pages (ASP), JavaServer Pages (JSP), or PHP (a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML)

Form Basics  Forms are used to transfer information.  Forms have two functions: to allow the user to send information to the server and to allow the server to track the user.  Forms are useless on their own. They need to interact with a processing program on the back end or server that allows us to implement the functionality of the form.

Form Basics  A Web page form can consist of many different form elements. These form elements can include elements such as text fields, radio buttons, drop-down lists, and submit and reset buttons  The beginning and end of a form is noted by a set of tags. All form elements must appear within these tags to belong to the form.

Form Basics  The tag also includes attributes that you can use to specify how and where the form data gets passed (action, method, and enctype).  The two attributes that you use to handle the form data are the action and method attributes. They determine how the form data is sent.

Form Basics: Action  The action attribute can be set to the URL of an application that can process the form data.  The server can also route the form data to an address. This is accomplished by setting the action attribute to an address:  For this to work, you need to set the method attribute to post (method="post")

Form Basics: Method  The method attribute defines how the form data gets passed to the program specified in the action attribute.  The get method tacks data onto the end of the URL to pass it to the server. The get method can be problematic if the browser limits how long the URL line can be.  The post method includes the form data as part of the HTTP request.

Form Basics: Method  If the method attribute is missing from the tag, the get method is used to submit the form data.  Using the get method, the form data is attached to the end of the URL line. A question mark (?) separates the actual URL address and the name/value pairs. Each name/value pair is separated from the other with the ampersand symbol (&)

Form Basics: Method  The post method for passing data to the program is more common and more browser compatible.  The post method sends all the form element‘s names and values to the standard input channel. The program can then access this data and process it.  The post method can handle large amounts of data.

Form Basics: Enctype  The default enctype attribute is application/x-  This type is used if the enctype attribute is missing from the opening tag.  Follow the rules for the form field type you want to use on your site.

Form Tags

Setting up a Form  A single Web page may have several forms, each with a unique name  You cannot nest tags within each other. Each set of tags should appear independent of all other tag sets.  Each form can be named by using the name attribute. This name is used by languages such as JavaScript to refer to the form and its elements.

Form Basics: Input Types  HTML forms are used to select different kinds of user input.  The most used form tag is the tag. The type of input is specified with the type attribute. The most commonly used input types are explained in the next slides.

Input Types: Text Fields  Text fields are used when you want the user to type letters, numbers, etc. in a form.

Input Types: Test Fields

Input Types: Radio Buttons  Radio Buttons are used when you want the user to select one of a limited number of choices.

Input Types: Radio Buttons

Input Types: Checkboxes  Checkboxes are used when you want the user to select one or more options of a limited number of choices.

Input Types: Checkboxes

The Action Attribute and the Submit Button  When the user clicks on the "Submit" button, the content of the form is sent to another file. The form's action attribute defines the name of the file to send the content to. The file defined in the action attribute usually does something with the received input.

The Action Attribute and the Submit Button

Another Radio Button Example

Drop-down Boxes  Drop-down boxes are an easy way to offer your visitors a number of choices while saving space.  A drop-down box is a selectable list.

Drop-down Boxes

Drop-down Box with a Pre-selected Value

Text-Area  This next example demonstrates how to create a text-area (a multi-line text input control).  A user can write text in the text-area.  You can write an unlimited number of characters in a text-area.

Text-Area

Creating a Button  You can create buttons and define your own text on the button.  Buttons can be quite useful if you want to make your page unique

Creating a Button

Fieldset Around Data This next example demonstrates how to draw a border with a caption around your data.

Fieldset Around Data

Forms with Input Field and Submit Button

Forms with Checkboxes

Forms with Radio boxes

Send an from a Form