Untitled


SUBMITTED BY: Guest

DATE: March 15, 2015, 3:54 a.m.

FORMAT: Text only

SIZE: 1.0 kB

HITS: 20787

  1. The <ul> and <ol> elements define numbered and bulleted lists respectively. Each list item must be enclosed in <li> tags as shown below:
  2. <ul>
  3. <li>Item 1</li>
  4. <li>Item 2</li>
  5. <li>Item 3</li>
  6. </ul>
  7. Lists can be nested inside each other.
  8. The <table> tag can also be used to represent tabular data. It has the following structure:
  9. <table> Table Element
  10. <tr> Table Row
  11. <td>Content</td> Column Title (needed for accessibility)
  12. </tr> Table Cell
  13. </table>
  14. Here is the code for a three-column table:
  15. <table>
  16. <tr>
  17. <th>Column A</th>
  18. <th>Column B</th>
  19. <th>Column C</th>
  20. </tr>
  21. <tr>
  22. <td>Row 1</td>
  23. <td>Row 1</td>
  24. <td>Row 1</td>
  25. </tr>
  26. <tr>
  27. <td>Row 2</td>
  28. <td>Row 2</td>
  29. <td>Row 2</td>
  30. </tr>
  31. </table>
  32. The content inside the <th> (table header) tags renders in bold. Although the table header row is not strictly necessary, it is considered good practice to include it in order to make the data accessible to people with vision impairments.

comments powered by Disqus