Page 154 - DCAP202_Fundamentals of Web Programming
P. 154
Unit 12: HTML Forms
Notes
Example:
<html>
<head>
<title>My Page</title>
</head>
<body>
<form name=”myform” action=”http://www.mydomain.com/myformhandler.cgi”
method=”POST”>
<div align=”center”>
<select name=”mydropdown”>
<option value=”Milk”>Fresh Milk</option>
<option value=”Cheese”>Old Cheese</option>
<option value=”Bread”>Hot Bread</option>
</select>
</div>
</form>
</body>
</html>
Task Analyse the use of HTML Drop Down Lists.
Self Assessment
Fill in the blanks:
14. HTML ..............................fields provide essentially the same functionality as HTML Checkbox
Fields.
15. Depending on your settings, .................................. can serve the same purpose as radio
buttons or check boxes.
12.8 Summary
A form is exactly what it says it is, a form that the user fills-in.
The method attribute tells the server how to submit the form information.
Text fields offer a small rectangular box that’s always ready to receive information from
viewers.
A text field is placed on a web page using the <input> tag, with the type attribute set with
a value of “text”.
The World Wide Web got its spidery name from the plentiful connections (links) that link
websites together with the click of a button.
Font face and color depends entirely on the computer and browser that is being used to
view your page.
The HTML <header> tag represents a group of introductory or navigational aids.
Comments are a great asset to new developers and a great way to place little notes to
yourself reminding yourself what pieces of code are doing what.
LOVELY PROFESSIONAL UNIVERSITY 147