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
HTML is HyperText Markup Language, the standard language for the structure of web pages.
Which element holds the content visitors see on the page?
<head><title><body><meta>
The <body> holds visible content. The <head> holds information about the page.
Where do attributes go?
- In the opening tag
- In the closing tag
- Between two elements
- Only in the head
Attributes always go in the opening tag, as name="value" pairs.
Which attribute gives an image a text description for screen readers?
widthsrchrefalt
The alt attribute describes the image. src is the file location.
How many <h1> elements should a page normally have?
- Three
- Six
- As many as you like
- One
One <h1> describes the main topic. Use <h2> to <h6> for the sections below it.
Which element creates a line break and has no closing tag?
<p><br><div><li>
<br> is an empty element, so it has no content and no closing tag.
Which attribute should you add to target="_blank" links to other websites?
rel="icon"rel="author"rel="noopener noreferrer"rel="canonical"
rel="noopener noreferrer" stops the new tab from gaining access to your page.
How do you make radio buttons work as one group?
- Give them the same
name - Give them the same
id - Give them different
namevalues - Put them in a
<ul>
Radio buttons that share a name form a group, so only one can be chosen.
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
Each id must be unique on a page. Use class for groups of elements.
Which entity displays the less-than symbol?
<>&
< stands for “less than”. > is greater than, and & is the ampersand.
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.