DevAcademy
PracticeHTMLIntermediate

HTML Intermediate Practice

27 questions covering 9 HTML topics.

Quick Quiz

1. Which element defines a header cell in a table?

2. Which attribute merges a cell across multiple columns?

3. Should tables be used to lay out an entire page?

4. Which attribute of <form> specifies where the data is sent?

5. How do you associate a <label> with an input?

6. What does <fieldset> do?

7. Which input type masks the characters the user types?

8. How are radio buttons grouped so only one can be selected?

9. Which attribute restricts which file types can be selected in a file input?

10. Which attribute makes a field mandatory before submission?

11. Which attribute restricts input to match a regular expression?

12. Why should you also validate data on the server even if HTML validation passes?

13. Which element should wrap a page’s primary, unique content?

14. Which element is best for content that could stand alone, like a blog post?

15. What does <figcaption> provide?

16. Does a block-level element start on a new line by default?

17. Which of these is an inline element by default?

18. What CSS property can override an element’s default block/inline behavior?

19. Which attribute must be unique across the entire page?

20. How do you write a CSS selector that targets a class named "card"?

21. Can a single element have more than one class?

22. Which entity displays a literal less-than sign (<)?

23. Which entity represents a non-breaking space?

24. Why is escaping user-generated content important?

25. Which meta tag controls how a page scales on mobile devices?

26. What is the difference between <style> and <link rel="stylesheet">?

27. What does the defer attribute on a <script> tag do?