Font size
WorksheetsHTML and CSS Basics (100 Q)
Total questions: 102
Worksheet time: 51mins
What does HTML stand for?
Hyper Trainer Marking Language
Hyper Text Markup Language
Hyper Tool Markup Language
Hyperlink Text Markup Language
Which tag is used to define the largest heading?
h6
head
h1
heading
Which tag is used to create a paragraph in HTML?
par
p
text
pg
Which attribute specifies a link’s destination?
src
href
link
target
Which tag inserts a line break?
br
lb
line
break
Which tag is used for inserting an image?
image
src
img
pic
Which attribute specifies alternative text for an image?
href
title
alt
caption
Which tag creates a hyperlink?
a
link
h
url
Which tag creates an unordered list?
ol
ul
list
li
Which tag is used inside ul or ol?
ol
ul
li
item
Which tag is used to display tabular data?
td
tr
table
tab
Which tag is used to create a form?
input
form
action
data
Which tag is used to enter single-line text?
text
input type="text"
textbox
field
Which element defines emphasized text?
em
strong
italic
i
Which tag defines bold text?
strong
b
em
bold
Which tag is used for inline grouping?
div
span
section
group
Which element contains metadata about the document?
header
meta
head
info
Which attribute is required for the img tag?
alt
src
href
id
Which tag defines the document’s title in the browser tab?
header
title
meta
h1
Which tag is used to define a block of navigation links?
nav
menu
ul
header
Which element represents independent content like a blog post?
section
article
div
aside
Which element usually contains site-wide footer information?
bottom
footer
base
aside
Which element groups related content together in sections?
section
div
nav
head
Which element defines introductory content or navigation for a page?
title
header
head
meta
Which element is used for content that’s related but not main content?
extra
aside
sidebar
nav
Which HTML5 element is used for scalable graphics?
canvas
img
svg
graphic
Which element is used for playing video files?
movie
media
video
play
Which element is used for audio content?
mp3
media
audio
sound
Which attribute specifies a video file source?
src
href
file
location
Which element represents tabular row data?
td
row
tr
table
Which element defines a table cell?
tr
td
cell
column
Which element defines a table heading?
td
head
th
h1
Which tag is used for grouping form elements?
fieldset
group
legend
form
Which tag provides a caption for a table?
header
caption
title
summary
Which attribute is used to merge table columns?
rowspan
colspan
merge
align
Which element provides a text label for a form control?
label
name
span
p
Which form input type hides typed characters?
text
password
hidden
secure
Which form input allows multiple selections?
checkbox
radio
text
button
Which input type allows only one option from a set?
checkbox
radio
text
select
Which element is used to embed another HTML page?
frame
iframe
window
embed
What does CSS stand for?
Creative Style Sheets
Cascading Style Sheets
Computer Style Sheets
Colorful Style Syntax
Which property changes text color?
font-color
text-color
color
style
Which property changes background color?
bgcolor
background-color
color
style
Which CSS selector selects an element by ID?
.id
#id
id=
*id
Which CSS selector selects elements by class?
#classname
.classname
classname
*classname
Which property changes font size?
text-size
font-size
size
font
Which property makes text bold?
font-weight
text-style
font-bold
bold
Which property makes text italic?
font-style: italic
font-italic
text-style
italic
Which property underlines text?
text-decoration: underline
underline
font-decoration
text-style
Which CSS property aligns text horizontally?
text-align
align
font-align
center
Which property controls spacing between lines of text?
line-height
letter-spacing
spacing
word-height
Which property controls spacing between letters?
letter-spacing
line-height
word-spacing
margin
Which property controls spacing between words?
word-spacing
text-spacing
letter-spacing
padding
Which property adds shadow to text?
text-shadow
font-shadow
shadow-text
box-shadow
Which property changes font family?
font-style
font-family
text-font
font-type
Which CSS method applies styles directly in the HTML tag?
external
inline
Which property changes font family?
font-style
font-family
text-font
font-type
Which CSS method applies styles directly in the HTML tag?
external
inline
internal
embedded
Which CSS method uses a style tag in the HTML head?
inline
internal
external
embedded
Which CSS method links an external stylesheet?
link
style
css
external
Which property sets the background image?
background-image
image
bg-image
img
Which property sets the background to repeat or not?
repeat
background-repeat
bg-repeat
background
Which property sets the width of an element?
size
width
length
dimension
Which property sets the height of an element?
height
size
length
dimension
Which property adds space inside an element’s border?
margin
padding
spacing
indent
Which property adds space outside an element’s border?
padding
margin
border-spacing
indent
Which property sets the border color?
border-color
border-style
border-width
color
Which property sets the border style to solid, dotted, or dashed?
border-type
border-style
border-look
border-decoration
Which property sets the border thickness?
border-size
border-width
border-style
thickness
Which property makes corners rounded?
border-radius
border-curve
round-corner
border-shape
Which property controls how content overflows a box?
overflow
clip
hide
scroll
Which CSS property hides an element but keeps space reserved?
display: none
visibility: hidden
hidden: true
opacity: 0
Which CSS property hides an element completely with no space reserved?
opacity: 0
display: none
visibility: hidden
hidden: true
Which CSS property controls transparency?
alpha
opacity
transparency
visibility
Which property controls how background images fit inside an element?
background-fit
background-size
background-scale
background-repeat
Which property positions an element relative to its parent?
float
position
align
display
Which position value places an element at the normal flow?
fixed
relative
static
absolute
Which position value fixes an element to the viewport?
relative
static
absolute
fixed
Which property makes an element float to the left or right?
position
float
align
display
Which property clears floated elements?
remove
clear
float: none
reset
Which CSS property turns an element into a flex container?
display: flex
flex: true
flexbox
container
Which property aligns flex items horizontally?
align-items
justify-content
flex-direction
text-align
Which property aligns flex items vertically?
align-items
justify-content
vertical-align
flex-direction
Which property controls the direction of flex items?
flex-align
flex-direction
direction
align
Which property allows grid layout?
display: grid
grid: true
gridbox
container
Which property defines the number of grid columns?
grid-columns
grid-template-columns
column-count
grid-layout
Which property defines the number of grid rows?
grid-rows
grid-template-rows
row-count
grid-layout
Which CSS selector selects all elements?
*
all
#all
.all
Which selector selects all paragraph elements?
#p
p
.p
text
Which selector selects only elements with class “highlight”?
#highlight
.highlight
highlight
*highlight
Which selector selects only the element with ID “header”?
.header
header
#header
*header
Which pseudo-class styles a link when hovered over?
:hover
:link
:visited
:active
Which pseudo-class styles a link after it is clicked?
:hover
:visited
:link
:focus
Which pseudo-class styles an element while it is clicked?
:focus
:active
:hover
:visited
Which pseudo-class styles an input when selected?
:hover
:focus
:selected
:click
Which property sets the maximum width of an element?
width
max-width
min-width
size
Which property sets the minimum height of an element?
min-height
max-height
height
size
Which CSS unit is relative to the parent element’s font size?
px
em
%
vh
Which CSS unit is relative to the root element’s font size?
em
rem
px
%
Which CSS unit is relative to the width of the viewport?
vh
vw
%
em
Which CSS unit is relative to the height of the viewport?
vh
vw
%
rem
Which property adds a shadow effect to a box?
text-shadow
box-shadow
border-shadow
shadow-box
