HTML Tutorial Quiz
Medium-difficulty multiple-choice quiz that tests core HTML concepts and applied reasoning based on the tutorial transcript.
Try this quiz
Play through the questions and see your score instantly
Ready to test your knowledge?
7 questions · Quick play · Instant results
Make your own quiz videos
Turn any topic into a polished video quiz — with AI-powered questions, voiceover, and animations. No video editing skills needed.
Unlimited quizzes, free to start
Create as many quizzes as you want. Describe your topic and AI builds the questions, answers, and explanations for you.
Customise everything
Pick from stunning templates, tweak colours and fonts, add your branding, and choose between vertical or landscape formats.
Export-ready videos
Download HD videos optimised for TikTok, YouTube Shorts, Instagram Reels, or full-length YouTube — one click, no editing.
No credit card required
Quiz Questions & Answers
Review every prompt, the correct responses, and helpful context to prep for your own run-through.
Question 1: Why is it recommended to learn HTML before adding CSS and JavaScript?
HTML provides the semantic skeleton so structure is stable before styling or behavior is added.
Learning HTML first lets you avoid using semantic tags later when adding styles.
HTML controls animations and should be learned first to optimize performance.
Browsers only support HTML; CSS and JavaScript are optional plugins.
Question 2: Which minimal scaffold ensures a browser interprets a page as HTML5?
<meta charset='utf-8'> in the body makes the file HTML5.
<!DOCTYPE html> plus <html> with <head> and <body>.
<html lang='en-US'> is required instead of a doctype.
<!DOCTYPE html> alone is sufficient, head and body are optional.
Question 3: If you want a site to serve a default landing page for a directory, which filename should you use?
default.html
index.html
home.html
main.html
Question 4: Which statement correctly distinguishes elements, tags, and attributes?
Tags are the content between tags; attributes are always separate files referenced by tags.
An element is the full structure (opening tag, content, closing tag); tags are the angle-bracket tokens; attributes modify an element's behavior.
Attributes are the same as elements but written with parentheses.
Elements only exist for semantic tags; tags are only used for styling.
Question 5: Which markup choice best improves accessibility and semantic text structure?
Use <h1>–<h6> for hierarchical headings and <p> for paragraphs instead of styling plain divs to look like headings.
Replace headings with <span> elements and add bold styling for screen readers.
Only use <h1> for every title to simplify markup.
Use multiple <br> tags to create section spacing instead of semantic sectioning.
Question 6: When creating an internal link to a page named page2.html in the same folder, which href is best?
href="http://page2.html" is standard for internal pages.
href="/page2.html" with a leading slash is preferred for portability.
href="#page2" targeting only anchors will load page2.html automatically.
href="page2.html" (a relative path)
Question 7: Which combination is most important for embedding an image with good accessibility and portability?
Use <img src="/images/photo.png"> with no alt to keep markup concise.
Embed images only via absolute URLs to external CDNs for portability.
Use <img src="images/photo.png" alt="Descriptive text" title="Optional hint"> with images/ folder and relative path.
Use background-image in HTML markup so screen readers ignore it.