Repository navigation
Expand file tree
/
Copy pathtags.html
More file actions
92 lines (82 loc) · 2.16 KB
/
Copy pathtags.html
File metadata and controls
92 lines (82 loc) · 2.16 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
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<title>HTML Tags</title>
<meta charset="utf-8">
</head>
<body>
<div>
<a href="index.html">Home</a>
<a href="moby_dick.html">Moby Dick</a>
<a href="tags.html">HTML Tags</a>
</div>
<h1>Important HTML tags</h1>
<img src="images/storm_trooper_tagged.jpg" alt="Tagged Storm Trooper">
<p>
This page is designed as a quick reference for some of the common tags
covered in <a href="http://learnenough.com/html-tutorial"><em>Learn
Enough HTML to Be Dangerous</em></a>. In the process of making it, we'll
learn how to make HTML <em>tables</em> via <code>table</code> and
related tags.
</p>
<p>
The tables below don't include all HTML tags, but they do list many of
the most important ones.
</p>
<h2>Block Elements</h2>
<table>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Purpose</th>
</tr>
<tr>
<td><code>h1</code>–<code>h6</code></td>
<td>headings</td>
<td>include a heading (levels 1–6)</td>
</tr>
<tr>
<td><code>p</code></td>
<td>paragraph</td>
<td>include a paragraph of text</td>
</tr>
<tr>
<td><code>table</code></td>
<td>table</td>
<td>include a table</td>
</tr>
<tr>
<td><code>tr</code></td>
<td>table row</td>
<td>include a row of data</td>
</tr>
<tr>
<td><code>th</code></td>
<td>table header</td>
<td>make a table header</td>
</tr>
<tr>
<td><code>td</code></td>
<td>table data</td>
<td>include a table data cell</td>
</tr>
</table>
<h2>Inline Elements</h2>
<table>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Purpose</th>
<th>Example</th>
<th>Result</th>
</tr>
<tr>
<td><code>em</code></td>
<td>emphasized</td>
<td>make emphasized text</td>
<td><code><em>technical sophistication</em></code></td>
<td><em>technical sophistication</em></td>
</tr>
</table>
</body>
</html>