-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformating.html
More file actions
134 lines (112 loc) · 2.9 KB
/
formating.html
File metadata and controls
134 lines (112 loc) · 2.9 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Text Formatting Reference</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f7fb;
padding: 20px;
}
h1 {
text-align: center;
color: #2c3e50;
}
table {
width: 80%;
margin: auto;
border-collapse: collapse;
background-color: white;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
th, td {
padding: 12px;
text-align: center;
border-bottom: 1px solid #ddd;
}
th {
background-color: #3498db;
color: white;
}
tr:hover {
background-color: #ecf0f1;
}
caption {
font-size: 18px;
font-weight: bold;
padding: 10px;
}
/* Navigation bar */
nav {
background-color: #2c3e50;
text-align: center;
padding: 10px 0;
}
nav a {
color: white;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
font-size: 16px;
}
nav a:hover {
color: #f1c40f;
transition: 0.3s;
}
</style>
</head>
<nav>
<a href="index.html" title="Home">Home</a>
<a href="list.html" title="Lists Example">Lists</a>
<a href="Tablepage.html" title="Table">Tables</a>
<a href="formating.html" title="Text Formatting Reference">Formatting</a>
<a href="form.html" title="About Page">Form</a>
<a href="About.html" title="About Page">About</a>
</nav>
<body>
<h1>HTML Text Formatting Tags</h1>
<table>
<caption>Common Text Formatting Elements</caption>
<thead>
<tr>
<th>Tag</th>
<th>Description</th>
<th>Example Output</th>
</tr>
</thead>
<tbody>
<tr>
<td><b></td>
<td>Displays text in bold</td>
<td><b>Bold Text</b></td>
</tr>
<tr>
<td><i></td>
<td>Displays text in italic</td>
<td><i>Italic Text</i></td>
</tr>
<tr>
<td><u></td>
<td>Underlines the text</td>
<td><u>Underlined Text</u></td>
</tr>
<tr>
<td><strong></td>
<td>Defines important text (semantic bold)</td>
<td><strong>Important Text</strong></td>
</tr>
<tr>
<td><em></td>
<td>Emphasizes text (semantic italic)</td>
<td><em>Emphasized Text</em></td>
</tr>
<tr>
<td><mark></td>
<td>Highlights text</td>
<td><mark>Highlighted Text</mark></td>
</tr>
</tbody>
</table>
</body>
</html>