wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Q2 - WebDez_CertPrep

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What's wrong with the HTML code below?

<p>This is a paragraph in HTML</h1>

a)

The closing tag should be </p>

b)

The closing tag should be <>

c)

The opening tag should be <a>

d)

The opening tag should be </p>

2.

Which of the following is an example of metadata about a webpage?

a)

The title of the webpage

b)

An <img> tag on a webpage

c)

The body of the webpage

d)

A <p> tag on a webpage

3.

Which of the following is correct HTML code that will make a hyperlink to google.com?

a)

<a href="https://google.com"> Link </a>

c)

<a>Link to google.com</a>

d)

Click Me<a h="https://google.com">

4.

What does the following HTML code do? <img src="picture.jpg" style="width:200px; height:200px">

a)

Adds an image to the webpage with a width of 200 pixels and height of 200 pixels

b)

Makes a hyperlink to an image on the web

c)

Uses an image as a hyperlink to another website

d)

Adds an image to the webpage with a text description of the image dimensions

5.

What is wrong with this HTML code? <img="picture.jpg" style="width:200px; height:200px">

a)

The img tag needs a src attribute

b)

There should be a closing tag </img>

c)

You should not specify the style of an image element

d)

It should use an <a> tag instead of <img>

6.

What HTML code will produce the following content?

  • * Red

  • * Green

  • * Blue

a)

<ul>

<li>Red</li>

<li>Green</li>

<li>Blue</li>

</ul>

b)

<ol>

<li>Red</li>

<li>Green</li>

<li>Blue</li>

</ol>

c)

<p>Red</p>

<p>Green</p>

<p>Blue</p>

d)

Red <br> Green <br> Blue

7.

Which tag defines a table header element in HTML?

a)

<th>

b)

<tr>

c)

<table>

d)

<li>

8.

Which of the following contents might be best represented on a webpage using a table element?

a)

A set of cat photos

b)

A calendar for the month of March

c)

A menu for a local restaurant

d)

A set of dictionary entries

9.

What is a correct way to specify a font family of Arial for all paragraph elements using a CSS rule?

a)

p{

font-family:Arial;

}

b)

h1{

font-family:Arial;

}

c)

p{

font-style:Arail

}

d)

<h1 style="font-family:Arial;">

10.

What type of CSS selector is the most specific? In other words, what CSS rule overrides any other rules in case of conflict?

a)

Select by ID

b)

Select by Class

c)

Select by Tag

d)

body{

style=override;

}

11.

How do you make a CSS rule for a class named 'alert' and set the font color to Red?

a)

.alert{

color:Red;

}

b)

#alert{

color:Red;

}

c)

alert{

color:Red;

}

d)

@alert{

color:Red;

}

12.

What will the following CSS rules do?

h2{ color:Blue; }

.subtitle{ color:Green; }

a)

All the h2 tags will be blue font and all the subtitle tags will be green font

b)

All the h2 tags will be blue font unless they are labeled with a subtitle class. All elements labeled with a subtitle class will be green font

c)

All the elements with the class subtitle will be green font except for the h2 tags

d)

The webpage background color will be a mixture of blue and green

13.

Select by tag name

Select by class name

Select by id name


Which of the following ranks the selectors from highest precedence to lowest precedence?

a)

Select by tag name, select by class name, select by id name

b)

Select by id name, select by tag name, select by class name

c)

Select by id name, select by class name, select by tag name

d)

Select by class name, select by id name, select by tag name

14.

Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?

a)

<img style="height:200px;">

b)

tag="img" {

height: 200px;

}

c)

<img> {

height: 200px;

}

d)

img {

height: 200px;

}

15.

Suppose you have the following CSS rules:


p {

color: green;

}

.fire {

color: red;

}

#title {

color: blue;

}

What font color will the following HTML element have after being styled by the given CSS:

<h1 class="fire">Welcome!</h1>

a)

red

b)

green

c)

blue

d)

black

16.

Suppose you have the following CSS rules:


p {

color: green;

}

.fire {

color: red;

}

#title {

color: blue;

}

What font color will the following HTML element have after being styled by the given CSS:

<p class="title">My First Paragraph</p>

a)

red

b)

green

c)

blue

d)

black

17.

Suppose you have the following CSS rules:


p {

color: green;

}

.fire {

color: red;

}

#title {

color: blue;

}

What font color will the following HTML element have after being styled by the given CSS:

<p class="fire" id="title">Hello World!</p>

a)

red

b)

green

c)

blue

d)

black

18.

What are the machines connected to the internet that serve up web pages called?

a)

Browsers

b)

Servers

c)

Devices

d)

Protocols

19.

What is the first step in viewing a webpage?

a)

Generating a request

b)

Typing the URL into the browser

c)

Clicking on a link

d)

Refreshing a page

20.

What is the first thing you need to do to host your own website?

a)

Register a domain

b)

Set up a server

c)

Write the HTML code

d)

Design the webpage layout

21.

What does the domain part of the URL specify?

a)

The specific resource being requested

b)

The location of the resource on the internet

c)

The type of file being requested

d)

The language of the webpage

22.

What is the third step in viewing a webpage?

a)

Generating a request

b)

Typing the URL into the browser

c)

Clicking on a link

d)

Receiving a response

23.

What does the server do when it receives a request for a specific file?

a)

Sends the file back to the browser

b)

Generates a new request

c)

Sends a response with the file's location

d)

Redirects the request to another server

24.

What is the fourth step in viewing a webpage?

a)

Generating a request

b)

Typing the URL into the browser

c)

Receiving a response

d)

Rendering the page

25.

True or False: Web Design is the same as Web Developer.

a)

True

b)

False