20 basic HTML quiz to test yourself (part 2)

Check how much you know with these HTML quizes 1 min


  1. 1 An ⋖iframe> is used to display a web page within a web page.

    1. False
    2. True
    3. There is no such thing as an ⋖iframe>
    Correct!
    Wrong!
  2. 2 HTML comments start with ⋖!-- and end with -->

    1. True
    2. False
    Correct!
    Wrong!
  3. 3 Block elements are normally displayed without starting a new line.

    1. True
    2. False
    Correct!
    Wrong!
  4. 4 Which HTML element defines the title of a document?

    Advertisements
    1. ⋖title>
    2. ⋖head>
    3. ⋖meta>
    Correct!
    Wrong!
  5. 5 Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

    1. alt
    2. src
    3. title
    4. longdesc
    Correct!
    Wrong!
  6. 6 Which doctype is correct for HTML5?

    1. ⋖!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
    2. ⋖!DOCTYPE html>
    3. ⋖!DOCTYPE HTML5>
    Correct!
    Wrong!
  7. 7 Which HTML element is used to specify a footer for a document or section?

    1. ⋖section>
    2. ⋖footer>
    3. ⋖bottom>
    Correct!
    Wrong!
  8. 8 In HTML, you can embed SVG elements directly into an HTML page.

    Advertisements
    1. False
    2. True
    Correct!
    Wrong!
  9. 9 What is the correct HTML element for playing video files?

    1. ⋖media>
    2. ⋖movie>
    3. ⋖video>
    Correct!
    Wrong!
  10. 10 What is the correct HTML element for playing audio files?

    1. ⋖sound>
    2. ⋖audio>
    3. ⋖mp3>
    Correct!
    Wrong!
  11. 11 The HTML global attribute, "contenteditable" is used to:

    1. Specifies a context menu for an element. The menu appears when a user right-clicks on the element
    2. Return the position of the first found occurrence of content inside a string
    3. Specify whether the content of an element should be editable or not
    4. Update content from the server
    Correct!
    Wrong!
  12. 12 In HTML, onblur and onfocus are:

    Advertisements
    1. Event attributes
    2. Style attributes
    3. HTML elements
    Correct!
    Wrong!
  13. 13 Graphics defined by SVG is in which format?

    1. HTML
    2. XML
    3. CSS
    Correct!
    Wrong!
  14. 14 The HTML ⋖canvas> element is used to:

    1. create draggable elements
    2. display database records
    3. draw graphics
    4. manipulate data in MySQL
    Correct!
    Wrong!

    ⋖canvas>

    The ⋖canvas> tag is used to draw graphics, on the fly, via scripting (usually JavaScript).

    The ⋖canvas> tag is only a container for graphics, you must use a script to actually draw the graphics.

  15. 15 In HTML, which attribute is used to specify that an input field must be filled out?

    1. placeholder
    2. formvalidate
    3. validate
    4. required
    Correct!
    Wrong!
  16. 16 Which input type defines a slider control?

    Advertisements
    1. search
    2. range
    3. slider
    4. controls
    Correct!
    Wrong!
  17. 17 Which HTML element is used to display a scalar measurement within a range?

    1. ⋖meter>
    2. ⋖range>
    3. ⋖measure>
    4. ⋖gauge>
    Correct!
    Wrong!
  18. 18 Which HTML element defines navigation links?

    1. ⋖navigate>
    2. ⋖navigation>
    3. ⋖nav>
    Correct!
    Wrong!
  19. 19 In HTML, what does the ⋖aside> element define?

    1. A navigation list to be shown at the left side of the page
    2. The ASCII character-set; to send information between computers on the Internet
    3. Content aside from the page content
    Correct!
    Wrong!
  20. 20 Which HTML element is used to specify a header for a document or section?

    1. ⋖section>
    2. ⋖header>
    3. ⋖head>
    4. ⋖top>
    Correct!
    Wrong!

20 basic HTML quiz to test yourself (part 2)

Created on
  1. Quiz result
    You scored
    Correct!
    Share Your Result
  2. Quiz result

    YOU NEED MORE PRACTICE

    You scored
    Correct!

    HTML needs you and you need to strengthen your weakness by studying more of what HTML is at W3School or at FreeCodeCamp . You can also check our article on HTML AND CSS Resources

    Share Your Result
  3. Quiz result

    YOU TRIED

    You scored
    Correct!

    You tried but you still need to strengthen your weakness by studying more of what HTML is at W3School or at FreeCodeCamp . You can also check our article on HTML AND CSS Resources

    Share Your Result
  4. Quiz result

    GOOD SCORE

    You scored
    Correct!

    You had a good score but hey, someone got 20/20. You can be that someone by doing the following. 

    • Take corrections
    • Get a refresher course by checking our article on HTML AND CSS Resources
    • Practice
    • Come back and ace this quiz
    Share Your Result
  5. Quiz result

    BIGGGGGGLY

    You scored
    Correct!

    Hey programmer, you got a very good score and I'm sorry about the few slips you had. One thing! did you note your mistakes and try to not fail them again? I bet you did. See you at the top

    Share Your Result
  6. Quiz result

    LEGEND

    You scored
    Correct!

    Hey, HTML legend!. Congrats on getting everything correct. Do you know how amazing this is? I am proud of you!!!

    Share Your Result
Advertisements

Like it? Share with your friends!

Nnaji Victor

Legend

DecaDev, Full-stack developer in training, Gamer, Techie and weirdly cool. I love writing new stuffs that I just discovered and playing around on the net. Check my socials or email me.

What's Your Reaction?

Wow Wow
2
Wow
love love
1
love
hate hate
0
hate
geeky geeky
0
geeky
win win
0
win

0 Comments

Choose A Format
Trivia quiz
Series of questions with right and wrong answers that intends to check knowledge
Poll
Voting to make decisions or determine opinions
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item

Send this to a friend