NEW
Font size
WorksheetsHTML quiz
Total questions: 39
Worksheet time: 20mins
What does HTML stand for?
Hyper Text Markup Language
Hyperlinks and Text Markup Language
Home Tool Markup Language
Who is making the Web standards?
The World Wide Web Consortium
Microsoft
Mozilla
Choose the correct HTML element for the largest heading:
<h1>
<heading>
<h6>
<head>
What is the correct HTML element for inserting a line break?
<br>
<break>
<lb>
What is the correct HTML for adding a background color?
<body style="background-color:yellow;">
<background>yellow</background>
<body bg="yellow">
Choose the correct HTML element to define important text
<strong>
<b>
<i>
<important>
Choose the correct HTML element to define emphasized text
<em>
<italic>
<i>
What is the correct HTML for creating a hyperlink?
<a href="http://www.w3schools.com">W3Schools</a>
<a url="http://www.w3schools.com">W3Schools.com</a>
<a>http://www.w3schools.com</a>
<a name="http://www.w3schools.com">W3Schools.com</a>
Which character is used to indicate an end tag?
/
<
*
^
How can you open a link in a new tab/browser window?
<a href="url" target="_blank">
<a href="url" target="new">
<a href="url" new>
Which of these elements are all <table> elements?
<table><tr><td>
<table><tr><tt>
<thead><body><tr>
<table><head><tfoot>
Inline elements are normally displayed without starting a new line.
True
False
How can you make a numbered list?
<ol>
<list>
<dl>
<ul>
How can you make a bulleted list?
<ul>
<ol>
<list>
<dl>
What is the correct HTML for making a checkbox?
<input type="checkbox">
<check>
<input type="check">
<checkbox>
What is the correct HTML for making a text input field?
<input type="text">
<input type="textfield">
<textinput type="text">
<textfield>
What is the correct HTML for making a drop-down list?
<select>
<input type="list">
<input type="dropdown">
<list>
What is the correct HTML for making a text area?
<textarea>
<input type="textarea">
<input type="textbox">
What is the correct HTML for inserting an image?
<img src="image.gif" alt="MyImage">
<image src="image.gif" alt="MyImage">
<img alt="MyImage">image.gif</img>
<img href="image.gif" alt="MyImage">
What is the correct HTML for inserting a background image?
<body style="background-image:url(background.gif)">
<background img="background.gif">
<body bg="background.gif">
An <iframe> is used to display a web page within a web page.
True
There is no such thing as an <iframe>
False
HTML comments start with <!-- and end with -->
True
False
Block elements are normally displayed without starting a new line.
False
True
Which HTML element defines the title of a document?
<title>
<head>
<meta>
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
alt
longdesc
title
src
Which doctype is correct for HTML5?
<!DOCTYPE html>
<!DOCTYPE HTML5>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
Which HTML element is used to specify a footer for a document or section?
<footer>
<bottom>
<section>
In HTML, you can embed SVG elements directly into an HTML page.
True
False
What is the correct HTML element for playing video files?
<video>
<movie>
<media>
What is the correct HTML element for playing audio files?
<audio>
<sound>
<mp3>
The HTML global attribute, "contenteditable" is used to:
Specify whether the content of an element should be editable or not
Return the position of the first found occurrence of content inside a string
Specifies a context menu for an element. The menu appears when a user right-clicks on the element
Update content from the server
In HTML, onblur and onfocus are:
Event attributes
Style attributes
HTML elements
Graphics defined by SVG is in which format?
XML
CSS
HTML
The HTML <canvas> element is used to:
draw graphics
display database records
manipulate data in MySQL
create draggable elements
In HTML, which attribute is used to specify that an input field must be filled out?
required
formvalidate
placeholder
validate
Which input type defines a slider control?
range
slider
search
controls
Which HTML element is used to display a scalar measurement within a range?
<meter>
<gauge>
<range>
<measure>
Which HTML element defines navigation links?
<nav>
<navigate>
<navigation>
Which HTML element is used to specify a header for a document or section?
<header>
<top>
<section>
<head>
