Building the User Interface by Using HTML5: Organization ... - server
Building the User Interface by Using HTML5: Organization ... - server
Building the User Interface by Using HTML5: Organization ... - server
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
68 | Lesson 3<br />
CREATE A TABLE<br />
GET READY. To create a table, perform <strong>the</strong> following steps:<br />
1. <strong>Using</strong> an HTML editor or app development tool and a Web browser, create a file<br />
named L3-PracTable.html with <strong>the</strong> following markup:<br />
<br />
LICENSED PRODUCT NOT FOR RESALE<br />
<br />
<br />
<br />
High-grossing Movies<br />
<br />
<br />
<br />
<br />
Movie<br />
Gross Proceeds<br />
<br />
<br />
Avatar<br />
$2.7 billion<br />
<br />
<br />
Titanic<br />
$2.1 billion<br />
<br />
<br />
The Dark Knight<br />
$1.0 billion<br />
<br />
<br />
<br />
<br />
2. Italicize <strong>the</strong> title of each movie <strong>by</strong> using <strong>the</strong> tags.<br />
3. Modify <strong>the</strong> table to add a caption above <strong>the</strong> table that reads “High-grossing Movies”<br />
and a footer that includes <strong>the</strong> word “Total” and “$5.8 billion”.<br />
4. Change <strong>the</strong> background of <strong>the</strong> entire table, from column headings through<br />
<strong>the</strong> footer, to khaki, using hexadecimal code #F0E68C. To do so, add <strong>the</strong><br />
following colgroup markup between and ,<br />
as follows:<br />
<br />
<br />
<br />
<br />
5. Save <strong>the</strong> file and view it in a Web browser. The finished table should look similar to<br />
Figure 3-13. Revise your markup if necessary and resave <strong>the</strong> file.<br />
6. Close <strong>the</strong> file, and <strong>the</strong>n leave <strong>the</strong> editing tool and Web browser open if you continue<br />
to <strong>the</strong> next exercise during this session.