wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit 4 Quiz

Total questions: 11

Worksheet time: 13mins

Name
Class
Date
1.
What is a style sheet?
a)

a file that has the structure of a web page

b)

a piece of hardware that retreives files

c)

a file that tells the browser how to render a page

d)

a server that tells a browser how to render a page

2.
What selector would you wanted to style the main heading of a web page?
a)
h1
b)
h2
c)
h3
d)
h4
3.
What is the correct code for adding an interactive button to a web page?
a)

<button type="button"><a href = "https://www.dcnr.pa.gov/StateParks/FindAPark/RickettsGlenStatePark/Pages/default.aspx">Plan Your Visit!</button>

b)

<button><a href = "https://www.dcnr.pa.gov/StateParks/FindAPark/RickettsGlenStatePark/Pages/default.aspx">Plan Your Visit!</a></button>

c)

<button type="button"><a href = "https://www.dcnr.pa.gov/StateParks/FindAPark/RickettsGlenStatePark/Pages/default.aspx">Plan Your Visit!</a></button>

d)

<button type="button">Plan Your Visit!</button>

4.
What is one of the additional benefits of using CSS when developing and dessigning a web page?
a)
CSS makes use of HTML elements.
b)
The web page can be hyperlinked with CSS.
c)
CSS provides the rules for a web page
d)
The web page layout is better controlled with CSS
5.

Which type of CSS styling does the following code use?

<h1> My <span > Favorite </span> Books of All Time </h1>

a)

external CSS

b)

.css

c)

inline CSS

d)

internal CSS

6.
What is the correct syntax to use when linking an external stylesheet named style.css?
a)

<a href ="style.css"> </a>

b)

<link rel="stylesheet.css" href="style.css">

c)

<link rel="stylesheet" href="style.css">

d)

<link rel="stylesheet" href=style">

7.
When using an internal stylesheet, which element within the head tag are you required to use first?
a)

<span>

b)

<style>

c)

<h1>

d)

<img>

8.
What is the purpose of using a CDN?
a)
CDNs store different HTML pages, and this helps web pages load faster
b)
CDNs store different stylesheets, and this helps web pages load faster.
c)
CDNs act as the browser when users access web pages
d)
CDNs provide the IP addresses for locating web pages.
9.
True or False: A selector is a pattern used to select the element or elements you want to style.
a)
True
b)
False
10.
What is the code that tells the browser you are using HTML5?
a)

<doctype HTML5

b)

<!DOCTYPE html>

c)

<html>

d)

the browser just knows without any code

11.
What should be applied to the head element to provide the browser instructions on how to control the page's dimensions and scaling?
a)

width and height

b)

<meta name"viewport" content, initial scale=1">

c)

<style tag>

d)

<meta name"viewport" content="width=device-width, initial-scale=1">