18.11.2016 Views

web-3t

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Web design 1: Introduction to creating a <strong>web</strong>site<br />

Figure 15 - a simple table<br />

Notice that:<br />

• the attribute border in the opening tag creates a border around the table<br />

(default is no border);<br />

• the table header tags centre-align the cell content and render the text bold.<br />

• none of the tags - bar - include attributes; this is the default table<br />

layout: the table is aligned to the left of the browser window, cell content is<br />

aligned to the left and cells stretch to accommodate the largest item in the cell.<br />

‣ Open your aboutme.html file and replace the unordered list of the My three<br />

favourite films section with a table. Follow the example code above to create<br />

a four row, three column table as illustrated in Figure 16:<br />

Figure 16 - favourite films table<br />

Table attributes<br />

Attributes can be applied to all table tags; in general, those applied to tags override<br />

those applied to the tag. In the same way, and attributes<br />

supersede attributes.<br />

Web design 1: Introduction to creating a <strong>web</strong>site (<strong>web</strong>-t3) 22

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

Saved successfully!

Ooh no, something went wrong!