wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Quiz

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

How to create web forms in HTML?

a)

<FRAME>

b)

<FORM>

c)

<A>

d)

<IMG>

2.

Which tag is used to create hyperlinks in HTML?

a)

<Hyper>

b)

<anchor>

c)

<img>

d)

None of these

3.
Which tag is used for scrolling the text?
a)
<scroll>
b)
<textscroll>
c)
<marque>
d)
<marquee>
4.
What is the purpose of HTML
a)
To make a formatted document
b)
To make a webpage
c)
To edit photos
d)
To make a creative slide
5.
Which character is used to indicate an end tag?
a)
~
b)
/
c)
*
d)
<
6.

What is the correct HTML for adding a table background color?

a)

<Table bgcolor="pink">

b)

<Table backgroundcolor=

"pink">

c)

<Table bgcolour="pink">

d)

None of these

7.

What is the correct HTML for creating a hyperlink?

a)

<a> </a>

c)
d)

<a href:facebook.com> </a>

8.

Who is making the Web standards?

a)

Mozilla

b)

Google

c)

The World Wide Web Consortium

d)

Microsoft

9.

How can you open a link in a new tab/browser window?

a)

<a href="url" target="_blank">

b)

<a href="url" target="blank">

c)

<a href="url"  target="_new">

10.

what does the width and height attributes do

a)

adjusts the size of a video

b)

adjusts the size of a text

c)

adjusts the size of a image

d)

adjust the size of a img

11.
Which tag is used for scrolling the text?
a)
<scroll>
b)
<textscroll>
c)
<marque>
d)
<marquee>
12.

Which of these is NOT a web browser?

a)

Chrome

b)

Internet Explorer

c)

Facebook

d)

Firefox

13.

What is the correct HTML element for playing video files?

a)

<video>

b)

<movie>

c)

<media>

14.

The HTML global attribute, "contenteditable" is used to:

a)

Specify whether the content of an element should be editable or not

b)

Return the position of the first found occurrence of content inside a string

c)

Specifies a context menu for an element. The menu appears when a user right-clicks on the element

d)

Update content from the server

15.

In HTML, onblur and onfocus are:

a)

Event attributes

b)

Style attributes

c)

HTML elements

16.

In HTML, which attribute is used to specify that an input field must be filled out?

a)

required

b)

formvalidate

c)

placeholder

d)

validate

17.

Which HTML element defines navigation links?

a)

<nav>

b)

<navigate>

c)

<navigation>

18.

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

a)

<header>

b)

<top>

c)

<section>

d)

<head>

19.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
20.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
21.
The content of the web (such as your pictures, text, links) will show up here. 
a)
Head
b)
Body
c)
Style
d)
Folder
22.
What does the <p> tag do?
a)
Creates preformatted text
b)
places a picture in the website
c)
creates a paragraph break
23.
Which format usually works best for photos?
a)

JPEG

b)

DOC

c)

GIF

d)

WAV

24.
Is this an opening tag or a closing tag? </p>
a)
Opening
b)
Closing
25.
HTML tags are always surrounded by
a)
( )
b)
{ }
c)
< >   
d)
"  "
26.

Which character is used to indicate an end tag?

a)

>

b)

<

c)

/

d)

@

27.

7. Which HTML element defines the title of a document?

(a)  

28.

Which is the correct syntax to apply border to image in HTML?

a)

<Border> <IMG scr ="test.jpeg" > </Border>

b)

<IMG scr ="test.jpeg" line-border ="2" >

c)

<IMG scr ="test.jpeg" border ="2" >

d)

<IMG scr ="test.jpeg"><border>Thicknes ="2"</border></IMG>

29.

10. What is the name of the two sections associated with HTML?

a)

face and feet

b)

end and html

c)

head and body

d)

left and right

30.

What does <!DOCTYPE> do?

a)

sets the type of language for the page

b)

sets the type of language for the paragraph

c)

inserts a type of codument

d)

opens a certain type of document

31.

What does <title> do?

a)

sets the title font

b)

displays the title on the page

c)

reads the title audibly

d)

changes the tab label for the website

32.

What kind of tag inserts a link to text?

a)

<html>

b)

<a>

c)

<p>

d)

<!DOCTYPE>

33.

What does the <head> tag do?

