wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

quiz_G10

Total questions: 20

Worksheet time: 15mins

Name
Class
Date
1.

What is the correct syntax for defining a hyperlink in HTML?

a)

<a href=”url”> Link text </a>

b)

<a href=”url”> Link text <a>

c)

<a=”url”> Link text <a>

d)

<ref=”url”> Link text <a>

2.

What is the purpose of the target attribute in the code above?

a)

It tells the browser to make your screen blank when you click the link.

b)

It tells the browser to open the link in the same tab when you click the link.

c)

It tells the browser to open the link in a new tab when you click the link.

d)

It tells the browser to open the link in a different browser when you click the link.

3.
An absolute URL:
a)
contains a full path to a resource, excluding the protocol indicator
b)
contains a full path to a resource, including the protocol indicator
c)
assumes the current document's path so that all references are made from the top of the site's hierarchial directory structure
d)
assumes the current document's path so that all references are made from the document's current directory.
4.

Why won't this navigation link page work?

a)

The href link should be "Foods.html"

b)

The end tag should be <a> not </a>

c)

The "Foods" page hasn't been made active

d)

The link should be <a href = "Foods.html"

5.

Why won't the following anchor tag work?

<a href=https://www.google.com/>click here</a>

a)

The link is incorrect. it should be ref, not href

b)

The URL is missing quotation marks

c)

There is no anchor tag in the code

d)

The href is missing a closing tag

6.

What is the closing tag for an image?

a)

<img>

b)

</img>

c)

there is no closing tag

d)

a href <img>

7.

Change the border size of the body or image

a)

border-style

b)

border-width

c)

border-color

d)

width

8.

To create a dotted border around the page

a)

border-style

b)

border-width

c)

border-color

d)

width

9.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

10.

Select the rule set to make all the text in your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

11.

Which selector will change the font of the text?

a)

font-size

b)

text-align

c)

font-famiy

d)

text-decoration

12.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

13.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

14.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

15.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

16.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

17.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
18.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
19.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
20.

Which is the value in the CSS code below?

h1 {border: 29px solid red}

a)

h1

b)

{ }

c)

border

d)

29px solid red