HTML & CSS Basics Quiz
HTML and CSS are the building blocks of the web. HTML provides the structure and content, while CSS controls how that content looks and is laid out on screen. Together, they're the first things every web developer learns — and continues using throughout their career.
This quiz covers core HTML elements and their semantic meaning, CSS selectors, the box model, and basic layout concepts including flexbox. These are the fundamentals that every front-end developer encounters daily.
Whether you're new to web development or brushing up before an interview, this quiz covers the foundational HTML and CSS you need to know.
Start quiz →
Opens in a new tab on Cletica
Sample questions3 of 9 shown
Q1
What does the HTML <a> tag create?
Q2
In CSS, how do you select all elements with the class 'highlight'?
Q3
Which CSS property controls the space between an element's content and its border?
What This Quiz Covers
- HTML document structure: DOCTYPE, html, head, body
- Semantic HTML elements: header, nav, main, article, section, footer
- HTML form elements: input, textarea, select, button
- CSS selectors: element, class (.), ID (#), attribute, and pseudo-class
- The CSS box model: content, padding, border, margin
- CSS display values: block, inline, inline-block, flex
- Flexbox basics: justify-content, align-items, flex-direction
Cletica
Want to create your own quiz?
Build surveys and quizzes, share with anyone, collect responses — free to start.
Try Cletica for free →