Advertisement
Shavit

HTMLex2

Sep 20th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.30 KB | None | 0 0
  1. <!--Shavit Borisov-->
  2. <!--16.9.14-->
  3. <!--http://pastebin.com/0tuaL8be-->
  4.  
  5. <!DOCTYPE html>
  6. <html>
  7.     <head>
  8.         <meta charset="UTF-8">
  9.         <title>Example 2</title>
  10.     </head>
  11.     <body>
  12.         <h1>This page will demonstrate the use of Tables in various layout and content (inc. images)</h1>
  13.         <hr>
  14.         <pre>Table 1 demonstrates the use of the following tags: table, caption, thead, tbody, tr, th, td.</pre>
  15.         <table border = "1" style = "width: 365px">
  16.         <caption style = "caption-side: bottom; background-color: lightblue">Table1</caption>
  17.             <thead align = "center" style = "background-color: gray">
  18.                 <tr>
  19.                     <th>עמודה 1</th>
  20.                     <th>עמודה 2</th>
  21.                     <th>עמודה 3</th>
  22.                     <th>עמודה 4</th>
  23.                 </tr>
  24.             </thead>
  25.             <tbody align = "center">
  26.                 <tr>
  27.                     <td>1.1</td>
  28.                     <td>1.2</td>
  29.                     <td>1.3</td>
  30.                     <td>1.4</td>
  31.                 </tr>
  32.                 <tr>
  33.                     <td>2.1</td>
  34.                     <td>2.2</td>
  35.                     <td>2.3</td>
  36.                     <td>2.4</td>
  37.                 </tr>
  38.                 <tr>
  39.                     <td>3.1</td>
  40.                     <td>3.2</td>
  41.                     <td>3.3</td>
  42.                     <td>3.4</td>
  43.                 </tr>
  44.             </tbody>
  45.         </table>
  46.         <hr>
  47.         <pre>Table 2 demonstrates the use of the following tags/attributes: colspan, rowspan, border-collapse, img, table-layout, cell padding, text-allign, margin, (text) direction</pre>
  48.         <table border = "1" style = "width: 365px; table-layout: fixed; border-collapse: collapse" >
  49.         <caption style = "caption-side: bottom; background-color: lightblue">Table2</caption>
  50.             <tr>
  51.                 <th colspan = "4" align = "center" style = "background-color: yellow">כותרת ראשית לטבלה</th>
  52.             </tr>
  53.             <tr align = "center" style = "background-color: yellow">
  54.                 <th>עמודה 1</th>
  55.                 <th colspan = "2">עמודה 2</th>
  56.                 <th>עמודה 3</th>
  57.             </tr>
  58.             <tbody align = "center">
  59.                 <tr>
  60.                     <td rowspan = "3" align = "right" style = "text-align: right; direction: rtl; vertical-align: top">איזור בטבלה שניתן להכניס בו טקסט חופשי.</td>
  61.                     <td>1.2</td>
  62.                     <td rowspan = "2"><img src = "http://img1.wikia.nocookie.net/__cb20130105034100/unanything/images/f/f6/Grumpy_Cat.jpg" width = "88"></td>
  63.                     <td>1.4</td>
  64.                 </tr>
  65.                 <tr>
  66.                     <td>2.2</td>
  67.                     <td>2.4</td>
  68.                 </tr>
  69.                 <tr>
  70.                     <td>3.2</td>
  71.                     <td>3.3</td>
  72.                     <td>3.4</td>
  73.                 </tr>
  74.             </tbody>
  75.         </table>
  76.     </body>
  77. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement