HTML and CSS

Lesson 9 of 10

Quiz ยท 8 min

Quiz, HTML and CSS

Answer all ten questions, then press Check my answers. You need 70% to pass. If you do not pass, read the explanations and try again.

Question 1 of 10

Which element is the best choice for the main heading that readers see at the top of a page?

Question 2 of 10

What is the alt attribute of an img element for?

Question 3 of 10

Which CSS rule makes every paragraph blue?

Question 4 of 10

Which layer of the box model is between the content and the border?

Question 5 of 10

A box has width: 200px, padding: 10px, and a 5px border. It uses the default box-sizing. How wide is the box on the screen?

Question 6 of 10

Which of these are valid ways to write a color in CSS? Choose all that apply.

Choose all answers that apply.

Question 7 of 10

A container has display: flex. The items are in a row. Which property places the items along the row, for example with space between them?

Question 8 of 10

How do you connect a label to an input?

Question 9 of 10

Which element makes a numbered list?

Question 10 of 10

Which selector finds only the elements that have the class lead?

Answer every question to check.