41
Creating Tables in a Web Site

Creating Tables in a Web Site. Define table elements Describe the steps used to plan, design, and code a table Create a borderless table to organize

Embed Size (px)

Citation preview

Page 1: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Creating Tables in a Web Site

Page 2: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Define table elements Describe the steps used to plan, design, and

code a table Create a borderless table to organize

images Create a vertical menu bar with text links

2

Page 3: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Create a borderless table to organize text Create a horizontal menu bar with text links Create a table with borders Change the horizontal alignment of text

3

Page 4: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Add background color to rows and cells Alter the spacing between and within cells

using the cellspacing and cellpadding attributes

Insert a caption below a table Use the rowspan and colspan attributes

4

Page 5: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

5

Page 6: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

If necessary, click line 10 Type <table border="0" cols="2“ width="90%"> and then press the ENTER key

6

Page 7: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

7

Page 8: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

If necessary, click line 11, type <tr> as the tag, and then press the ENTER key

Type <td><img src=“bellvideologo.gif” width=“430” height=“74” alt=“Bell Video Logo” /></td> and then press the ENTER key

Type <td><img src="csexcellence.gif" width="108” height=”94” alt=”Excellence Award” /></td> and then press the ENTER key

Type </tr> and then press the ENTER key Type </table> and then press the ENTER key

8

Page 9: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

If necessary, click line 17 Enter the HTML code shown below Press the ENTER key twice

9

Page 10: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

10

Page 11: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

If necessary, click line 27 Enter the HTML code as shown in Table 4-5

on page HTM 151 and then press the ENTER key

11

Page 12: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

12

Page 13: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

13

Page 14: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Click the Notepad button on the taskbar Click immediately to the left of the < in

the <!DOCTYPE html tag on line 1. Drag through the first </table> tag on line 15 to highlight lines 1 through 15

Press CTRL+C to copy the selected lines to the Clipboard

Click File on the menu bar and then click New

Press CTRL+V to paste the contents from the Clipboard into a new file

14

Page 15: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

15

Page 16: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Highlight the words, — Great Service, Great Selection, between the <title> and </ title > tags on line 7. Type - New Releases as the text

Click immediately to the right of the </table> tag on line 15. Press the ENTER key three times

Type </body> and then press the ENTER key

Type </html> as the end tag

16

Page 17: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

17

Page 18: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Highlight line 13, which contains the code to insert the image, csexcellence.gif

Press the DELETE key twice

18

Page 19: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

19

Page 20: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

If necessary, click line 16 Enter the HTML code as shown in Table 4-6

on page HTM 159 Press the ENTER key twice

20

Page 21: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

21

Page 22: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

If necessary, click line 28 Enter the HTML code as shown in Table 4-7

on page HTM 162 Press the ENTER key twice

22

Page 23: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

23

Page 24: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

If necessary, click line 53 Enter the HTML code as shown in Table 4-8

on page HTM 164

24

Page 25: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

25

Page 26: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

With a floppy disk in drive A, click File on the menu bar and then click Save As. Type newreleases.htm in the File name text box

If necessary, click 3½ Floppy (A:) in the Save in list. Click the Project04 folder and then click the ProjectFiles folder in the list of available folders. Click the Save button in the Save As dialog box

Click File on the menu bar and then click Print on the file menu

26

Page 27: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

27

Page 28: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Click immediately to the right of the 5 in border=“5” in line 28 and then press the SPACEBAR

Type cellpadding=“2” cellpadding=“5” as the attributes

28

Page 29: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

29

Page 30: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Highlight the text <!--Insert caption here --> on line 69

Type <caption align=“bottom”><em>Listing of movies by actor</em></caption> as the tag

30

Page 31: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

31

Page 32: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

32

Page 33: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Highlight the <!—Insert Movies by Type colspan here --> text on line 29. Type <tr> and then press the ENTER key

Type <th colspan="3" bgcolor="lightsteelblue"> and then press the ENTER key

Type <font color="#993366“ face="chaucer“ size="+2">Movies by Type</font> and then press the ENTER key

Type </th> and then press the ENTER key Type </tr> as the end table row tag

33

Page 34: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

34

Page 35: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Highlight <!--Insert Action rowspan here --> text on line 34

Enter the HTML code as shown in Table 4-9 on page HTM 179

35

Page 36: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

36

Page 37: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Highlight the <!--Insert Comedy rowspan here --> text on line 66 and then press the DELETE key

Type <tr> and then press the ENTER key Type <th rowspan="4" bgcolor="#336699"> and then press the ENTER key

Type <font color="#ffffff“ size="+1">Comedy</font> and then press the ENTER key

Type </th> as the tag

37

Page 38: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

38

Page 39: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

Highlight the <!--Insert Title - Actor(s) colspan here --> text on line 70

Type <th colspan="2" bgcolor="thistle"> and then press the ENTER key

Type <font color="#336699" size="+1">Title - Actor(s)</font> and then press the ENTER key

Type </th> and then press the ENTER key Type </tr> and then press the ENTER key

39

Page 40: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

40

Page 41: Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize

41