-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsmall.html
More file actions
284 lines (236 loc) · 12.8 KB
/
small.html
File metadata and controls
284 lines (236 loc) · 12.8 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tag <small></title>
<link rel="stylesheet" href="utils/css/global.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet">
</head>
<body>
<header>
<nav>
<div class="logo">Tags HTML</div>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="referencias.html">Referências</a></li>
<li><a href="sobre.html">Sobre Nós</a></li>
</ul>
</nav>
</header>
<main>
<article class="main-content">
<section class="title-section">
<section class="title-section-tag">
<h1>Tag HTML <small></h1>
</section>
<p class="subtitle">
A tag <code><small></code> é usada para representar um texto com menor ênfase ou menor importância, geralmente exibido com um tamanho de fonte reduzido em relação ao texto normal.
</p>
<section class="content">
<section class="example-section">
<h3>Exemplo</h3>
<p>No exemplo abaixo, a tag <code><small></code> é usada para exibir um aviso legal em tamanho menor:</p>
<div class="code-block">
<pre>
<!DOCTYPE html>
<html>
<body>
<h1>Exemplo da tag <small></h1>
<p>Preço: <strong>R$ 99,00</strong> <small>(impostos não incluídos)</small></p>
<p>Este é um texto normal. <small>E este é um texto menor.</small></p>
</body>
</html>
</pre>
</div>
</section>
<section class="example-section">
<h3>Definição e uso</h3>
<p>
A tag <code><small></code> é um elemento de texto em linha (<em>inline</em>) que representa observações laterais, como notas de rodapé, avisos legais, direitos autorais ou outras informações de menor relevância.
</p>
<p>
Por padrão, os navegadores exibem o conteúdo da tag <code><small></code> em um tamanho de fonte menor que o texto ao redor. No entanto, seu uso é <strong>semântico</strong>, o que significa que indica uma importância reduzida — e não apenas um tamanho visualmente menor.
</p>
<p>
É possível aninhar várias tags <code><small></code> para reduzir ainda mais o tamanho do texto, embora isso seja pouco comum.
</p>
</section>
<section class="example-section">
<h3>Características</h3>
<table class="attributes-table">
<thead>
<tr>
<th>Propriedade</th>
<th>Descrição</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tipo de elemento</td>
<td>Elemento em linha (<code>inline</code>).</td>
</tr>
<tr>
<td>Tag de fechamento</td>
<td>Obrigatória: </small>.</td>
</tr>
<tr>
<td>Uso comum</td>
<td>Notas, observações, direitos autorais e informações complementares.</td>
</tr>
<tr>
<td>Atributos globais</td>
<td>Suporta todos os <a href="https://developer.mozilla.org/pt-BR/docs/Web/HTML/Global_attributes" target="_blank">atributos globais</a> do HTML.</td>
</tr>
</tbody>
</table>
</section>
</section>
</section>
</article>
<aside class="sidebar">
<h2>Outras Tags HTML</h2>
<input type="text" id="searchInput" placeholder="Pesquisar tag..." class="btn search-box">
<ul class="sidebar-links" id="tagList">
<li><a href="canvas.html"><canvas></a></li>
<li><a href="fieldset.html"><fieldset></a></li>
<li><a href="legend.html"><legend></a></li>
<li><a href="picture.html"><picture></a></li>
<li><a href="sub.html"><sub></a></li>
<li><a href="var.html"><var></a></li>
<li><a href="base.html"><base></a></li>
<li><a href="dfn.html"><dfn></a></li>
<li><a href="i.html"><i></a></li>
<li><a href="object.html"><object></a></li>
<li><a href="section.html"><section></a></li>
<li><a href="thead.html"><thead></a></li>
<li><a href="a.html"><a></a></li>
<li><a href="code.html"><code></a></li>
<li><a href="footer.html"><footer></a></li>
<li><a href="main.html"><main></a></li>
<li><a href="q.html"><q></a></li>
<li><a href="svg.html"><svg></a></li>
<li><a href="audio.html"><audio></a></li>
<li><a href="del.html"><del></a></li>
<li><a href="hr.html"><hr></a></li>
<li><a href="nav.html"><nav></a></li>
<li><a href="script.html"><script></a></li>
<li><a href="tfoot.html"><tfoot></a></li>
<li><a href="article.html"><article></a></li>
<li><a href="datalist.html"><datalist></a></li>
<li><a href="header.html"><header></a></li>
<li><a href="meta.html"><meta></a></li>
<li><a href="s.html"><s></a></li>
<li><a href="template.html"><template></a></li>
<li><a href="body.html"><body></a></li>
<li><a href="dt.html"><dt></a></li>
<li><a href="ins.html"><ins></a></li>
<li><a href="output.html"><output></a></li>
<li><a href="span.html"><span></a></li>
<li><a href="track.html"><track></a></li>
<li><a href="abbr.html"><abbr></a></li>
<li><a href="col.html"><col></a></li>
<li><a href="form.html"><form></a></li>
<li><a href="map.html"><map></a></li>
<li><a href="rp.html"><rp></a></li>
<li><a href="table.html"><table></a></li>
<li><a href="doctype.html"><!DOCTYPE></a></li>
<li><a href="cite.html"><cite></a></li>
<li><a href="figure.html"><figure></a></li>
<li><a href="link.html"><link></a></li>
<li><a href="progress.html"><progress></a></li>
<li><a href="sup.html"><sup></a></li>
<li><a href="wbr.html"><wbr></a></li>
<li><a href="area.html"><area></a></li>
<li><a href="data.html"><data></a></li>
<li><a href="head.html"><head></a></li>
<li><a href="menu.html"><menu></a></li>
<li><a href="ruby.html"><ruby></a></li>
<li><a href="td.html"><td></a></li>
<li><a href="button.html"><button></a></li>
<li><a href="embed.html"><embed></a></li>
<li><a href="label.html"><label></a></li>
<li><a href="param.html"><param></a></li>
<li><a href="style.html"><style></a></li>
<li><a href="ul.html"><ul></a></li>
<li><a href="br.html"><br></a></li>
<li><a href="em.html"><em></a></li>
<li><a href="kbd.html"><kbd></a></li>
<li><a href="p.html"><p></a></li>
<li><a href="strong.html"><strong></a></li>
<li><a href="u.html"><u></a></li>
<li><a href="blockquote.html"><blockquote></a></li>
<li><a href="dl.html"><dl></a></li>
<li><a href="input.html"><input></a></li>
<li><a href="option.html"><option></a></li>
<li><a href="source.html"><source></a></li>
<li><a href="tr.html"><tr></a></li>
<li><a href="bdi.html"><bdi></a></li>
<li><a href="dialog.html"><dialog></a></li>
<li><a href="iframe.html"><iframe></a></li>
<li><a href="ol.html"><ol></a></li>
<li><a href="select.html"><select></a></li>
<li><a href="time.html"><time></a></li>
<li><a href="bdo.html"><bdo></a></li>
<li><a href="div.html"><div></a></li>
<li><a href="img.html"><img></a></li>
<li><a href="optgroup.html"><optgroup></a></li>
<li><a href="small.html"><small></a></li>
<li><a href="title.html"><title></a></li>
<li><a href="b.html"><b></a></li>
<li><a href="details.html"><details></a></li>
<li><a href="html.html"><html></a></li>
<li><a href="noscript.html"><noscript></a></li>
<li><a href="search.html"><search></a></li>
<li><a href="th.html"><th></a></li>
<li><a href="aside.html"><aside></a></li>
<li><a href="dd.html"><dd></a></li>
<li><a href="hgroup.html"><hgroup></a></li>
<li><a href="meter.html"><meter></a></li>
<li><a href="samp.html"><samp></a></li>
<li><a href="textarea.html"><textarea></a></li>
<li><a href="address.html"><address></a></li>
<li><a href="colgroup.html"><colgroup></a></li>
<li><a href="h1.html"><h1></a></li>
<li><a href="h2.html"><h2></a></li>
<li><a href="h3.html"><h3></a></li>
<li><a href="h4.html"><h4></a></li>
<li><a href="h5.html"><h5></a></li>
<li><a href="h6.html"><h6></a></li>
<li><a href="mark.html"><mark></a></li>
<li><a href="rt.html"><rt></a></li>
<li><a href="tbody.html"><tbody></a></li>
<li><a href="comment.html"><!--...--></a></li>
<li><a href="caption.html"><caption></a></li>
<li><a href="figcaption.html"><figcaption></a></li>
<li><a href="li.html"><li></a></li>
<li><a href="pre.html"><pre></a></li>
<li><a href="summary.html"><summary></a></li>
<li><a href="video.html"><video></a></li>
</ul>
</aside>
</main>
<footer>
<p>Copyright © 2025 Tutorial HTML5</p>
<p><a href="index.html">Home</a> | <a href="sobre.html">Sobre Nós</a> | <a
href="referencias.html">Referências</a></p>
</footer>
</body>
</html>
<script>
const searchInput = document.getElementById('searchInput');
const tagList = document.getElementById('tagList');
const items = tagList.getElementsByTagName('li');
searchInput.addEventListener('keyup', function () {
const filter = this.value.toLowerCase();
for (let i = 0; i < items.length; i++) {
const link = items[i].getElementsByTagName('a')[0];
const text = link.textContent.toLowerCase();
items[i].style.display = text.includes(filter) ? '' : 'none';
}
});
</script>