HTML & CSS Basics

Check your understanding of HTML tags,CSS selectors,and page structure.

1. What does HTML stand for?
2. Which HTML tag is used to define a hyperlink?
3. Which CSS property controls the text size?
4. What is the correct HTML tag for the largest heading?
5. Which CSS selector targets an element with id 'header'?
6. Which HTML attribute specifies alternate text for an image if it cannot be displayed?
7. In CSS, which 'display' property value makes an element take full width and start on a new line?
8. Which HTML tag is used to create an unordered list?
9. Select all semantic HTML5 elements from the options below.
10. Which of the following are valid CSS units for specifying font size?
11. Which HTML elements are block-level elements by default?
12. Which of the following are valid CSS 'position' property values?
13. Which HTML elements can include the 'src' attribute?
14. HTML is considered a programming language.
15. The <div> tag is a semantic HTML element.
16. A CSS class selector can be applied to multiple elements on a single web page.
17. CSS 'margin' controls spacing inside an element; 'padding' controls spacing outside.
18. What does CSS stand for? (full name)
19. Name the HTML tag used to define a list item within an ordered or unordered list.
20. What CSS property changes the background color of an element?
Answered 0 of 0 — 0 correct