HTML CS422 Dick Steflik.

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

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.
Tutorial 6 Creating a Web Form
Hyperlink & Form Pertemuan 11 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
Chapter 6 Basic forms 1. Forms and query string 2 form : a group of user input (UI) controls that accepts information from the user and sends the information.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
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.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements.
Forms, Validation Week 7 INFM 603. Announcements Try placing today’s example in htdocs (XAMPP). This will allow you to execute examples that rely on PHP.
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 5 Tutorial Chapter 9 Form Attributes. New Form Attributes HTML5 has several new elements and attributes for forms. New form attributes : autocomplete.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
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.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
HTML Advanced: HTML 5. Introduction to HTML 5 These slides are based on source material found at the w3schools.com website.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Forms James Wang.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
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.
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.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements  Always name.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
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.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML Links HTML uses a hyperlink to another document on the Web.
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Forms.
Week 10: HTML Forms HNDIT11062 – Web Development.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
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.
1 HTML: HyperText Markup Language Representation and Management of Data on the Internet.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
Introduction to Web Site Development Department of Computer Science California State University, Los Angeles Lecture 8: Forms and Controls.
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,
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
Chapter 4 Java Script – Part2. 2 Location object Properties Properties href – whole path will be displayed. ex: window.location.href ( see example 11)
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
HTML CS 4640 Programming Languages for Web Applications
JavaScript and Ajax (Internet Background)
How to Write Web Forms By Mimi Opkins.
Warm Handshake with Websites, Servers and Web Servers:
CNIT 131 Internet Basics & Beginning HTML
Lecture 3 Sarsenova Zhibek.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
HTML5 Hyper Text Markup Language version 5
Chapter 5 Introduction to XHTML: Part 2
Web Programming– UFCFB Lecture 10
Introduction to XHTML.
HTML MULTIPLE CHOICE QUESTION
Objectives Explore web forms Work with form servers
Forms, cont’d.
Web Development & Design Foundations with H T M L 5
HTML LINKS
HTML5 - 2 Forms, Frames, Graphics.
Web Client Side Technologies Raneem Qaddoura
HTML CS 4640 Programming Languages for Web Applications
Presentation transcript:

HTML CS422 Dick Steflik

Browsers Since the HTML5 specification isn't officially released yet, none of the currently in vogue browsers are completely compatible Currently where they stand is: Google Chrome v 32.0.1700.102 (503/555) Opera 19.0.1326.56 (492/555) Mozilla Firefox v 26.0 (446/555) Apple Safari v 6.6.1 (392/555) MS IE v11 (365/555)

HTML History October1991 – first mentioned in public in an informal paper by Tim Berners-Lee of CERN The history is well documented on Wikipedia (search on HTML) an XML based version of HTML was started in response to HTML 4.0 but is no longer in development and is now part of HTML5

Big News HTML5 is a dialect of XML for Browsers Other dialects of XML SVG (Scaleable Vector Graphics) OpenOffice (Draw) X3D (3-D graphics representation) Blender, SketchUp Open Document ( Word Processors) Open Office, MS Word, Libre Office)

HTML Elements (tags) Most elements are used for data presentation, i.e. making the data on the screen look attractive Some elements are used to communicate with the server using the Hypertext transport Protocol (HTTP). These are the elements that we will be focusing on.

Global Attributes in HTML5 all elements have the following attributes: accesskey class contextmenu data-* dir draggable dropzone hidden id lang spellcheck style tabindex title translate

A little bit about HTTP All communication between a client (browser) and a server is done via HTTP The protocol is "stateless" i.e. unlike a desktop program there is nothing to maintain program "state" the client send a request to the server the server receives it and sends back a response this is done over and over but there is nothing to associate one request/response with another To maintain "state" we'll rely on trickery (more on this later)

Anchor tags and form tags There are only three tags that can send a request to a server anchor tags the href attribute takes a URL, this can be used request a new web page or request a program/script to be run on the server image tags the src attribute takes a URL and can be used to request a graphic or for the server to run a script form tags form tags let us send: page requests, data from the current page, requests to upload a file, requests to delete a file

anchor tags when displayed; unvisited is blue, visited is purple, active is red the linked page will by default be shown in the current window important attributes: id specifies the unique name of the element in the DOM href specifies the URL of the page to go to absolute or relative URL this is the URL of the page to be requested target where to open the linked document _blank, _parent, _self, _top, framename

image tags required attributes are src and alt important attributes: src is an absolute or relative URL alt is a text string to be displayed if the browser is set to not display images important attributes: id specifies the unique name of the element in the DOM src specifies the URL of the image to retrieve or the script to run. There are many scripts available to convert text or numbers to a graphic. Many websites that display the number of times a site is visited use this.

form elements The <form>...</form> tags are used for building data entry forms for web based applications The form tag makes a container that can containing both presentation elements and data entry elements (widgets)

form elements (more) attributes: id unique name of the element in the DOM method (get, post, put, delete) the disposition of the contents of the form action – the url of the script on the server to run enctype – the encoding to use novalidate – do not automatically validate data from the form target – where the response is to be displayed

data elements/widgets The following elements may be nested inside of the form element: input textarea select fieldset datalist keygen output progress meter

<input> there are several types of input fields that can be self validating or validated via a specified regular expression types are : button, radio, text, search, tel, url, email, date, month, week, time, datetime, datetime-local, number, range, color, checkbox, image, file, reset, submit attributes allow: initialization, field width, datalist, maxlength...

<input /> more important attributes: id - DOM id of the element name - the name to be used for the data when sent to server size – the width in characters of the element maxlength – max num of characters allowed

Gotcha This is a warnings : some browsers will render (display on the screen) the data entry widgets even if you forget to put them in a <form> container. but they will not work as advertised unless you put them in a container