Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Design Final Exam Review-HTML

Total questions: 33

Worksheet time: 17mins

Name
Class
Date
1.

What does HTML stand for?

a)

Home Tool Markup Language

b)

Hyper Text Markup Language

c)

Hyperlinks and Text Markup Language

2.

Who is making the Web standards?

a)

Mozilla

b)

The World Wide Web Consortium

c)

Google

d)

Microsoft

3.

Choose the correct HTML element for the largest heading:

a)

<h1>

b)

<head>

c)

<h6>

d)

<heading>

4.

What is the correct HTML element for inserting a line break?

a)

<break>

b)

<br>

c)

<lb>

5.

What is the correct HTML for adding a background color?

a)

<body style="background-color:yellow;">

b)

<background>yellow</background>

c)

<body bg="yellow">

6.

What is the correct HTML for creating a hyperlink?

a)

<a name="http://www.w3schools.com">W3</a>

b)

<a ="http://www.w3schools.com">;

c)

<a href="http://www.w3schools.com">W3Schools</a>

7.

Which character is used to indicate an end tag?

a)

*

b)

^

c)

/

d)

#

8.

What is the correct HTML for inserting an image?

a)

<img alt="MyImage">image.gif</img>

b)

<img src="image.gif" alt="MyImage">

c)

<img href="image.gif" alt="MyImage">

d)

<image src="image.gif" alt="MyImage">

9.

What is the correct HTML for inserting a background image?

a)

<body style="background-image:url(background.gif)">

b)

<background img="background.gif">

c)

<body bg="background.gif">

10.

An <iframe> is used to display a web page within a web page.

a)

True

b)

False

11.

HTML comments start with <!-- and end with -->

a)

True

b)

False

12.

Which HTML element defines the title of a document?

a)

<title>

b)

<head>

c)

<header>

d)

<meta>

13.

Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

a)

longdesc

b)

src

c)

alt

d)

caption

14.

Which doctype is correct for HTML5?

a)

<!DOCTYPE HTML5>

b)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">

c)

<!DOCTYPE html>

15.

Which HTML element is used to specify a header for a document or section?

a)

<top>

b)

<section>

c)

<header>

d)

<head>

16.

Which HTML element defines navigation links?

a)

<navigate>

b)

<nav>

c)

<navigation>

17.

What does CSS stand for?

a)

Colorful Style Sheets

b)

Cascading Style Sheets

c)

Creative Style Sheets

d)

Computer Style Sheets

18.

Which HTML tag is used to tell the browser you will add CSS ?

a)

<style>

b)

<css>

c)

<script>

19.

Which is the correct CSS syntax?

a)

body {color: black;}

b)

{body:color=black;}

c)

{body;color:black;}

d)

body:color=black;

20.

Which CSS property is used to change the background color?

a)

color

b)

bgcolor

c)

background-color

21.

How do you add a background color for all <h1> elements?

a)

h1.all {background-color:#FFFFFF;}

b)

all.h1 {background-color:#FFFFFF;}

c)

h1 {background-color:#FFFFFF;}

22.

Which CSS property is used to change the text color of an element?

a)

text-color

b)

font-color

c)

color

23.

Which CSS property controls the text size?

a)

text-size

b)

font-size

c)

text-style

d)

font-style

24.

How do you select an element with id "demo"?

a)

demo

b)

#demo

c)

*demo

d)

.demo

25.

How do you select elements with class name "test"?

a)

test

.

b)

.test

c)

*test

d)

#test

26.

Inside which HTML element do we put the JavaScript?

a)

<script>

b)

<javascript>

c)

<js>

d)

<scripting>

27.

What is the correct JavaScript syntax to change the content of the HTML element below?


<p id="demo">This is a demonstration.</p>

a)

document.getElement("p").innerHTML = "Hello World!";

b)

-

c)

document.getElementById("demo").innerHTML = "Hello World!";

28.

How do you write "Hello World" in an alert box?

a)

msg("Hello World");

b)

msgBox("Hello World");

c)

alertBox("Hello World");

d)

alert("Hello World");

29.

How do you create a function in JavaScript?

a)

function = myFunction()

b)

function myFunction()

c)

function:myFunction()

30.

How do you call a function named "myFunction"?

a)

myFunction()

b)

call myFunction()

c)

call function myFunction()

31.

Which event occurs when the user clicks on an HTML element?

a)

onchange

b)

onmouseover

c)

onclick

d)

onmouseclick

32.

How do you declare a JavaScript variable?

a)

variable carName;

b)

var carName;

c)

v carName;

33.

Which operator is used to assign a value to a variable?

a)

x

b)

-

c)

=

d)

*