a)

inserts a picture of the developer's head

b)

creates a header section at the top of the page

c)

creates a header section at the bottom of the page

d)

creates header-style text

34.

What does <strong> do?

a)

creates bold text

b)

creates italics text

c)

creates big text

d)

creates backwards text

35.

What does <em> do?

a)

Creates bold text

b)

creates empty text

c)

creates italics text

d)

creates an empty space

36.

What size is the title 'Abcdef 1'?

a)
h1
b)
h2
c)
h3
d)
h4
37.

What is a CMS in web design

a)

Content Management System

b)

Creative Management System

c)

Content Mixing System

d)

Creatives Managerial System

38.

Which of the following is true

a)

You need a server to host your website files

b)

You don’t need a server to host your website files

c)

You can create a website without using HTML

d)

You can’t create a website without a CMS

39.

Which of the following is not a web hosting company

a)

Hostgator

b)

Blue Host

c)

WPX Hosting

d)

Facebook

40.

Which tag creates a check box for a form in HTML?

a)

<checkbox>

b)

<input type="checkbox">

c)

<input=checkbox>

d)

<input checkbox>

41.

To create a combo box (drop down box) which tag will you use?

a)

<select>

b)

<list>

c)

<input type="dropdown">

d)

all of above

42.

Which of the following HTML code is valid?

a)

<font colour="red">

b)

<font color="red">

c)

<red><font>

d)

All of above are style tags

43.

Which attribute you’ll use with TD tag to merge two cells horizontally?

a)

merge=colspan2

b)

rowspan=2

c)

colspan=2

d)

merge=row2

44.

<b> tag makes the enclosed text bold. What is other tag to make text bold?

a)

<strong>

b)

<dar>

c)

<black>

d)

<emp>

45.

Which of the following is not a valid alignment attribute?

a)

Left

b)

Right

c)

Top

d)

None of the above

46.

When should you use path along with file name of picture in IMG tag?

a)

path is optional and not necessary

b)

when the location of image file and html file are different

c)

when image file and html file both are on same location

d)

path is always necessary when inserting image

47.

<p> are used to code ____.

a)

page

b)

headers

c)

paragragh

d)

hyperlink

48.

How do you close a HTML tag?

a)

<>

b)

[]

c)

{}

d)

</>

49.

What tag is used for all visible content?

a)

<head>

b)

<body>

c)

<vis>

d)

<p>

50.

HTTP stands for ______

a)

Hyper Transfer Translation Program

b)

Hyper Text Transfer Protocol

c)

Hyper Transfer Text Protocol

d)

Hyper Transfer Text Program

51.

What is the Request/Response Cycle?

a)

Will search the answer later

b)

The process that happens when a server requests a page and a client responds with the appropriate files

c)

The process that happens when a HTML5 is created with an editor

d)

The process that happens when a client requests a page and a server responds with the appropriate files

52.

The Domain Name Service looks up the domain and returns the--------

a)

server

b)

host

c)

document

d)

IP address

53.

HTML uses _____ to annotate documents. This is a way of marking up the content to identify specific HTML elements.

a)

.html

b)

attributes

c)

tags

d)

HTML 5

54.

The original web was developed

a)

as a way for scientists to exchange information

b)

as a way to display graphical images.

c)

as way to increase international commerce

d)

I was not able to read the lessons in HTML.

55.

There are two distinct types of hyperlink:

a)

absolute and relative

b)

absolute and hyper

c)

superlative and relative

56.

One of the target window options is...


a)

_self

b)

_window

c)

_tab

57.

HTML tags have to have both a < and >

a)

True

b)

False

58.

What type of list does this code make?

a)

Ordered

b)

Unordered

59.
<img> tag finds;
a)
finds the image located at the a URL and the src attribute and then displays it.
b)
finds the image located at the SRC in the URL attribute and then displays it.
c)
Adds a cool picture
d)
Does not work in HTML coding
60.

What will this code look like?

<ol>

<li>Step 1 </li>

<li>Step 2 </li>

<li>Step 3 </li>

</ol>

a)
  • Step 1
  • Step 2
  • Step 3
b)

Step 1

Step 2

Step 3

c)

Step 1

Step 2

Step 3

d)
  1. Step 1
  2. Step 2
  3. Step 3