css html review actual

0.0(0)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/171

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:24 PM on 4/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

172 Terms

1
New cards
What does HTML stand for?
HyperText Markup Language
2
New cards
What does CSS stand for?
Cascading Style Sheets
3
New cards
What is the correct doctype declaration for HTML5?
4
New cards
What tag is used to define the root of an HTML document?
5
New cards
What section of an HTML document contains metadata, the title, and linked stylesheets?
6
New cards
What section of an HTML document contains the visible page content?
7
New cards
What tag sets the title shown in the browser tab?
8
New cards
What does the tag do?
Declares the character encoding for the page so special characters display correctly
9
New cards
What is the difference between block-level and inline elements?
Block elements start on a new line and take full width; inline elements flow within text
10
New cards
Name three semantic HTML5 elements and what they represent.
Examples:
(page header),
11
New cards
What is the purpose of the
tag?
Groups thematically related content, typically with its own heading
12
New cards
What does the
tag represent?
Self-contained content that could stand alone, like a blog post or news article
13
New cards
What is the difference between
and
?
is a non-semantic generic container;
implies meaningful grouped content
14
New cards
What tag is used to create a hyperlink?
15
New cards
href
16
New cards
What value of the target attribute opens a link in a new tab?
_blank
17
New cards
What is the syntax for creating an ordered list?
    with
  1. items inside
18
New cards
What is the syntax for creating an unordered list?
    with
  • items inside
