Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Structuring an HTML Document | HTML Fundamentals
HTML Essentials
course content

Contenuti del Corso

HTML Essentials

HTML Essentials

1. Understanding the Web and HTML
2. HTML Fundamentals
3. Images and Media
4. Tables and Forms
5. Advanced HTML

book
Challenge: Structuring an HTML Document

Welcome to your first challenge in this course!

Challenges are designed to consolidate the knowledge and theory you've learned so far, by putting it into practice. Learning by doing is the best way to learn, so be sure not to skip any challenges.

So, how do challenges work? You will be given a task that needs to be completed, and then you will be presented with a block of code that has gaps that need to be filled in. Once you have completed the challenge, you can run your code to ensure that everything works as expected.

Below the code block, you will see two buttons: and .

  • The button will reveal hints to help you with the challenge;
  • The button will show you the completed code for that particular challenge.

Feel free to experiment and try different options to complete the task. The more you write, the easier it will become. Good luck!

Task

Fill in the blanks to create the basic structure of an HTML document.

html

index.html

copy

Hint

  • Step 1: The document type declaration should be <!DOCTYPE html>. This declaration informs the browser that the document is written in HTML5.
  • Step 2: Fill in the blanks with the appropriate opening and closing tags (<head></head>) for the head section.
  • Step 3: Use UTF-8 as the character encoding.
  • Step 4: Fill in the blanks with the appropriate opening and closing tags (<body></body>) for the body section.
html

index.html

copy

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 2
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt