0
0
HTMLmarkup~20 mins

What is HTML - Practice Questions & Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
HTML Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the main purpose of HTML?
Choose the best description of what HTML does in web development.
AHTML runs the logic and calculations behind a web page.
BHTML styles the colors and fonts of a web page.
CHTML structures the content on a web page, like headings, paragraphs, and images.
DHTML stores data in databases for websites.
Attempts:
2 left
💡 Hint
Think about what you see on a page before colors or interactions.
📝 Syntax
intermediate
1:00remaining
Identify the correct HTML tag for a paragraph
Which option shows the correct HTML tag to create a paragraph of text?
A<p>This is a paragraph.</p>
B<para>This is a paragraph.</para>
C<paragraph>This is a paragraph.</paragraph>
D<text>This is a paragraph.</text>
Attempts:
2 left
💡 Hint
HTML uses short tag names for common elements.
rendering
advanced
2:00remaining
What will this HTML code display in the browser?
Look at this HTML snippet and choose what the browser will show.
HTML
<!DOCTYPE html>
<html lang="en">
<head><title>Test</title></head>
<body>
<h1>Welcome</h1>
<p>This is a <strong>simple</strong> page.</p>
</body>
</html>
AA big heading saying 'Welcome' and a paragraph with the word 'simple' in bold.
BA paragraph with 'Welcome' and 'simple' in italics.
COnly the word 'Welcome' in normal text, no paragraph shown.
DNothing will show because the code is missing the <body> tag.
Attempts:
2 left
💡 Hint
Look for heading and paragraph tags and the tag meaning.
selector
advanced
1:30remaining
Which CSS selector targets all paragraphs inside a section?
Choose the CSS selector that selects every <p> inside a <section> element.
Ap section
Bsection p
Csection > p
Dp > section
Attempts:
2 left
💡 Hint
Think about how to select descendants in CSS.
accessibility
expert
1:30remaining
Which HTML attribute improves accessibility for images?
Choose the attribute that helps screen readers understand images.
Ahref
Btitle
Csrc
Dalt
Attempts:
2 left
💡 Hint
This attribute provides a text description of the image.