wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GraySchools HTML Quiz

Total questions: 69

Worksheet time: 43mins

Name
Class
Date
1.

Which is the correct syntax for a link?

a)

<a href="url">link text</a>

b)

<a href="url" link text>

c)

<a href=url>link text</a>

d)

<a href="url" link text</a>

2.

By default, the linked page will be displayed in ______________ browser window.


In other words, where will the following link open:

<a href="https://www.w3schools.com/">Visit W3Schools!</a>

a)

the current

b)

a new

c)

the target

d)

a blank

3.
Which of the following do you use to create a hyperlink in an HTML document?
a)
The <html> element
b)
The <hr> element
c)
The <img> element
d)
The <a> element
4.
What is the default appearance of hyperlinks in the browser?
a)
Italic and purple
b)
Blue and underlined
c)
Bold and Italic
d)
Purple and underlined
5.

Which attribute contains the URL to a linked web page?

a)

href

b)

type

c)

src

d)

name

6.

Which of the following is included in the image tag code?

a)

src

b)

h1

c)

<p>

d)

scr

7.

Which is an example of a complete image tag?

a)

<img "dog.jpg">

b)

<img src="dog.jpg" alt="my dog"/>

c)

img=dog.jpg

d)

<src="dog.jpg" alt="my dog">

8.

Which tag should be used to include the following image: cat.jpeg?

a)

<img src="cats.jpg" alt="cat"/>

b)

<img src="cat.JPG" alt="cat"/>

c)

<img src="cat.jpeg" alt="cat"/>

d)

<img src="dog.jpeg" alt="cat"/>

9.

What is missing from this image tag?


<img="cat.jpeg" alt="cat"/>

a)

h1

b)

h6

c)

.jpeg

d)

src=

10.

Can I use an image without giving credit to the website and owner of the photo?

a)

yes

b)

no

11.

What is the correct HTML for adding a background color?

a)

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

b)

<background>yellow</background>

c)

<body bg="yellow">

12.

HTML Links are created with the ________ tag.

a)

<a href="location"></a>

b)

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

c)

<redirect to page="location">

13.

What does HTML stand for?

a)

Hyper Tremendous Movie Lines

b)

Hyper Text Markup Language

c)

Hey Thanks for Making me Late

14.

<h1> is an example of a _______.

a)

Headline Tag

b)

Paragraph Tag

c)

filename

15.

<p> is a _______ tag.

a)

image

b)

paragraph

c)

filename

16.

Web pages starts with which of the following tag?

a)

<form>

b)

<HTML>

c)

<body>

d)

<Title>

17.

Choose the correct HTML element for the largest heading:

a)

<head>

b)

<h1>

c)

<heading>

d)

<h6>

18.

HTML controls the _________ of a webpage.

a)

feel

b)

precision

c)

structure

d)

style

19.

<p> is the opening tag for a _____________

a)

page

b)

paragraph

c)

preorder

d)

period

20.

What defines the beginning and ending of the visible part of a webpage?

a)

<head> main part of the document </body>

b)

<body> main part of the document </html>

c)

d) </body> main part of the document <html>

d)

<body> main part of the document </body>

21.

Which character is used to indicate an end tag?

a)

!

b)

#

c)

/

d)

\

22.

Which of the following is the proper format for an HTML tag?

a)

>h1<Content Affected by Tag >/h1<

b)

<h1>Content Affected by Tag<h1>

c)

<h1 Content Affected by Tag />

d)

<h1>Content Affected by Tag</h1>

23.

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

a)

<lb>

b)

<BREAK>

c)

<br>

d)

<break>

24.
What does HTML stand for?
a)
Hypertext Medium Language
b)
Hippo Tries Making Licorice
c)
Hypertext Markup Lingo
d)
Hypertext Markup Language
25.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
26.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
27.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
28.
The content of the web (such as your pictures, text, links) will show up here. 
a)
Head
b)
Body
c)
Style
d)
Folder
29.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
30.
The following tag will show a bulleted list
a)
<ul>
b)
<ol>
c)
<li>
d)
<list>
31.
There simple, easy-to-use programs allow you to enter, edit, save, and print text.
a)
text editor
b)
web browser
c)
domain name
d)
webmaster
32.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
33.
What website can I use to learn more HTML?
a)

baldwithbeard.com

b)

w3schools.com

