1 / 7

HTML (2)

HTML (2). HyperText Markup Language. Tables. The layout of a web page is created by using a table <table> A table has a number of rows <tr> ..and each row has a number of cells <td>. Table Example.

Télécharger la présentation

HTML (2)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HTML (2) HyperText Markup Language Computing

  2. Tables • The layout of a web page is created by using a table <table> • A table has a number of rows <tr> • ..and each row has a number of cells <td> Computing

  3. Table Example <table> <tr> <td>Hello</td> <td></td> </tr> <tr> <td></td> <td>People</td> </tr> <tr> <td>Smee</td> <td></td> </tr></table> HTML code for this table would be… Computing

  4. Table Example 2 A cell may span across several columns… <table> <tr> <td colspan=“3” align=“center”>Hello World</td> </tr> <tr> <td>One</td> <td>Two</td> <td>Three</td> </tr></table> Computing

  5. HTML Challenge 1 • Try to output this table on a web page… Computing

  6. Table Example 3 • Sometimes cells may span several rows… <table> <tr> <td rowspan=“3”>Cell spans 3 rows</td> <td>One</td> </tr> <tr> <td>Two</td> </tr> <tr> <td>Three</td> </tr></table> Use the rowspan attribute… Computing

  7. HTML Challenge 2 • Display this table on a web page: Computing

More Related