Академический Документы
Профессиональный Документы
Культура Документы
1
Defining a Table Structure XP
2
Using the <table>, XP
<tr>, and <td> Tags
3
The General Table Syntax XP
<table>
<tr>
<td> First Cell </td>
<td> Second Cell </td>
</tr>
<tr>
<td> Third Cell </td>
<td> Fourth Cell </td>
</tr>
</table>
two rows
two columns 4
Columns within a Table XP
5
HTML Structure of a Table XP
beginning of the
table structure
table cells
7
Adding Table Headings to the Table XP
table
headings
8
Creating a Table Caption XP
9
Table Captions XP
10
Result of a Table Caption XP
caption text
caption will be
centered above
the table
11
Modifying the Appearance of a Table XP
12
Adding a Table Border XP
This figure shows the effect on a table’s border when the border size is varied.
14
Adding a 5-Pixel Border to a Table XP
15
Controlling Cell Spacing XP
16
Defining Cell Padding XP
• To control the space between the table text and the cell
borders, add the cellpadding attribute to the table tag.
• The syntax for this attribute is:
<table cellpadding=“value”>
– value is the distance from the table text to the cell border, as
measured in pixels
– the default cell padding value is 1 pixel
17
Tables with Different XP
Cell Spacing Values
different cell spacing values
18
Table Frames and Rules XP
20
Effect of Different Frame Values XP
This figure shows the effect of each of the frame values on the table grid.
21
Creating Frames and Rules Continued XP
22
Working with Table and Cell Size XP
24
Setting the Width of the XP
Table to 500 Pixels
25
Defining Cell and Column Sizes XP
26
Defining Cell and Column Sizes XP
27
Aligning a Table on the Web Page XP
28
Results of a Right-Aligned Table XP
29
Aligning the Contents of a Table XP
30
Values of the Align XP
and Valign Attributes
31
Spanning Rows and Columns XP
32
Example of Spanning Cells XP
This cell
spans two this cell
columns and spans three
two rows columns
This cell
spans three
rows
33
A Table Structure with a XP
Row-Spanning Cell
HTML code
resulting table 34
Adding Spanning Cells to a Table XP
35
Another Example of Spanning Cells XP
36
Another Example of Spanning Cells XP
37
Applying a Background Color XP
38
Specifying Table, Row, and Cell Colors
Specifying Table, Row, and Cell Colors
The bordercolor Attribute XP
parch.jpg
43
Table Layout of a Web Page XP
620 pixels
1) newspaper logo
44
Using Nested Table XP
a sketch of a web
page using nested
tables
45
The Result of the Web Page XP
using Nested Tables
46
An Example of the Contents XP
47
An Example of the Gargoyle Notes XP
48
Example from Class Web Site
Sample Template based on Class Web Page
http://maya.cs.depaul.edu/~classes/it130/html/index-template.html
HTML code