Skip to main content

Practical Exercise 1: Basic HTML Document

In this practical HTML exercise, we will learn how to create a basic HTML file with the minimum structure. We will add the !DOCTYPE tag at the beginning and the html, head, and body tags.

Objective

Create a Basic HTML Document

Activity

Create a basic HTML file with the minimum structure<!DOCTYPE html>,<html>,<head>,<body>

Interactive Solution

Solution with complete HTML code

HTML
<!DOCTYPE html>
<html>
<head>
<title>Documento HTML Básico</title>
</head>
<!-- Este es un comentario HTML -->
<body>
<h1>Hola, Mundo!</h1>
</body>
</html>
info

🔎Review the following sections for more information on this topic: