1 / 21

آموزش طراحی وب سایت جلسه دوم – جداول

آموزش طراحی وب سایت جلسه دوم – جداول. تدریس طراحی وب برای اطلاعات بیشتر تماس بگیرید تاو شماره تماس: 09125773990 09371410986 پست الکترونیک : TargetLearning@gmail.com. Tables.

callia
Download Presentation

آموزش طراحی وب سایت جلسه دوم – جداول

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. آموزش طراحی وب سایتجلسه دوم – جداول تدریس طراحی وببرای اطلاعات بیشتر تماس بگیرید تاوشماره تماس: 0912577399009371410986پست الکترونیک : TargetLearning@gmail.com

  2. Tables

  3. Inside the <table> element, the table is written out row by row. A row is contained inside a <tr> element — which stands for table row. • And each cell is then written inside the row element using a <td> element — which stands for table data.

  4. <table border="1"> <tr> <td>Row 1, Column 1</td> <td>Row 1, Column 2</td> </tr> <tr> <td>Row 2, Column 1</td> <td>Row 2, Column 2</td> </tr> </table>

  5. <table border="1">

  6. Basic Table Elements and Attributes The align Attribute <table border="1" align="left">

  7. The cellpadding Attribute cellpadding="5" or cellpadding="2%" The cellspacing Attribute cellspacing="6" or cellspacing="2%"

  8. <table border="1"> <tr> <th></th> <th>Outgoings ({$})</th> <th>Receipts ({$})</th> <th>Profit ({$})</th> </tr> <tr> <th>Quarter 1 (Jan-Mar)</th> <td>11200.00</td> <td>21800.00</td> <td><b>10600.00</b></td> </tr> </table>

  9. Advanced Tables <table border="1"> <caption>Spanning columns using the colspan attribute</caption> <tr> <td bgcolor="#efefef" width="100" height="100">&nbsp;</td>

  10. Adding a <caption> to a Table To add a caption to a table, you just use the <caption> element after the opening <table> tag and before the first row or header: <table> <caption> … </caption> <tr> …..

  11. <td bgcolor="#999999" width="100" height="100">&nbsp;</td> <td bgcolor="#000000" width="100" height="100">&nbsp;</td> </tr> <tr> <td bgcolor="#efefef" width="100" height="100">&nbsp;</td> <td colspan="2" bgcolor="#999999">&nbsp;</td> </tr> <tr> <td colspan="3" bgcolor="#efefef" height="100">&nbsp;</td> </tr> </table>

  12. Spanning Columns Using the colspan Attribute As you saw when looking at the <td> and <th> elements, both can carry an attribute that allows the table cell to span more than one column.

  13. <table border="1"> <caption>Spanning rows using the colspan attribute</caption> <tr> <td bgcolor="#efefef" width="100" height="100">&nbsp;</td>

  14. <td bgcolor="#999999" width="100" height="100">&nbsp;</td> <td rowspan="3" bgcolor="#000000" width="100" height="100">&nbsp;</td> </tr> <tr> <td bgcolor="#efefef" height="100">&nbsp;</td> <td rowspan="2" bgcolor="#999999">&nbsp;</td> </tr> <tr> <td bgcolor="#efefef" height="100">&nbsp;</td> </tr> </table>

  15. Spanning Rows Using the rowspan Attribute • The rowpsan attribute does much the same thing as the colspan attribute, but it works in the opposite direction; it allows cells to stretch vertically across cells.

  16. Exercises

More Related