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

Course Content

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: HTML Document Structure

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

css

index

js

index

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

css

index

js

index

copy

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 2
We're sorry to hear that something went wrong. What happened?
some-alt