15.04.2018 Views

programming-for-dummies

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

472<br />

Making Tables<br />

To define the alignment of data in a table, you can choose between center,<br />

left, or right, such as<br />

<br />

To define the border of a table, specify a border value like this:<br />

<br />

To define the cell padding and cell spacing, specify a value like this:<br />

<br />

To define the width of the table, define a percentage like this:<br />

<br />

If you want to define multiple options, it’s probably easier to store them on<br />

separate lines like this:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Defining a table heading<br />

You may want to define headings <strong>for</strong> a table with the and tags.<br />

The following code produces the results shown in Figure 1-3:<br />

<br />

<br />

This text appears in the title bar.<br />

<br />

<br />

Column 1<br />

Column 2<br />

<br />

<br />

Each time you use the and tags, you create another column in<br />

your table.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!