XHTMLTables - CSE 102 Introduction to Web Design and...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 102 Introduction to Web Design and Programming XHTML: Tables
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Practice file <? xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W#C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>My Practice Web Page</title> </head> <body> </body> </html>
Background image of page 2
Tables <table> is a block element used to: present tabular data layout Web pages by aligning content & graphics in organize entries in fill-out forms for user input Use <th> for a cell that contains a header for a column or row <td> & <th> may contain any inline and block elements, including another table (table inside a table) Table caption is optional
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ex, add to practice file: <table border="1"> <caption>A.L. East</caption> <tr> <th>Team</th> <th>Wins</th> <th>Losses</th> </tr> <tr> <td>Yankees</td> <td>97</td> <td>59</td> </tr> <tr> <td>Red Sox</td> <td>93</td> <td>62</td> </tr> </table>
Background image of page 4
Table Attributes border="0" would result in no border increase number of pixels to increase border thickness border outlines table border also implies table rules cellspacing="10" increases spacing between table
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 15

XHTMLTables - CSE 102 Introduction to Web Design and...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online