0
0
HTMLmarkup~5 mins

HTML document structure - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the <!DOCTYPE html> declaration in an HTML document?
It tells the browser that the document is an HTML5 document, ensuring proper rendering and standards compliance.
Click to reveal answer
beginner
Name the main sections inside a basic HTML document structure.
The main sections are <head> and <body>. The <head> contains metadata and links, while the <body> contains the visible content.
Click to reveal answer
beginner
What is the role of the <meta charset="UTF-8"> tag in the <head> section?
It sets the character encoding to UTF-8, which supports most characters and symbols, ensuring text displays correctly.
Click to reveal answer
beginner
Why should the <title> tag be included inside the <head>?
The <title> sets the page title shown in the browser tab and helps with search engine results and accessibility.
Click to reveal answer
intermediate
What semantic element is used to wrap the main content visible to users in an HTML document?
The <main> element is used to wrap the main content, helping screen readers and improving page structure.
Click to reveal answer
Which tag is used to define the start of an HTML document?
A<!DOCTYPE html>
B<html>
C<head>
D<body>
Where should the <title> tag be placed in an HTML document?
AInside the <body>
BInside the <head>
COutside <html>
DAt the end of the document