ITCS373: Internet Technology Lecture 5: More HTML.

Slides:



Advertisements
Similar presentations
Tables Tables provide a means of organising the layout of data
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?
Tutorial 6 Creating a Web Form
Lecture 14 HTML Forms CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
Video, audio, embed, iframe, HTML Form
XP 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
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
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
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 –
CST JavaScript Validating Form Data with JavaScript.
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.
Chapter 3. Table have many uses in a HTML design but are mostly used for the organization of your web site. Tables also give vertical and horizontal structure.
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.
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?
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.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Project Four Forms Discuss form processing Describe the difference between client-side and server-side form processing Add a horizontal rule to a Web page.
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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
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.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
1 HTML Forms
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing forms.
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.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 HTML Forms
XP 1 Tutorial 6 Creating Web Page Forms. XP 2 Tutorial Objectives  Describe how Web forms can interact with a server-based program  Review the various.
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.
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.
Creating Web Page Forms COE 201- Computer Proficiency.
Netprog CGI and Forms1 CGI and Forms A detailed look at HTML forms.
HTML Forms.
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.
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.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
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.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
Tutorial 6 Creating a Web Form
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.
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.
Tutorial 6 Working with Web Forms
ITE 115 Creating Web Page Forms
CNIT 131 HTML5 - Forms.
Creating Forms on a Web Page
Lesson 6: Web Forms.
Unit 5 Create Forms.
Presentation transcript:

ITCS373: Internet Technology Lecture 5: More HTML

HTML Forms Forms provide the means for gathering information from users who visit a Web page. Applications include user feedback, queries, E- commerce. Simple feedback and queries normally require the form data to be ed to a specific address. Information may be extracted from this automatically. E-commerce involves "Submitting" the form to activate a server-side program that processes the form ’ s data. Most server programs involve databases.

HTML Forms - 2 As usual, a new range of HTML tags is required to control the forms. The tag defines a new HTML form. It must contain a closing tag. No nesting of forms allowed. The main attributes are : action= and method=. action= specifies how the form data should be processed (i.e. which program will be activated when the form is submitted) The action= attribute specifies an absolute or relative URL. The URL is usually a program, running on the Web server machine. The URL may alter natively be a ‘‘ mailto ’’ address; this must always be used with the POST method (see below). Action=mailto: Method="POST" method= specifies how the form data is to be sent to the script defined by the action attribute.

Sending Form Data There are two possible values of the method= attribute: GET Data is sent to the program as part of the URL. Use it only if a small volume of data is to be transmitted and there is no sensitive information (i.e. a password) embedded. <form action=" method="GET"> POST Data is sent as standard input to the program, and is thus hidden from the user. This is more efficient for bulk data. Note: Just because the data is hidden, don ’ t assume that this method is secure. <form action=" method="POST">

Example - A Simple Form

Example Your name : Password : Do you want to buy books : or magazines Credit card Number :

Expiry Date : / Filling this in and submitting it yields in1=Roger+Peel&in2= &in3=on& in5= &in6=11&in7=11&in8=2 001 Notice that this form is ed by the browser.

GET Method Submissions The contents of a form are concatenated with the action URL. Name / value pairs are separated by ‘ & ’ ; Each name is separated from its value by a ‘ = ’ ; Spaces are replaced by plus signs ‘ + ’. Based on these rules, the appropriate input string is formed. You may see this string in the URL window of your browser after submitting a form and entering the requested HTML page. &keywords=agents+software+papers&lang=en-gb POST Method Submissions The form information is sent to the STDIN of the CGI program indicated.

Form Elements An HTML form supports a rich variety of user input elements. Input elements are added by using the tag. This has no closing tag. For each input we need to specify : The name of the input element (unique in each for m). This name is used in the message sent back to the browser. The type of input - to tell the browser what to display and what to expect as input data. The size (if the element takes text values)

Examples of Form Elements For all input field types, the type= and name= fields must be specified. Text input fields : These allow a row of text to be typed by the user. You may specify the field width and the maximum length of the text to be input. Password controls : These are the same as text controls, but asterisks are displayed to mask user ’ s input : Check boxes : Any number of these may be clicked. Radio buttons : Just one of these may be clicked. Group radio buttons by using the same name= attribute.

Examples of Form Elements - 2 Submit button : Send data to program for processing. Reset button : Clear all current data from for m. Filenames may be looked up (using a browser pop-up menu) and included in a returned form. Hidden fields may be returned, containing information originally embedded in the page by the Web page designer (or the server). Beware that the user may change these values in the HTML or in the GET data submitted - hidden does not imply secure!

Examples of Form Elements - 3 Text Areas enable the user to enter text messages. rows= and cols= must define the text area. A helpful message can appear in the text area as an initial value. Please comment on our customer service. Enter your answer here

Examples of Form Elements - 4 Menus allow us to select from a number of alternatives. enables the user to choose from a set of options. Its main attributes are name= and size=. name= This identifies the returned item; size= This sets the number of lines in the selection menu: size == 1 The selection is done using a pull-down menu; size <#options The selection is done using a scrolling menu; size == #options The selection is done using a fixed menu. The optional values are listed using the tag; one of these may have the attribute selected. Web Publishing Web Technologies Programming Foundations

Frames Frames are an HTML concept that support the viewing of multiple pages in a single window. Frames are very popular, and are used in many commercial web pages. Frames : Example 1

Frames are used to split the browser window into various parts and to specify for each of the parts an HTML file to be displayed. A framed page is introduced by the tag This tag may have the attributes rows=, cols= When frames are used, no HTML may be present. Frames split the screen into rows or columns. Any or all of these parts can be further split into rows or columns. Every split must specify how many rows or columns are to be created and what their sizes are. After the splitting process, which HTML page is displayed on each part of the screen must be specified, using the tag and its src= attribute. Scroll-bars are used to enable the user to browse a frame that is too big for the fraction of the window specified.

Frames : Example 2

Interlinked Frames Frames can be linked with each other. When a link is followed then we can specify where the new web page will be displayed. To do this, we use the attribute target= within the definition of the link. The target frame is named - so we have to give the frames names, too. After frames have been assigned names, then we can reference them from links in other frames. This link will display the result in frame "a" Thus, certain frames may remain constant, and others can be used to display their results (i.e. new Web pages)

More.. Adding Music Using the link to a sound file: A midi song Using the embed method: In the first method a window is opened to play the file. In the second the browser places the file on the page right where the tag was placed..wav.aud and most other sound formats can be embedded in the same way.

Meta tags are used to help some search engines index a page especially if the page has frames. Meta examples <meta name= “ description ” content= “ how to add meta tags to your page ” Meta Tags and Search Engines

Your Part NOW.. You are required to go through the HTML Tutorials (Both basics and advanced) available on This tutorial is part of this course and will be included in your tests.

End for Today What did you learn? You tell me..