19
New cards
What tag creates a definition list, and what tags go inside it?
with
(term) and
(definition) inside
20
New cards
What attribute is required on every tag for accessibility?
alt — it provides alternative text for screen readers and when the image fails to load
21
New cards
What two attributes define an image's dimensions in HTML?
width and height
22
New cards
What tag is used to embed a video in HTML5?
23
New cards
What tag is used to embed audio in HTML5?
24
New cards
What attribute on
controls
25
New cards
What tag provides alternative media sources inside
26
New cards
What attribute on specifies the file location?
src
27
New cards
What attribute on tells the browser the file's MIME type?
type
28
New cards
What fallback content should be placed between
A message informing the user their browser does not support the video element
29
New cards
What tag is used to embed an external webpage or media inside a page?
30
New cards
What attribute on
src
31
New cards
What are the three ways to apply CSS to an HTML page?
Inline styles (style attribute), internal stylesheet (
32
New cards
What is the syntax of a CSS rule?
selector { property: value; }
33
New cards
What does the CSS selector * select?
All elements on the page (universal selector)
34
New cards
What is the difference between a class selector and an ID selector in CSS?
Class (.) can be used on multiple elements; ID (#) must be unique per page
35
New cards
What is CSS specificity?
The system that determines which CSS rule wins when multiple rules target the same element
36
New cards
Which has higher specificity: an ID selector or a class selector?
ID selector
37
New cards
What does the CSS box model consist of?
Content, padding, border, and margin — from inside out
38
New cards
What CSS property adds space inside an element between its content and its border?
padding
39
New cards
What CSS property adds space outside an element's border?
margin
40
New cards
What CSS property controls the color of text?
color
41
New cards
What CSS property controls the background color of an element?
background-color
42
New cards
What CSS property sets the font typeface?
font-family
43
New cards
What CSS property controls the size of text?
font-size
44
New cards
What CSS property makes text bold?
font-weight: bold
45
New cards
What CSS property controls the spacing between lines of text?
line-height
46
New cards
What CSS property hides an element but still keeps its space in the layout?
visibility: hidden
47
New cards
What CSS property removes an element from the layout entirely?
display: none
48
New cards
What does the alt attribute on do for accessibility?
It describes the image for screen readers and users who cannot see images
49
New cards
What is the purpose of
It describes an input field; linked via the for attribute matching the input's id
50
New cards
What does WCAG stand for and why does it matter?
Web Content Accessibility Guidelines — the standard for making web content accessible to people with disabilities
51
New cards
What is the purpose of the lang attribute on the tag?
It declares the page's language, helping screen readers and search engines interpret content correctly
52
New cards
What heading tag should appear only once per page, representing the main topic?

53
New cards
Should heading levels be skipped (e.g. going from

to

)?

No — headings should follow a logical order without skipping levels for proper accessibility
54
New cards
What does "semantic HTML" mean?
Using HTML elements that convey meaning about the content, not just presentation
55
New cards
What is the role of the
To mark up the primary navigation links of a page
56
New cards
What is the
Content that is tangentially related to the main content, like a sidebar or callout
57
New cards
What is the
element used for?
Wraps the dominant content of the page; there should be only one per page
58
New cards
What does the tabindex attribute do?
Controls the order in which elements receive keyboard focus when the user presses Tab
59
New cards
What does aria-label do?
Provides an accessible name for an element that has no visible text label
60
New cards
What is a screen reader?
Assistive software that reads page content aloud for visually impaired users
61
New cards
What HTML attribute provides a tooltip and extra context on hover for any element?
title
62
New cards
What is the purpose of the tag inside a ?
It provides a visible title or description for the table, improving accessibility
63
New cards
What tag defines a table header cell, and how does it differ from ?
— bold and centered by default, and announces itself as a header to screen readers
64
New cards
What does the scope attribute on do?
Tells screen readers whether the header applies to a column or a row
65
New cards
What does the
and
combination do?
wraps media like an image;
provides a visible caption for it
66
New cards
What is the purpose of the tag?
Marks up an abbreviation and uses the title attribute to spell out the full term on hover
67
New cards
What does a CSS reset or normalize stylesheet do?
Removes or standardizes inconsistent default styles applied by different browsers
68
New cards
What is the purpose of a favicon?
A small icon shown in the browser tab, linked via in the
69
New cards
What does the viewport meta tag do?
Controls how the page scales on mobile devices — typically set to width=device-width, initial-scale=1
70
New cards
What is the default value of the CSS position property?
static
71
New cards
An element with position: relative is positioned relative to…
Its normal position in the document flow
72
New cards
Which position value makes an element scroll with the page until a threshold, then stick?
sticky
73
New cards
position: fixed positions an element relative to…
The viewport
74
New cards
position: absolute positions an element relative to…
Its nearest positioned ancestor
75
New cards
Which CSS properties are used to move a positioned element to its final location?
top, bottom, left, right
76
New cards
A static element is affected by the top/bottom/left/right properties. True or false?
False — static elements ignore those properties
77
New cards
What is the purpose of HTML entities?
To display reserved or special characters that would otherwise be interpreted as HTML
78
New cards
Which entity represents the < (less-than) symbol in HTML?
<
79
New cards
Which entity represents & (ampersand) in HTML?
&
80
New cards
Which entity represents a non-breaking space?
 
81
New cards
HTML entities can be written as named references or as…
Numeric character references (e.g. <)
82
New cards
What does the HTML form method attribute control?
How form data is sent to the server (GET or POST)
83
New cards
With method="get", form data is appended to the URL. What is the approximate character limit?
About 3000 characters
84
New cards
Which form method should NEVER be used to send sensitive data?
GET — because data appears in the URL
85
New cards
Which method appends form data inside the HTTP request body and has no size limit?
POST
86
New cards
What does method="dialog" do on a form inside a dialog element?
Closes the dialog and fires a submit event without sending data
87
New cards
Form submissions using POST can be bookmarked. True or false?
False — POST submissions cannot be bookmarked
88
New cards
Which HTML tag is used to embed video content in a page?
89
New cards
What are the three video formats natively supported in HTML?
MP4, WebM, and OGG
90
New cards
What attribute on
controls
91
New cards
Which
poster
92
New cards
What is the purpose of placing multiple tags inside
The browser picks the first format it supports
93
New cards
What text placed between tags is for?
Fallback content shown in browsers that don't support the video element
94
New cards
Which
loop
95
New cards
Does position: relative remove an element from the normal document flow?
No — it stays in the flow; other content is not adjusted to fill any gap
96
New cards
If you set top: 30px on a position: relative element, which direction does it move?
Down — it shifts 30px away from its normal top edge
97
New cards
Can a position: relative element overlap other elements?
Yes — because it is visually offset but still occupies its original space
98
New cards
What happens to surrounding content when a fixed element is removed from the flow?
Other elements behave as if the fixed element does not exist and fill the space
99
New cards
A fixed element does not move when the page is scrolled. True or false?
True — it always stays in the same viewport position
100
New cards
What common use case is position: fixed ideal for?
Navigation bars or headers that should always be visible while scrolling