HTML Basics
CSS Selectors
CSS Layout
CSS Properties
HTML Semantics
100

What is the root element of every HTML page?

<html>

100

What selector targets all paragraph elements?

p

100

What CSS property arranges items in a single row or column?

display: flex

100

What CSS property controls the text size?

font-size

100

What tag represents self-contained content that could be independently distributed?

<article>

200

What tag is used to create an unordered list?

<ul>

200

What selector targets an element with a specific ID?

#idValue

200

What CSS property is used for positioning elements outside of the normal flow?

position: absolute or position: fixed

200

What CSS property changes the background color of an element?

background-color

200

What tag semantically represents a navigation menu?

<nav>

300

What attribute defines inline styles for an HTML element?

<style>

300

What is the specificity order of CSS selectors?

ID selectors, then class/attribute/pseudo-class selectors, then element/pseudo-element selectors.

300

What CSS layout model uses a two-dimensional grid system?

CSS Grid Layout

300

What CSS property adds space inside an element's border?

padding

300

What tag represents a thematic break between content?

<hr>

400

What tag is used to create a hyperlink?

<a>

400

How do you select all `li` elements that are direct children of a `ul` element?

ul > li

400

What CSS property controls the stacking order of elements?

z-index

400

What CSS property is used to make text bold?

font-weight: bold

400

What tag represents introductory content, typically containing a heading?

<header>

500

What tags do you use for a common HTML table?

<table>, <tr>, <th>, <td>

500

What is the difference between a class selector and an attribute selector?

A class selector targets elements with a specific class attribute, while an attribute selector targets elements based on the presence or value of a specific attribute.

500

Describe the difference between `display: block`, `display: inline`, and `display: inline-block`.

block elements take up the full width and create line breaks; inline elements only take up necessary width and don't create line breaks; inline-block elements are like inline but allow setting width and height.

500

What is the CSS box model and its components?

The box model consists of the content, padding, border, and margin.

500

What are the semantic HTML5 tags for the main content area of a page?

<main>, <article>, <aside>, <nav>, <footer>

M
e
n
u