320 likes | 469 Views
Purpose of this Material. Tables, forms, and lists provide a way to organize data on a Web page.Forms provide the user interface that allows JavaScript to work.Lists provide a default format for organizing content, but they don't interact directly with JavaScript.This course is about using Jav
E N D
1. Chapter 3: HTML Tables, Forms, and Lists 3.1 The table Element
3.2 The form Element
3.3 Creating Pull-Down Lists
3.4 Combining Tables and Forms
3.5 E-Mailing the Contents of Forms
3.6 The list Elements
3.7 Using Frames
2. Purpose of this Material Tables, forms, and lists provide a way to organize data on a Web page.
Forms provide the user interface that allows JavaScript to work.
Lists provide a default format for organizing content, but they dont interact directly with JavaScript.
This course is about using JavaScript/PHP;
HTML is just the interface.
3. 3.1: The table Element Tables help to organize content and provide more control over how a web page uses its space.
Tables often contain forms.
The basic table syntax includes elements for defining rows and columns.
4. Radon Testing
5. Radon Testing
6. More table Elements
7. Merging Rowsand Columns
8. Merging Rowsand Columns
9. The form Element HTML forms provide the online equivalent of a paper form that can be filled in by the user.
Contents of a form can be sent back (indirectly) to the creator of the form or to a server application.
Values entered in form fields can serve as input to JavaScript calculations
The results of JavaScript calculations can change the values of form fields.
10. Attributes of Forms Forms use the <form> </form> tag.
The action attribute allows contents of forms to be sent to an email address.
The enctype="text/plain" and method="post" attributes allow data to be transmitted in an easily readable format.
Forms include one or more <input /> tags, each of which defines one form field.
11. The <input /> Tag's Type Attribute
12. Other <input /> Attributes
13. Output from Document 3.4
14. UsingForms
15. Output from Document 3.5
16. Pull-DownList
17. Output from Document 3.6
18. Combining Tables and Forms
19. E-Mailing the Contents of Forms Use the method and action attributes:
<form method="post"
action="mailto:my_mail@university.edu">
This may not work on all computer systems.
Note that this doesn't allow the user of an HTML document to directly contact the host computer, but acts indirectly through an e-mail client.
The method="post" and enctype="text/plain" attributes deliver contents of all form fields in an easily readable format, embedded in the body of an e-mail. Output from method="get" is less easily readable.
21. Output from Document 3.7
22. Using Lists
23. Lists Demo (see Document 3.8)
25. Output from Document 3.11
27. Using Frames
28. Divide up your screen
29. Heres homeFrame.htm
30. Heres frame1.htm
31. Heres frame2.htm
32. Creating a Split Window
33. Split Window(cont.)