An HTML form is used to collect user input. The user input is most often sent to a server for processing.
ADDING TEXT
Text input (single-line) Used for a single line of text such as email addresses and names.
Password input Like a single line text box but it masks the characters entered.
Text area (multi-line) For longer areas of text, such as messages and comments.
Making Choices
Radio buttons For use when a user must select one of a number of options.
Checkboxes When a user can select and unselect one or more options.
Drop-down boxes When a user must pick one of a number of options from a list.
Submitting Forms
Submit buttons To submit data from your form to another web page.
Image buttons Similar to submit buttons but they allow you to use an image.
Uploading Files
< form> Form controls live inside a < form> element. This element should always carry the action attribute and will usually have a method and id attribute too.
action Every < form> element requires an action attribute. Its value is the URL for the page on the server that will receive the information in the form when it is submitted.
method Forms can be sent using one of two methods: get or post.
Type
Unordered Lists
For an unordered list you can use the following values:
Ordered Lists
For an ordered (numbered) list you can use the following values:
1 2 3
01 02 03
a b c
A B C
i. ii. iii.
I II III
Image
The list-style-image property replaces the list-item marker with an image.
Position
The list-style-position property specifies the position of the list-item markers (bullet points).
List Shorthand
The list-style CSS shorthand property allows you to set all the list style properties at once.
to set the width of the table
to set the space between the border of each table cell and its content.
to convert the content of the table headers to uppercase.
to add additional styling to the content of the table headers.
to set borders above and below the table headers.
to align the writing to the left of some table cells and to the right of the others.
to change the background color of the alternating table rows.
to highlight a table row when a user’s mouse goes over it.
HTML events are things that happen to HTML elements.
When JavaScript is used in HTML pages, JavaScript can react on these events.
What can JavaScript Do?