Forms
47
Introducing Forms
Form Structure
48
Introducing Forms
How Forms Work
3 User fills in form and submits the form
4 Request
1 Request
2 Browser returns HTML document that contains a form
This request is usually for some type of server-side script that will process the form data.
49
The user’s form data is sent to the server within the request.
5
Introducing Forms
Query Strings
Introducing Forms
GET and POST
61
Form Control Elements
Specialized Controls (number and range controls)
Form Control Elements
Specialized Controls (colour)
Control as it appears in browser that doesn’t support this input type
Form Control Elements
Date and Time Controls
65
Table and Form Accessibility
Accessible Tables
• Use tables for data, not layout
• Use the
• Connect cells with a textual description in the header
66
Table and Form Accessibility
Accessible Form
67
Microformats
68
Microformats
Microformat information (hNews)
Microformat information (hCard)
Server harvesting microformat information
Report aggregating all the hCard information from different websites
Website aggregating all the hNews information from different websites
69
Microformats
References
hCard, which is used to semantically mark up contact information for a person
• http://microformats.org/wiki/hcard.
Schema.org aims to create and promote schemas for structured data on the Web. Google’s on-line testing tool helps developers test their semantic markup and microformats
• https://search.google.com/structured- data/testing-tool/u/0/
70