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