25. HTML Quiz

Test yourself

Choose an answer for each question. You get feedback straight away, and your best score is saved on this device.

What does HTML stand for?

  • Hyper Trainer Marking Language
  • HyperText Markup Language
  • High Text Machine Language
  • HyperTool Multi Language

Which element holds the content visitors see on the page?

  • <head>
  • <title>
  • <body>
  • <meta>

Where do attributes go?

  • In the opening tag
  • In the closing tag
  • Between two elements
  • Only in the head

Which attribute gives an image a text description for screen readers?

  • width
  • src
  • href
  • alt

How many <h1> elements should a page normally have?

  • Three
  • Six
  • As many as you like
  • One

Which element creates a line break and has no closing tag?

  • <p>
  • <br>
  • <div>
  • <li>

Which attribute should you add to target="_blank" links to other websites?

  • rel="icon"
  • rel="author"
  • rel="noopener noreferrer"
  • rel="canonical"

How do you make radio buttons work as one group?

  • Give them the same name
  • Give them the same id
  • Give them different name values
  • Put them in a <ul>

Which statement about the id attribute is true?

  • Many elements can share the same id
  • An id must be unique on the page
  • An id can contain spaces
  • An id is only for images

Which entity displays the less-than symbol?

  • &lt;
  • &gt;
  • &amp;
  • &nbsp;

What next?

You have finished the HTML course. Continue with the CSS Tutorial to make your pages look professional, then JavaScript to make them interactive.

Scroll to Top