c)
planetbravo.com
d)
gmail.com
34.
What code is a heading?
a)
h1
b)
p
c)
b
d)
a
35.
CSS controls the.....
a)
Coding
b)
Subject Matter
c)
Style
d)
Robots
36.
P is for......
a)
place
b)
part
c)
potty
d)
paragraph
37.
Can you use copyrighted material for school projects?
a)
yes
b)
no
38.
<html>
a)
Gives you structure and text
b)
Not needed when creating HTML sites
c)
Goes after the <h1>
d)
Goes after the <body>
39.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
40.

</header> is

a)
Header Tag
b)
Headline Tag
c)
Half of a tag
d)
Closing header tag
41.
</html>
a)
Found after </h1>
b)
Found after </style>
c)
Found after </body>
d)
Found at bottom of written code
42.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
43.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
44.

If you have more than a couple of large images on a web page, you can make your web page more usable and faster to download by creating what?

a)

Charset

b)

Thumbnails

c)

Standard

d)

Compatible

45.

What is the attribute for how you specify the location of the image file.

a)

Alt

b)

JPEG

c)

W3C

d)

src

46.

What attribute of an <img> element is a meaningful description of the image.

a)

Alt

b)

src

c)

JPEG

d)

GIF

47.

These are the three formats for images that are widely supported by web browsers.

a)

JPEG

b)

PNG

c)

GIF

d)

BMP

48.

This format is best for photographs and other complex images.

a)

BMP

b)

PNG

c)

GIF

d)

JPEG

49.

The format is best for logos and other simple graphics with solid colors, lines, or text.

a)

GIF

b)

PNG

c)

Transparent

d)

HTML5

50.

JPEG images can be at a ___________ variety of different qualities, so you can choose the best balance of quality and file size for your needs.

a)

Compressed

b)

Transparent

c)

Larger

d)

Matte Color

51.

The GIF and PNG image formats allow you to make an image with a ___________ background.

a)

Compatible

b)

Larger

c)

Compressed

d)

Transparent

52.

GIF and PNG are lossless formats, which means the file sizes are likely to be what compared to a JPEG.

a)

Same

b)

Larger

c)

Smaller

53.

In Photoshop, use what menu in the "Save for Web" dialog to choose the right color for softening the edges of your transparent PNG or GIF image.

a)

doctype

b)

Matte color

c)

HTML5

d)

Thumbnails

54.

What is the current HTML standard.

a)

HTML2

b)

HTML3

c)

HTML4

d)

HTML5

55.

The standards organization that defines what standard HTML is.

a)

HTML

b)

CCS

c)

World Wide Web Consortium (W3C)

d)

HTTP

56.

HTML is backwards _________ keep adding new stuff to HTML, and the browsers will support this new stuff, but they'll also keep supporting the old stuff

a)

Compatible

b)

Compressed

c)

Transparent

d)

Standard

57.

The document type definition used to tell the browser the version of HTML you're using.

a)

Alt

b)

Charset

c)

doctype

d)

Meta

58.

What tag in the <head> element tells the browser additional information about a web page, such as the content type and character encoding.

a)

doctype

b)

Alt

c)

Charset

d)

Meta

59.

What attribute of the <meta> tag tells the browser the character encoding that is used for the web page.

a)

Alt

b)

Doctype

c)

Charset

d)

Meta

60.

The alt attribute is required for the <img> element.

a)

Meta

b)

doctype

c)

Charset

d)

Alt

61.

What validator is a free online service that checks pages for compliance with HTML standards.

a)

W3C

b)

HTML

c)

Meta

d)

doctype

62.

Use the what to ensure that your HTML is well formed and that your elements and attributes meet the standard.

a)

Standard

b)

Validator

c)

doctype

d)

transparent

63.

By adhering to the ___________, your pages will display more quickly and with fewer display differences between browsers, and your CSS will work better.

a)

W3C

b)

Validator

c)

Standard

d)

Doctype

64.

Open all your html files with this line of code

a)

meta charset="utf-8"

b)

html lang="en"

c)

!doctype html

65.

Be sure to define your code language in your opening HTML tag.

a)

!doctype html

b)

html lang="en"

c)

meta charset="utf-8"

66.

Define your character set in the Meta tag in the HEAD tags.

a)

!doctype html

b)

html lang="en"

c)

meta charset="utf-8"

67.
What does HTML stand for?
a)
Happy Turtles Moo Loud
b)
Hyper Text Markup Language
c)
Half Terabyte Megabyte LAN
d)
Hyper Tool Mega Language
68.
Which of the following is an HTML tag?
a)
<p>
b)
{p}
c)
var p;
d)
p:
69.
Which of the following is an opening tag?
a)
</html>
b)
</body>
c)
</p>
d)
<h1>