20 basic HTML quiz to test yourself

Check how much you know with these basic HTML quizes 1 min


  1. 1 What does HTML stand for?

    1. Hyperlinks and Text Markup Language
    2. Home Tool Markup Language
    3. Hyper Text Markup Language
    Correct!
    Wrong!

    Hyper Text Markup Language

  2. 2 Who is making the Web standards?

    1. The World Wide Web Consortium
    2. Google
    3. Mozilla
    4. Microsoft
    Correct!
    Wrong!

    The World Wide Web Consortium

  3. 3 Choose the correct HTML element for the largest heading:

    1. ⋖ h6 >
    2. ⋖ h1 >
    3. ⋖ heading >
    4. ⋖ head >
    Correct!
    Wrong!
  4. 4 What is the correct HTML element for inserting a line break?

    Advertisements
    1. ⋖ br >
    2. ⋖ break >
    3. ⋖ lb >
    Correct!
    Wrong!


    The line break is inserted with the ⋖br> element

  5. 5 What is the correct HTML for adding a background color?

    1. ⋖ body style="background-color:yellow;" >
    2. ⋖ body bg="yellow" >
    3. ⋖ background>yellow ⋖/background>
    Correct!
    Wrong!
  6. 6 Choose the correct HTML element to define important text

    1. ⋖ important >
    2. ⋖ strong >
    3. ⋖ i >
    4. ⋖ b >
    Correct!
    Wrong!
  7. 7 Choose the correct HTML element to define emphasized text

    1. ⋖ em >
    2. ⋖ i >
    3. ⋖ italic >
    Correct!
    Wrong!
  8. 8 What is the correct HTML for creating a hyperlink?

    Advertisements

    1. ⋖ a name="http://www.w3schools.com">W3Schools.com ⋖/a>
    2. ⋖a>http://www.w3schools.com ⋖/a>
    3. ⋖a href="http://www.w3schools.com">W3Schools ⋖/a>
    4. ⋖a url="http://www.w3schools.com">W3Schools.com ⋖/a>
    Correct!
    Wrong!
  9. 9 Which character is used to indicate an end tag?

    1. <
    2. *
    3. /
    4. ^
    Correct!
    Wrong!
  10. 10 How can you open a link in a new tab/browser window?

    1. ⋖a href="url">
    2. ⋖a href="url" target="_blank">
    3. ⋖a href="url" target="new">
    Correct!
    Wrong!
  11. 11 Inline elements are normally displayed without starting a new line.

    1. True
    2. False
    Correct!
    Wrong!
  12. 12 How can you make a numbered list?

    Advertisements

    1. < dl ⋗
    2. < ul ⋗
    3. < ol ⋗
    4. < list ⋗
    Correct!
    Wrong!
  13. 13 Which of these elements are all <table⋗ elements?

    1. ⋖thead> ⋖body> ⋖tr>
    2. ⋖table> ⋖head> ⋖tfoot>
    3. ⋖table> <tr⋗ <tt⋗
    4. ⋖ table > ⋖ tr > ⋖ td >
    Correct!
    Wrong!
  14. 14 How can you make a bulleted list?

    1. ⋖dl>
    2. ⋖list>
    3. ⋖ul>
    4. ⋖ol>
    Correct!
    Wrong!
  15. 15 What is the correct HTML for making a checkbox?

    1. ⋖input type="check">
    2. ⋖input type="checkbox">
    3. ⋖checkbox>
    4. ⋖check>
    Correct!
    Wrong!
  16. 16 What is the correct HTML for making a text input field?

    Advertisements

    1. ⋖input type="textfield">
    2. ⋖input type="text">
    3. ⋖textfield>
    4. ⋖textinput type="text">
    Correct!
    Wrong!
  17. 17 What is the correct HTML for making a drop-down list?

    1. ⋖input type="list">
    2. ⋖select>
    3. ⋖input type="dropdown">
    4. ⋖list>
    Correct!
    Wrong!

    ⋖select>

    The ⋖select> element is used to create a drop-down list.

  18. 18 What is the correct HTML for making a text area?

    1. ⋖input type="textbox">
    2. ⋖textarea>
    3. ⋖input type="textarea">
    Correct!
    Wrong!

    ⋖textarea>

    The ⋖textarea> tag defines a multi-line text input control.

    A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).

    The size of a text area can be specified by the cols and rows attributes, or even better; through CSS' height and width properties.

  19. 19 What is the correct HTML for inserting an image?

    1. ⋖image src="image.gif" alt="MyImage">
    2. ⋖img src="image.gif" alt="MyImage">
    3. ⋖img href="image.gif" alt="MyImage">
    4. ⋖img alt="MyImage">image.gif
    Correct!
    Wrong!
  20. 20 What is the correct HTML for inserting a background image?

    1. ⋖body style="background-image">image.jpg"⋖/body>
    2. ⋖body style="background-image: url(image.gif)">
    3. ⋖body style="bg-img(image.gif)">
    Correct!
    Wrong!

20 basic HTML quiz to test yourself

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
1
Wow
love love
6
love
hate hate
0
hate
geeky geeky
0
geeky
win win
1
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