Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

web 1 html css

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.
Which HTML tag is used to define an unordered list?
a)
  • <ul>

b)
  1. <ol>

c)
  • <li>

d)

<list>

2.
What does CSS stand for?
a)
Colorful Style Script
b)
Computer Style Syntax
c)
Creative Style System
d)
Cascading Style Sheets
3.
Which HTML attribute is used to define inline styles?
a)
id
b)
css
c)
style
d)
class
4.
Which property is used in CSS to change the text color of an element?
a)
background-color
b)
color
c)
text-color
d)
font-color
5.
Which tag is used to define a hyperlink in HTML?
a)

<a>

b)

<link>

c)

<href>

d)

<hyperlink>

6.
How do you apply a background color in CSS?
a)
set-background: red;
b)
color: background;
c)
bg-color: red;
d)
background-color: red;
7.
Which HTML tag is used to display images?
a)

<pic>

b)

<img>

c)

<image>

d)

<src>

8.
Which CSS property controls the text size?
a)
text-size
b)
font-weight
c)
text-style
d)
font-size
9.
What is the correct HTML tag for the largest heading?
a)

<heading>

b)
<h6>
c)

<h1>

d)

<head>

10.
How do you make a list that lists its items with numbers?
a)
  1. <ol>

b)

<ul>

c)
  • <list>

d)

<dl>

11.
Which CSS property is used to make text bold?
a)
font-weight
b)
bold
c)
text-weight
d)
font-style
12.
Which CSS property controls the spacing between elements?
a)
margin
b)
padding
c)
border
d)
space
13.
Which CSS property makes an element a flex container?
a)
flex-container: true;
b)
position: flex;
c)
display: flex;
d)
display: grid;
14.
Which part of the box model is used to create space *inside* the element, around the content?
a)
margin
b)
outline
c)
padding
d)
border
15.
What is the default value of `flex-direction`?
a)
row
b)
column
c)
column-reverse
d)
row-reverse
16.
Which property in Flexbox aligns items along the cross/secondary axis?
a)
align-items
b)
justify-content
c)
flex-grow
d)
flex-wrap
17.
What does the `justify-content: space-between;` property do?
a)
Distributes items with equal space between them
b)
Aligns items at the center
c)
Puts all items at the end
d)
Stretches items to fill the container
18.
What attribute is used to provide alternate text for an image?
a)
description
b)
alt
c)
title
d)
src
19.
Which symbol is used to select a class in CSS?
a)
$
b)
*
c)
.
d)
#
20.
What is the purpose of the `id` attribute in HTML?
a)
To group elements
b)
To add styling
c)
To uniquely identify an element
d)
To link to external files