0
0
HTMLmarkup~5 mins

First HTML page - 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 page?
It tells the browser that the document is an HTML5 document, helping it to render the page correctly.
Click to reveal answer
beginner
What does the <title> tag do in an HTML page?
It sets the text shown in the browser tab or window title, helping users identify the page.
Click to reveal answer
beginner
Which tag contains the main visible content of a web page?
The <body> tag contains all the content that users see on the page.
Click to reveal answer
intermediate
Why is it important to include the lang attribute in the <html> tag?
It helps browsers and assistive technologies understand the language of the page, improving accessibility.
Click to reveal answer
intermediate
What is the role of the <meta charset="UTF-8"> tag in the HTML head?
It sets the character encoding to UTF-8, ensuring that most characters and symbols display correctly.
Click to reveal answer
Which tag is used to define the main content visible on a web page?
A<head>
B<html>
C<title>
D<body>
What does the <title> tag affect?
AThe page background color
BThe main heading on the page
CThe text shown in the browser tab
DThe font style of the page