Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Outline
4.1
4.2
4.3
4.4
4.5
4.6
4.7
4.8
4.9
4.10
Introduction
Basic HTML Tables
Intermediate HTML Tables and Formatting
Basic HTML Forms
More Complex HTML Forms
Internal Linking
meta Elements
frameset Element
Nested framesets
Web Resources
Objectives
4.1 Introduction
table element:<table></table>
Attributes
Description
Border (1/)
Summary (text)
align (left/center/right)
bgcolor (#xxxxxx/color)
cellpadding (pixels)
Cellspacing (pixels)
Width (pixels/%)
Description
tr
th
<tbody>
<tr>
<td>Apple</td>
<td>$0.25</td>
</tr>
<tr>
<td>Orange</td>
<td>$0.50</td>
</tr>
<tr>
<td>Banana</td>
<td>$1.00</td>
</tr>
<tr>
<td>Pineapple</td>
<td>$2.00</td>
</tr>
</tbody>
7
</table>
.
Element col:
attributes
Description
align
span
tr and th attributes:
attributes
Description
rowspan,colspan
valign
= top
= middle
= bottom
= baseline
10
11
Description
method
method = post
method = get
action
12
Description
type
type = hidden
type = text
type = submit
type = reset
name
value
13
14
Description
rows
cols
Description
Type of forms input
Password box with specific size
Enable users to select from a set of options
Radio button
15
Sub-Element option:
Attributes
Description
selected
16
17
<p>
<strong>Things you liked:</strong><br />
<label>Site design
<input name = "thingsliked" type = "checkbox" value = "Design" /></label>
<label>Links
<input name = "thingsliked" type = "checkbox" value = "Links" /></label>
<label>Ease of use
<input name = "thingsliked" type = "checkbox" value = "Ease" /></label>
<label>Images
<input name = "thingsliked" type = "checkbox" value = "Images" /></label>
<label>Source code
<input name = "thingsliked" type = "checkbox" value = "Code" /></label>
</p>
</form>
18
19
20
21
22
an internal links
address is #id
<ul>
<li>You can meet people from countries around the world.</li>
<li>It is the technology of the future!</li>
</ul>
<h1 id = "bugs">My 3 Favorite Bugs</h1>
<p>
<a href = "#features">Go to <em>Favorite Features</em></a></p>
<ol>
<li>Fire Fly</li>
<li>Gal Ant</li>
<li>Roman Tic</li>
</ol>
.
23
Attributes
name
name
Description
Identifies the type of meta element
= keywords
Provides
<head>
<title>Internet and WWW How to Program - Welcome</title>
25
Description
cols
rows
Sub-Element: frame
Specifies the documents that will be loaded
Attribute src: specifies URL of the page to display
<noframes> tag is a fallback tag for browsers that do not support
frames.
It can be used to link to a non-frameset version of the web site
or to display a message to users that frames are required.
26
27
29
32
33
iframe
<iframe src="URL"></iframe>
http://www.w3schools.com/html/html_colornames.asp
.
35