wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML & CSS

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

______ is used to create electronic documents (called pages) that are displayed on the World Wide Web. Every web page you see on the Internet is written using one version of _____ code or another.

a)

JPEG

b)

CSS

c)

PDF

d)

HTML

2.

A ___________ is an icon, graphic, or text that links to another file or object. These are what allow web pages to connect to other web pages

a)

hyperlink

b)

HTML Tags

c)

browser

d)

<br>

3.

A ________ is a software program to present and explore content on the World Wide Web.

a)

Word Processor

b)

Browser

c)

HTTP

d)

attribute

4.

A __________ is a protection for any published work that helps to prevent that work from being used without prior authorization.

a)

Firewall

b)

HTML

c)

Copyright

d)

CSS Declaration

5.

_______ is a language used to describe reusable styles for presenting documents written in a markup language.

a)

HTTP

b)

TCP

c)

HTML

d)

CSS

6.

The _______ _______is used to change the appearance and position of various elements on a web page.

a)

<style> tag

b)

<img> tag

c)

URL link

d)

<p> tag

7.

The ______ ______ is an inline element used to designate a holding space for linked images.

a)

<br> tag

b)

<h1> tag

c)

<img> tag

d)

<ol> tag

8.

____________ is a term used to describe how page elements are placed on the screen. For example, elements can be positioned left, right, or center.

a)

Attribute

b)

Style

c)

Alignment

d)

Properties

9.

The _____ ______ is a block element used to designate a list that is either numbered or alphabetical.

a)

<tr> tag

b)

<ol> tag

c)

<ul> tag

d)

<td> tag

10.

The ______ ______ is a block element used to designate a list that is bulleted.

a)

<ul> tag

b)

<h2> tag

c)

<hr> tag

d)

<td> tag

11.

____ ____ is an inline HTML element that defines a hyperlink.

a)

<b> tag

b)

<p> tag

c)

<a> tag

d)

<url> tag

12.

RGB

a)

Short for router graphics bitmap, RGB is a process for creating vector graphics.

b)

Short for red, gray, black, RGB is a method of monitoring color on a server website.

c)

Short for random gigabyte burnout, RGB is process used to maintain data on a computer screen.

d)

Short for red, green, blue, RGB is a method of creating colors from the colors of red, green, and blue.

13.

Within an HTML tag, an _________ dictates certain aspects of an element. It is made up of a name and value pair.

a)

attribute

b)

properties

c)

color

d)

class

14.

<h1> to <h6> tags

a)

are styling tags used to designate HTML table attributes.

b)

are line elements for creating different sizes of lines.

c)

are block elements used to designate headings of both different sizes and importance.

d)

are color elements used to style a CSS page.

15.

<p> tag

a)

is a block element used to designate a paragraph.

b)

is an inline element used to create a new page.

c)

is a block element used to post a picture on a web page.

d)

is an inline element used to style with the color purple.

16.

is an inline element used to create a single line break in a document.

a)

<b> tag

b)

<tr> tag

c)

<br> tag

d)

<ol> tag

17.

an _____ _____ stays in the same line as the code that surrounds the text.

a)

block element

b)

inline element

c)

HTML tags

d)

alt attribute

18.

a _____ _____ is any element that starts a new line (e.g., paragraph) and uses the full width of the page or container.

a)

inline element

b)

img href

c)

CSS ID

d)

block element

19.

In the code below, what tags do you need to add to make the list a numbered list?

a)

<ol> </ol>

b)

<ul> </ul>

20.

Which is NOT a valid CSS propert

a)

font-family

b)

color

c)

text-size

d)

text-align

21.

What is the opening tag for a paragraph?

a)

<p>

b)

</p>

c)

<para>

d)

</para>

22.

Which heading tag will give you the smallest text size?

a)

<h1> </h1>

b)

<h3> </h3>

c)

<h6> </h6>

d)

<h10> </h10>

23.

What correction needs to be made in the code

a)

line 13 - <p> </p> tags needed

b)

line 13 - <li> </li> tags needed

c)

line 13 - <h6> </h6> tags needed

d)

line 13 <par> </par> tags needed

24.

All of the webpage content goes in between the...

a)

<head> </head>

b)

<h1> </p>

c)

<ol> </ol>

d)

<body> </body>

25.

What is the function of the div tag?

a)

To define a section of an HTML page

b)

To group a block of elements together to format them with CSS

c)

To efficiently apply the same style to several different elements

d)

All of the above

26.

Which of the following selects all p tags with the class alert and makes them red?

a)

p.alert {

color: red;

}

b)

p {

.alert {

color:red;

}

}

c)

.alert p{

color: red;

}

d)

p alert{

color: red;

}

27.

The Inspector would be a useful tool for which of the following tasks?

a)

Starting to write the HTML and CSS based on a design

b)

Testing what small CSS changes will do to the site presentation

c)

Finalizing changes made to the styling of the website

d)

All of the above

28.

What symbol should you use to target a class name in css?

a)

#

b)

()

c)

.

d)

class

29.

What symbol should you use to target an id in css?

a)

.

b)

+

c)

id

d)

#

30.

Which of the following is the correct CSS link tag?

a)

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

b)

<link href="stylesheet">

c)

<link rel="stylesheet" src="styles.css">

d)

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