HTML/CSS/JS Answers 2025/2026
Content, padding, border, and margin - correct answer add all of these up
to get the full size of an element in the box model
Element[attribute$=value] - correct answer this css3 selector selects every
instance of a specified element whose specified attribute ends with the
specified value
Element[attribute*=value] - correct answer this css3 selector selects every
instance of a specified element whose specified attribute contains the
specified substring value
Element[attribute^=value] - correct answer this css3 selector selects every
instance of a specified element whose specified attribute begins with the
specified value
Element:checked - correct answer this css3 selector selects every
checked instance of a specified element
Element:disabled - correct answer this css3 selector selects every
disabled instance of a specified element
Element:enabled - correct answer this css3 selector selects every enabled
instance of a specified element
Element:first-of-type - correct answer this css3 selector selects every
instance of a specified element that is the first of its parent
,Element:last-of-type - correct answer this css3 selector selects every
instance of a specified element that is the last of its parent
Element1~element2 - correct answer this css3 selector selects every
instance of element2 that is preceded by an instance of element1 where
both have the same parent. Element2 need not be immediately preceded
by element1
Multiple images - correct answer css3 now allows this in the background
Background-clip - correct answer css3 property determining whether the
background extends into the border or not (content, padding, or border)
Background-origin - correct answer css3 property defining the location to
which the background-position property should be relative (content,
padding, or border)
Length, percentage, cover, contain - correct answer css3 values used in a
background-size property. Last two are optional. Default is auto.
Rgba - correct answer whereas the opacity property applies to an element
and its children, you can use this to specify the opacity of a single element
@font-face - correct answer css3 rule allowing you to specify custom fonts
400 - correct answer this font weight is the same as normal
700 - correct answer this font weight is the same as bold
, 100-900 - correct answer range of font weights
Text-shadow - correct answer ie9 and earlier do not support this text
property
Font-family and src - correct answer these two css3 properties are
required by @font-face
Transform - correct answer an effect that changes an element's shape,
size and/or position
Transform-origin - correct answer property that allows you to change a
transformed element's position
Transform-style - correct answer property that specifies whether child
elements will retain the parent element's position in 3d space
Perspective - correct answer property that specifies the perspective from
which a 3d child element is viewed by defining how far it is placed from
view
Perspective-origin - correct answer property that specifies the bottom
position of a 3d element
Backface-visibility - correct answer property that defines whether or not an
element is visible when it is rotated to face away from the viewer