HTML Mastery Quiz

Test your knowledge with this comprehensive HTML quiz covering all concepts from the course.

Quiz Icon
Quiz Progress

HTML Mastery Quiz

This quiz contains 100 questions (80 multiple-choice, 20 code-based). You need to score at least 70% to pass.

Question 1

What does HTML stand for?

Question 2

Write the basic HTML5 document structure with the following elements:

  • DOCTYPE declaration
  • HTML element with lang attribute set to "en"
  • Head section with title "My Page"
  • Body section with an h1 heading "Hello World"
answer.html

Question 3

Which tag is used to create a hyperlink in HTML?

Question 4

Which HTML element is used for the largest heading?

Question 5

Create a form with:

  • Text input for "Full Name" (required)
  • Email input with placeholder "your@email.com"
  • Submit button with text "Register"
form.html

Question 6

What is the correct HTML for creating a dropdown list?

Question 7

Create a table with 2 columns ("Product", "Price") and 3 rows of data:

  • Apples - $1.99
  • Oranges - $2.49
  • Bananas - $0.99
table.html

Question 8

Create an image gallery with:

  • A container div with class "gallery"
  • Three images (use placeholder URLs: image1.jpg, image2.jpg, image3.jpg)
  • Each image should have alt text describing it
gallery.html

Question 9

Which attribute specifies an alternate text for an image?

Question 10

Create a semantic HTML5 page layout with:

  • Header with site title "My Blog"
  • Navigation with links to "Home", "About", "Contact"
  • Main content area with an article
  • Footer with copyright information
layout.html

Question 11

Which tag is used to define a line break?

Question 12

Which HTML element is used to define important text?

Question 13

Create an ordered list of programming languages with:

  • JavaScript
  • Python
  • Java
  • C++

Make the list start from number 5

list.html

Question 14

Which character entity is used for a non-breaking space?

Question 15

Which input type creates a slider control?

Question 16

Create a video player with:

  • Source file "video.mp4"
  • Poster image "preview.jpg"
  • Width 640px, height 360px
  • Controls enabled
  • Fallback text "Your browser does not support HTML5 video"
video.html

Question 17

Which HTML element is used to specify a footer for a document or section?

Question 18

Create a form with:

  • Radio buttons for "Gender" (Male, Female, Other)
  • Checkboxes for "Interests" (Sports, Music, Reading)
  • Text area for "Comments" (5 rows)
form.html

Question 19

Which HTML element defines the title of a document?

Question 20

Which attribute is used to provide a unique name to an HTML element?

Question 45

Create a responsive image with:

  • Source file "image.jpg"
  • Alternative text "Responsive image"
  • Sources for different screen sizes: small (400px), medium (800px), large (1200px)
  • Default source for screens larger than 1200px
image.html

Question 67

Which HTML5 element represents a self-contained composition in a document?

Question 82

Create a registration form with:

  • Name field (text, required)
  • Email field (email type, required)
  • Password field (password type, minlength 8)
  • Birthdate field (date type)
  • Submit button
register.html

Question 100

Which HTML element is used for embedding external applications?