click below
click below
Normal Size Small Size show me how
Week 4
Table/List
| Question | Answer |
|---|---|
| <table> | table |
| <tr> | row |
| <th> | header |
| <td> | table cell |
| th { text-align:left; } | Left Align Heading |
| table { border: 2px solid black; } | Border for the table |
| table, th, td { border: 2px solid black; } | Border for the table, header and cell |
| table{ border-collapse: collapse; } | Table Collapsed border |
| td {padding:20px;} | Add cell padding |
| table { border-spacing: 50px; } | Table Border Spacing |
| <th colspan="3">example</th> | Cell that Span in three Columns |
| <th rowspan="3">example</th> | Cell that Span in three Rows |
| <style> table#tab01 { color: red; background-color:yellow; width:50%; } </style> <table id="tab01"> | Special style for the table |
| <li> | List |
| <ul> | Unordered List |
| <ol> | Ordered List |
| Disc | Default bullet |
| <ol type="A"> | Uppercase Letter for Ordered List |
| <ol type="a"> | Lowercase Letter for Ordered List |
| <ol type="I"> | Uppercase Roman Letter for Ordered List |
| <ol type="i"> | Lowercase Roman Letter for Ordered List |
| <ol type="1"> | Numbers for Ordered List |
| <dl> | Description list |
| <dt> | Term name |
| <dd> | Describes each term |