Escolar Documentos
Profissional Documentos
Cultura Documentos
Curso de Fundamentos
Introdução
Todos os documentos HTML têm a mesma estrutura
básica ou clichê que precisa estar em vigor antes que
qualquer coisa útil possa ser feita. Nesta lição, vamos
explorar as diferentes partes deste boilerplate e ver
como tudo se encaixa.
O DOCTYPE
Elemento HTML
<!DOCTYPE html>
<html lang="en">
</html>
Elemento Head
Elemento Title
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Webpage</title>
</head>
</html>
Elemento do corpo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Webpage</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Webpage</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
VSCode shortcut
VSCode has a built-in shortcut you can use for
generating all the boilerplate in one go. Please note that
this shortcut only works while editing a file with the
‘.html’ extension or a text file with the HTML language
already selected. To trigger the shortcut, delete
everything in the file and just enter on the first line. This
will bring up a couple of options. Press the key to
choose the first one, and voila, you should have all the
boilerplate populated for you. index.html ! Enter
Assignment
Verificação de conhecimento
Esta seção contém perguntas para você verificar sua
compreensão desta lição por conta própria. Se você
estiver tendo problemas para responder a uma
pergunta, clique nela e revise o material ao qual ela
está vinculada.
Recursos adicionais
Esta seção contém links úteis para conteúdo
relacionado. Não é obrigatório, então considere-o
suplementar.