Intro HTML
Intro HTML
● </OL>
More Ordered Lists….
⚫ The TYPE=x attribute allows you to change the the kind
of symbol that appears in the list.
⚫ A is for capital letters
⚫ a is for lowercase letters
⚫ I is for capital roman numerals
⚫ i is for lowercase roman numerals
⚫ 1 is for numbers
Unordered Lists
⚫ An unordered list is a list ● Here’s how it would look
of bulleted items on the Web:
⚫ To create an unordered
list, type:
● <UL>
● <LI> First item in list
● </UL>
More Unordered Lists...
⚫ The TYPE=shape attribute allows you to change the type
of bullet that appears
⚫ circle corresponds to an empty round bullet
⚫ square corresponds to a square bullet
⚫ disc corresponds to a solid round bullet; this is the default
value
Forms
▪ What are forms?
• An HTML form is an area of the document that allows
users to enter information into fields.
• A form may be used to collect personal information,
opinions in polls, user preferences and other kinds of
information.
Forms
⚫ There are two basic components of a Web form: the shell,
the part that the user fills out, and the script which
processes the information
⚫ HTML tags are used to create the form shell. Using
HTML you can create text boxes, radio buttons,
checkboxes, drop-down menus, and more...
Example: Form
Text Box
Drop-down Menu
Radio Buttons
Checkboxes
Text Area
Reset Button
Submit Button
The Form Shell
⚫ A form shell has three important parts:
⚫ the <FORM> tag, which includes the address of the script
which will process the form
⚫ the form elements, like text boxes and radio buttons
⚫ the submit button which triggers the script to send the
entered information to the server
Creating the Shell
⚫ To create a form shell, type <FORM METHOD=POST
ACTION=“script_url”> where “script_url” is the address
of the script
⚫ Create the form elements
⚫ End with a closing </FORM> tag
Creating Text Boxes
⚫ To create a text box, type <INPUT TYPE=“text”
NAME=“name” VALUE=“value” SIZE=n
MAXLENGTH=n>
⚫ The NAME, VALUE, SIZE, and MAXLENGTH
attributes are optional
Text Box Attributes
⚫ The NAME attribute is used to identify the text box to
the processing script
⚫ The VALUE attribute is used to specify the text that
will initially appear in the text box
⚫ The SIZE attribute is used to define the size of the box
in characters
⚫ The MAXLENGTH attribute is used to define the
maximum number of characters that can be typed in
the box
Example: Text Box
● First Name: <INPUT TYPE="text" ⚫ Here’s how it would look
NAME="FirstName"
VALUE="First Name" SIZE=20>
on the Web:
● <BR><BR>