You are on page 1of 1

Dark code

  HTML   
 Menu  Sign Up Log in

HTML Quiz Results


Score: 11 of 40

27% Correct:

Question 1:
What does HTML stand for?

 Hyper Text Markup Your answer


Language

Home Tool Markup Language

Hyperlinks and Text Markup Language

Question 2:
Who is making the Web standards?

 The World Wide Web Your answer


Consortium

Microsoft

Mozilla

Google

Question 3:
Choose the correct HTML element for the largest
heading:

 <head> Your answer

<heading>

<h1> Correct answer

<h6>

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

 <br> Your answer

<break>

<lb>

Question 5:
What is the correct HTML for adding a background color?

 <body Your answer


style="background-
color:yellow;">

<background>yellow</background>

<body bg="yellow">

Question 6:
Choose the correct HTML element to define important
text

 <i> Your answer

<important>

<strong> Correct answer

<b>

Question 7:
Choose the correct HTML element to define emphasized
text

 <italic> Your answer

<em> Correct answer

<i>

Question 8:
What is the correct HTML for creating a hyperlink?

 <a Your answer


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

<a>http://www.w3schools.com</a>

<a
url="http://www.w3schools.com">W3Sch
ools.com</a>

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

Question 9:
Which character is used to indicate an end tag?

/ Your answer

<

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

 <a href="url" Your answer


target="new">

<a href="url" Correct answer


target="_blank">

<a href="url" new>

Question 11:
Which of these elements are all <table> elements?

 <table><tr><td> Your answer

<thead><body><tr>

<table><tr><tt>

<table><head><tfoot>

Question 12:
Inline elements are normally displayed without starting a
new line.

 False Your answer

True Correct answer

Question 13:
How can you make a numbered list?

 <ul> Your answer

<list>

<ol> Correct answer

<dl>

Question 14:
How can you make a bulleted list?

 <ul> Your answer

<dl>

<ol>

<list>

Question 15:
What is the correct HTML for making a checkbox?

 <checkbox> Your answer

<check>

<input Correct answer


type="checkbox">

<input type="check">

Question 16:
What is the correct HTML for making a text input field?

 <input type="text"> Your answer

<textinput type="text">

<input type="textfield">

<textfield>

Question 17:
What is the correct HTML for making a drop-down list?

 <input type="list"> Your answer

<input type="dropdown">

<select> Correct answer

<list>

Question 18:
What is the correct HTML for making a text area?

<textarea> Correct answer

<input type="textarea">

<input type="textbox">

Question 19:
What is the correct HTML for inserting an image?

 <img href="image.gif" Your answer


alt="MyImage">

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

<img src="image.gif" Correct answer


alt="MyImage">

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

Question 20:
What is the correct HTML for inserting a background
image?

 <body Your answer


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

<body bg="background.gif">

<background img="background.gif">

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

True Correct answer

There is no such thing as an <iframe>

False

Question 22:
HTML comments start with <!-- and end with -->

True Correct answer

False

Question 23:
Block elements are normally displayed without starting a
new line.

False Correct answer

True

Question 24:
Which HTML element defines the title of a document?

<title> Correct answer

<head>

<meta>

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

 title Your answer

alt Correct answer

longdesc

src

Question 26:
Which doctype is correct for HTML5?

<!DOCTYPE HTML5>

<!DOCTYPE HTML PUBLIC "-


//W3C//DTD HTML 5.0//EN"
"http://www.w3.org/TR/html5/strict.dtd">

<!DOCTYPE html> Correct answer

Question 27:
Which HTML element is used to specify a footer for a
document or section?

<footer> Correct answer

<section>

<bottom>

Question 28:
In HTML, you can embed SVG elements directly into an
HTML page.

True Correct answer

False

Question 29:
What is the correct HTML element for playing video files?

 <movie> Your answer

<media>

<video> Correct answer

Question 30:
What is the correct HTML element for playing audio files?

<audio> Correct answer

<mp3>

<sound>

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

 Specifies a context menu Your answer


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

Update content from the server

Specify whether the Correct answer


content of an element
should be editable or
not

Return the position of the first found


occurrence of content inside a string

Question 32:
In HTML, onblur and onfocus are:

 Style attributes Your answer

Event attributes Correct answer

HTML elements

Question 33:
Graphics defined by SVG is in which format?

 CSS Your answer

XML Correct answer

HTML

Question 34:
The HTML <canvas> element is used to:

 display database Your answer


records

draw graphics Correct answer

manipulate data in MySQL

create draggable elements

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

 required Your answer

validate

placeholder

formvalidate

Question 36:
Which input type defines a slider control?

 search Your answer

controls

slider

range Correct answer

Question 37:
Which HTML element is used to display a scalar
measurement within a range?

 <measure> Your answer

<gauge>

<meter> Correct answer

<range>

Question 38:
Which HTML element defines navigation links?

<navigation>

<nav> Correct answer

<navigate>

Question 39:
In HTML, what does the <aside> element define?

 A navigation list to be Your answer


shown at the left side of
the page

The ASCII character-set; to send


information between computers on the
Internet

Content aside from Correct answer


the page content

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

<head>

<section>

<header> Correct answer

<top>

Study HTML in our HTML Tutorial

w3schoo
l
s
CE

Kickstart
RT

I
20
2

FI
ED
.

your career

Get certified by
completing a course

Get certified

ADVERTISEMENT

You might also like