Page 58 - DCAP408_WEB_PROGRAMMING
P. 58
Web Programming
Notes <dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
</body>
</html>
The output is shown in Figure 2.5:
Figure 2.5
Notes Inside the <dd> tag you can put paragraphs, line breaks, images, links, other lists, etc.
Self Assessment
Fill in the blanks:
9. The <video> tag also has a whole host of events you can hook into with …………………
10. An unordered list starts with the ………………. tag
11. An ordered list starts with the <ol> tag. Each list item starts with the ……………… tag.
12. A definition list is not a list of ………………. items.
2.6 Tables
Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each
row is divided into data cells (with the <td> tag). The letters td stands for “table data,” which is
the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal
rules, tables, etc.
Example: Tables in html.
<html>
52 LOVELY PROFESSIONAL UNIVERSITY