Chapter 18mChallenge

HTML Editors — Challenge

Learn how to write HTML using Notepad, TextEdit, and VS Code. Create, save, edit, and open your first HTML page with practical examples.

Create a basic HTML file

easy

Write the basic HTML document structure using <!DOCTYPE html>, <html>, <head>, and <body> tags.

Test cases (4)
1 · doctype
expected: <!DOCTYPE html>
2 · html_structure
expected: <html>
3 · head_element
expected: <head>
4 · body_element
expected: <body>
Hint
A basic HTML document starts with <!DOCTYPE html> and contains <html>, <head>, and <body> elements. The head stores document information, while the body contains visible page content.
html
Loading editor...