wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Fundamentals of HTML and CSS

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.
Which attribute specifies the destination of a hyperlink?
a)
link
b)
href
c)
src
d)
target
2.
Which tag is used to display an image in HTML?
a)
<image>
b)
<src>
c)
<img>
d)
<pic>
3.
Which tag is used to create an ordered list?
a)
<ul>
b)
<ol>
c)
<li>
d)
<dl>
4.
Which input type is used to select multiple options with checkboxes?
a)
radio
b)
text
c)
checkbox
d)
option
5.
Which attribute makes an input field mandatory in a form?
a)
validate
b)
required
c)
must
d)
mandatory
6.
Which attribute of <form> specifies where to send form data?
a)
method
b)
type
c)
action
d)
encttype
7.
How do you apply an external CSS file?
a)
<style src="style.css">
b)
<link rel="stylesheet" href="style.css">
c)
<css link="style.css">
d)
<stylesheet src="style.css">
8.
Which pseudo-class targets the first child element?
a)
:hover
b)
:nth-child(1)
c)
:first-child
d)
:first-of-type
9.
Which symbol is used for ID selectors in CSS?
a)
.
b)
#
c)
@
d)
$
10.
Which property is used to create space inside an element’s border?
a)
margin
b)
border
c)
padding
d)
spacing