-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (82 loc) · 3.13 KB
/
index.html
File metadata and controls
82 lines (82 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Challenge Project: Build Your Own Cheat Sheet</title>
<link href="./style.css" rel="stylesheet">
</head>
<body>
<div>
<h1>HTML Tables Cheatsheet</h1>
<h3>Table Tags</h3>
<table>
<thead>
<tr>
<th>Tags</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tr>
<td><table></td>
<td>Table Element</td>
<td>The table element has content that is used to represent a two-dimensional table made of rows and columns.</td>
</tr>
<tr>
<td><tbody></td>
<td>Table Body</td>
<td>Is a semantic element that will contain all table data other than table heading and table footer content.</td>
</tr>
<tr>
<td><thead></td>
<td>Table Head</td>
<td>Is used to group header content. Is used in conjuction with the <tbody> and <tfoot> elements. Is usually in the form of column headers</td>
</tr>
<tr>
<td><tr></td>
<td>Table row</td>
<td>Is used to add rows to a table before adding table data and table headings.</td>
</tr>
<tr>
<td><td></td>
<td>Table Data</td>
<td>Can be nested inside a table row element to add a cell of data to a table.</td>
</tr>
<tr>
<td><th></td>
<td>Table Heading</td>
<td>Is used to add titles to rows and columns of a table and must be enclosed in a table row element</td>
</tr>
<tr>
<td><tfoot></td>
<td>Table Footer</td>
<td> uses table rows to give footer content or to summarize content at the end of a table</td>
</tr>
</table>
</div>
<br>
<div>
<h3>Table Attributes</h3>
<table>
<thead>
<tr>
<th>Tags</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tr>
<td>rowspan</td>
<td>Row Span</td>
<td>Indicates how many columns that particular cell should span within the table. The colspan value is set to 1 by default and will take any positive integer between 1 and 1000.</td>
</tr>
<tr>
<td>colspan</td>
<td>Column Span</td>
<td>Indicates how many rows that particular cell should span within the table. The rowspan value is set to 1 by default and will take any positive integer up to 65534.</td>
</tr>
</table>
</div>
</body>
</html>