1. Adding Text
2. Making Choices
4 Uploading Files
Text Input
Type=”password” When the type attribute has a value of password it creates a text box that acts just like a single-line text input, except the characters are blocked out. They are hidden in this way so that if someone is looking over the user’s shoulder, they cannot see sensitive data such as passwords
The < Textarea > element is used to create a mutli-line text input. Unlike other input elements this is not an empty element. It should therefore have an opening and a closing tag
Checkbox
type=”checkbox”Checkboxes allow users to select (and unselect) one or more options in answer to a question.
The list-style-type property allows you to control the shape or style of a bullet point (also known as a marker).
* Unordered Lists
#### none
#### disc
#### circle
#### square
Ordered Lists
For an ordered (numbered) list you can use the following values:
decimal
1 2 3
decimal-leading-zero
01 02 03
lower-alpha
a b c
upper-alpha
A B C
lower-roman
i. ii. iii
Images for Bullets
You can specify an image to act as a bullet point using thelist-style-image property
Nobody I know enjoys filling in forms, so if you can make yours look more attractive and easier to use, more people arelikely to fill it in. Also, when you come to look at a form in a few different browsers (as shown on the right), you will see that each browser displays them differently
Events
When you browse the web, your browser registers different types of events. It’s the browser’s way of saying, “Hey, this just happened.” Your script can then respond to these events.
HOW EVENTS TRIGGER JAVASCRIPT CODE
When the user interacts with the HTML on a web page, there are three steps involved in getting it to trigger some JavaScript code.
HTML EVENT HANDLER ATTRIBUTES (DO NOT USE)
TRADITIONAL DOM EVENT HANDLERS
USING DOM EVENT HANDLERS
USING PARAMETERS WITH EVENT HANDLERS & LISTENERS
FALLBACK FOR USING EVENT LISTENERS IN I E8