DevAcademy
PracticeHTMLBeginner

HTML Beginner Practice

36 questions covering 12 HTML topics.

Quick Quiz

1. What does HTML stand for?

2. Who created HTML?

3. Which technology is responsible for styling a web page?

4. What file extension is used for HTML files?

5. Do you need to install a compiler to run HTML?

6. What is the conventional name for a website homepage file?

7. Which line must appear first in every HTML5 document?

8. Where does the text shown in the browser tab come from?

9. How many <body> elements should a valid HTML document have?

10. What is the difference between a tag and an element?

11. Which of these is a void element?

12. When nesting elements, in what order must closing tags appear?

13. Where are attributes written in an HTML element?

14. Which attribute must be unique across an entire page?

15. Which of these is a boolean attribute?

16. What is the correct syntax for an HTML comment?

17. Are HTML comments visible in the page source?

18. Can HTML comments be nested inside each other?

19. How many heading levels does HTML provide?

20. How many <h1> elements should a well-structured page typically have?

21. Which element is used to define a paragraph?

22. Which tag conveys semantic strong importance and is rendered bold by default?

23. Which element inserts a single line break?

24. What is the main difference between <b> and <strong>?

25. Which attribute specifies the destination of a link?

26. What does target="_blank" do?

27. Which href value opens the user’s default email client?

28. Which attribute provides a text alternative for an image?

29. What alt value should a purely decorative image use?

30. Which attribute defers loading of offscreen images?

31. Which element creates a numbered list?

32. What must be the direct parent of an <li> element?

33. Which element pairs a term with its definition?

34. Is <div> a block-level or inline element?

35. Is <span> a block-level or inline element?

36. What should you consider before using a <div>?