wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML / CSS - test prep 1 of 2

Total questions: 65

Worksheet time: 22mins

Name
Class
Date
1.

The first tag on a webpage

a)

<html>

b)

<!DOCTYPE html>

c)

<head>

d)

<body>

2.

Tags used to define html code

a)

<html> </html>

b)

<head> </head>

c)

<body> </body>

3.

Two tags nested directly inside the <html> tag

a)

<head> and <header>

b)

<header> and <body>

c)

<head> and <body>

4.

Tag that goes inside the <head> tag

a)

<title>

b)

<style>

c)

<link>

d)

<meta>

e)

all of these

5.

Tags used for headings

a)

<h1> --> <h6>

b)

<head>

c)

<header>

6.

Tags used to create a paragraph

a)

<h1>

b)

<para>

c)

<p>

7.

Tag used for a line break

a)

<br>

b)

<stop>

c)

<break>

8.

Tag used to create emphasis or italics

a)

<e>

b)

<i>

c)

<em>

9.

Tag used to make text bold

a)

<b>

b)

<bold>

c)

<strong>

10.

Can you put emphasis tags inside other tags?

a)

yes

b)

no

11.

Type of list in html

a)

Ordered

b)

Unordered

c)

Descriptive

d)

all of these

12.

Opening tag for unordered list (bulleted list)

a)

<ul>

b)

<ol>

13.

Opening tag for ordered (numbered) list

a)

<ul>

b)

<ol>

14.

Tag for items inside your list

a)

<list>

b)

<li>

c)

<item>

15.

Tag used to display a picture

a)

<img>

b)

<image>

c)

<pic>

16.

What attribute is accessed (used) if a picture doesn't load?

a)

alt = " "

b)

show = " "

c)

name = " "

17.

Should you use both width and height attributes in a <img>?

a)

yes, both

b)

no, one or the other

18.

In a <img> tag the width attribute is shown as

a)

width="200"

b)

width="200px"

19.

Tag used to link to another webpage

a)

<a>

b)

<html>

c)

<link>

20.

In an <a> anchor tag, where does the text "click here" go?

a)

Before the opening <a> tag

b)

Inside the opening <a> tag

c)

In between the opening <a> tag and the closing </a> tag

21.

What are 2 examples of text properties in html?

a)

center and none

b)

align and decoration

c)

text-align and

text-decoration

22.

What are 2 examples of text values in html?

a)

align and decoration

b)

center and none

c)

width and height

d)

color and

font-family

23.

Name the division tag that groups multiple tags together on a webpage.

a)

<div>

b)

<span>

c)

<header>

d)

<group>

24.

Is the <div> tag an inline element or a block element?

a)

block

b)

inline

25.

What tag is used to style a word or phrase?

a)

<div>

b)

<span>

26.

Is a <span> tag an inline element or a block element?

a)

inline

b)

block

27.

A block element

a)

starts on a new line

b)

is built into another element

28.

An inline element

a)

starts on a new line

b)

is built into another element

29.

How do you change the size of a <div>?

a)

width: " "

b)

height: " "

c)

both of these

30.

In the box model, what does a margin do?

a)

it separates elements

b)

it creates space on the outside of your element

c)

it creates whitespace

d)

all of these

31.

Aspects (or ways to style) of a border

a)

thickness

b)

style

c)

color

d)

all of these

32.

What does padding do in the box model?

a)

separates content from it's own border

b)

separates one element from another element

33.

Sequential text elements are displayed

a)

top to bottom

b)

left to right

34.

Sequential <img> elements are displayed

a)

top to bottom

b)

left to right

35.

Relative positioning puts the element

a)

where it would normally appear on the page

b)

anywhere on the page

36.

Absolute positioning puts the element

a)

where it would normally appear on the page

b)

anywhere on the page

37.

What is needed to position elements in front of one another?

a)

z-index

b)

index positioning

c)

you can't put one tag in front of another

38.

To use the z-index, you must be using

a)

absolute positioning

b)

relative positioning

39.

What position keeps elements relative to the screen?

For example, what keeps your <nav> menu at the top of the screen

even when scrolling down the page?

a)

fixed position

b)

absolute position

c)

relative position

40.

What property do you use to wrap an element/ image around another?

a)

float

b)

text-align

c)

width

d)

center

41.

How do you write all <p> tags have a class=turtle?

a)

p.turtle

b)

p.class

c)

class.turtle

42.

When do you put a space between selectors?

a)

when you want the style rule to apply to descendants

b)

When you have a class

c)

When you have an id

43.

If you want to create a style rule for <em>,

but only when <em> is located inside (nested) in an <h3>.

For example: h3 em {color:red}

This rule applies to

a)

descendants

b)

inheritance

c)

psuedo class

d)

id

44.

How do you group selectors if you want to apply the same style to all?

a)

separate them with commas

h1, p, ul {color:blue}

b)

separate them with periods

h1. p. ul {color:blue}

c)

separate them with semicolons

h1; p; ul {color:blue}

45.

What's a popular psuedo class we used in our projects?

a)

a:hover

b)

a.hover

c)

a-hover

46.

Specificity in style applies to

a)

location of your rule

b)

order of your rule

c)

hierarchy of your rule

47.

The most important element in a <form> element is

a)

text

b)

name

c)

input

48.

What attribute defines the input element?

a)

type

b)

name

c)

size

49.

The <select> element defines a

a)

comment area

b)

drop down list

c)

checkbox

50.

In a drop-down list, what element identifies the selections?

a)

<select>

b)

<option>

c)

<type>

51.

Select the item below that indicates the top-level domain in this URL:

http://www.mozilla.com

a)

http

b)

www

c)

mozilla

d)

com

52.

What is a unique text-based Internet address that corresponds to a computer's unique numeric IP address called?

a)

domain name

b)

URL

c)

user name

53.

The purpose of this is to ensure the integrity of internet communication.

a)

IP

b)

TCP

c)

HTTP

d)

FTP

54.

When should you code an absolute hyperlink?

a)

when linking to a web page that is external to your website

b)

when linking to a web page that is internal to your website

55.

Which tag configures a horizontal line on a web page?

a)

<line>

b)

<hr>

c)

<hrline>

56.

Which of the following is a sketch or diagram of a web page that shows the structure (but not the detailed design) of basic page elements?

a)

mockup

b)

wireframe

c)

storyboard

57.

What are the most common methods of organizing websites?

a)

hierarchical

b)

linear

c)

random

d)

all of these

58.

Which of the following is the design technique used to create pages that stretch to fill the browser window?

a)

fluid

b)

filler

c)

spillover

59.

Which of the following can be a CSS selector?

a)

an HTML element name

b)

a class name

c)

an id name

d)

all of these

60.

A web page uses this file extension.

a)

.html

(sometimes spelled .htm)

b)

.com

c)

.net

61.

An External Style Sheet uses this file extension.

a)

.css

b)

.htm

c)

.html

62.

Which declaration configures an unordered list item with a square list marker?

a)

list-style-type: square;

b)

list-type: square;

c)

style-type: square;

63.

Which CSS property will configure the font typeface?

a)

font

b)

font-family

c)

text

64.

Which configures a class called news with red text, large font, and Arial or a sans-serif font using CSS?

a)

.news { color: red;font-size: large;font-family: Arial,sans-serif; }

b)

news { color: red;font-size: large;font-family: Arial,sans-serif; }

c)

#news { color: red;font-size: large;font-family: Arial,sans-serif; }

65.

Which of the following configures a graphic to repeat vertically down the side of a web page?

a)

background-repeat: repeat-y;

b)

background: repeat-y;

c)

repeat: y;