WorksheetsHTML Basics
Total questions: 55
Worksheet time: 24mins
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>
Web Standards are decided on by who?
Microsoft
Apple
The World Wide Web Consortium
Which of the following is the largest or most important heading?
h2
h3
h1
h6
What does a <br> tag do?
Inserts a space between text
Creates a link to a webpage
Inserts a single line break
Inserts multiple line breaks
Where are the <html> and </html> tags used?
<html> at the beginning. </html> at the end
</html> at the beginning. <html> at the end
Both go at the beginning of the document
Both go at the end of the document
What is the correct syntax of setting the text color of a <p> element?
<p font="yellow">
<p style="color:yellow";>
<p color="yellow">
Which HTML element should be used to define emphasized text?
i
strong
b
em
Which HTML attribute is used to define inline styles?
class
id
style
font
If an image cannot be displayed, which HTML attribute shows alternate text for the image?
imagedesc
alt
img
title
The title of a document is defined by which HTML element?
<head>
<title>
<meta>
Which HTML attribute will open a page into a new window/tab?
target="_top"
target="_new"
target="_blank"
target="_open"
Which HTML element is used to connect to an external style sheet?
<style>
<title>
<link>
<head>
Which HTML element is used to add a footer to a document or section?
<section>
<div>
<bottom>
<footer>
Which of the following would you use to properly insert an image into an HTML document?
<a href="sadface.gif" alt="SadFace">
<a img=""sadface.gif" alt="SadFace">
<img src="sadface.gif" alt="SadFace">
Which item below would you use to insert a comment into an HTML document?
<!--this is my comment-->
/*this is my comment*/
"this is my comment"
Which elements are used to define a description list?
<dl> and <<dt>
<dl> and <dd>
<dl>, <dfn>, and <dd>
<dl>, <dt>, and <dd>
To set up a group of navigation links, which element below should be used?
<navigation>
<navlink>
<nav>
<navigate>
Block elements usually are not started on a new line.
True
False
Which HTML element will allow you to create an inline frame?
<inline>
<inframe>
<iframe>
<frame>
What does the <aside> element define?
Defines content aside from the page content
Defines a container for navigation links
Defines an independent self-contained article
<h1>, <p> and <ul> are examples of:
Inline Elements
Block Elements
HTML Attributes
HTML Events
To create an image map, you would use __________ and ___________.
<img> and <area>
<map> and <area>
<img> and <region>
<map> and <region>
Looking at an HTML document, where would you type the link that would connect to an external style sheet?
In the <footer> section
Before the <html> element
After the <html> element, before the <head> element
In the <head> section
Which element would you use to create a section break (thematic break) in a page.
<br>
<break>
<hr>
<divide>
What is the correct order for using Hex color values for Red, Green, Blue?
#RRBBGG
#GGBBRR
#RRGGBB
#BBGGRR
Which is NOT true of an empty element?
An element that has an opening tag, no closing tag.
An element that includes opening and closing tag and content between?
An element that includes an opening and closing tag? No content.
An element that includes an opening tag and content.
To create a list where the items are marked with letters, which element would you use below?
<ol type="A">
<ol type="1">
<ol type="L">
Which attribute would you use to add a "tooltip"?
img
p
title
alt
What is the correct syntax for creating a bookmark located inside an HTML document?
<a id="chapter4">Chapter 4</a>
<a class="chapter4">Chapter 4</a>
<a href="chapter4">Chapter 4</a>
<a target="chapter4">Chapter 4</a>
<strong>, <a> and <img> are examples of:
Inline Elements
Block Elements
HTML Attributes
HTML Events
To define text direction, which element would you use?
<dir>
<text>
<td>
<bdo>
Which HTML element should be used to define important text?
<strong>
<em>
<i>
<font>
The DOCTYPE declaration is an instruction that tells the browser which version of HTML is used.
True
False
HTML tags ARE case sensitive?
True
False
Which is the correct syntax to define the background color of an HTML document?
<body style="background-color:powderblue;">
<body bg="color:powderblue;">
<body bg-color="powderblue;">
Is this the correct syntax of changing text color of a paragraph to purple?
<p style="color:purple;">This is the color purple</p>
Yes
No
Which element defines marked or highlighted text?
<highlighted>
<yellow>
<mark>
<marked>
What is the correct syntax for adding a bookmark to a section located within the same page?
<a id="#chapter4">Chapter 4</a>
<a class="#chapter4">Chapter 4</a>
<a href="#chapter4">Chapter 4</a>
<a target="#chapter4">Chapter 4</a>
Which tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
<drawing>
<figure>
<caption>
<figcaption>
