WorksheetsHTML Quiz 7
Total questions: 80
Worksheet time: 45mins
Name
Class
Date
1.
Defines a division or a section in an HTML document. Used to group block-elements to format them with CSS
a)
<div>
b)
<span>
c)
<caption>
d)
<group>
2.
Used to group inline-elements in a document
a)
<span>
b)
<div>
c)
<elements>
d)
<group>
3.
How do you make something float to the left?
a)
float-left: true;
b)
float:left;
c)
left:float;
d)
left-float: true;
4.
How do you tell the computer you want something to display as a block?
a)
<block>
b)
display: block;
c)
<disblock>
d)
block: 100;
5.
Inline elements are normally displayed without starting a new line.
a)
True
b)
False
6.
What is the correct HTML for making a checkbox?
a)
<check>
b)
<input type="checkbox">
c)
<checkbox>
d)
<input type="check">
7.
What is the correct HTML for making a text input field?
a)
<textinput type="text">
b)
<input type="textfield">
c)
<textfield>
d)
<input type="text">
8.
What is the correct HTML for making a text area?
a)
<textarea>
b)
input type="textbox">
c)
<input type="textarea">
d)
<text>
9.
What is the correct HTML for making a drop-down list?
a)
<list>
b)
<select>
c)
<input type="list">
d)
<input type="dropdown">
10.
An <iframe> is used to display a web page within a web page.
a)
False
b)
There is no such thing as an <iframe>
c)
True
11.
Block elements are normally displayed without starting a new line.
a)
True
b)
False
12.
Which HTML element defines the title of a document?
a)
<title>
b)
<meta>
c)
<head>
13.
If 5 spaces are left between two words, how many will appear in the web browser?
<p>I enjoyed my spring break.</p>
<p>I enjoyed my spring break.</p>
a)
1
b)
2
c)
4
d)
5
14.
What do the letters URL stand for?
a)
Unique Resource Locator
b)
Uniform Resource Locator
c)
Unique Reference Locator
15.
Which of the following is the correct relative path from the homepage to the news page if they are both in the same folder?
a)
news.html
b)
/news.html
c)
../news.html
d)
home/news.html
16.
Which element should be used to embed a Google map or Youtube video into a web page
a)
<frame>
b)
<iframe>
c)
<embed>
17.
CSS3 introduced the rbga for specifying colors. What does the a stand for?
a)
Array
b)
Alpha
c)
Accurate
d)
Attribute
18.
Which of these is NOT a valid way of expressing type size?
a)
em
b)
px
c)
%
d)
en
19.
Which HTML5 element is shown by point A in this diagram?
a)
<header>
b)
<heading>
c)
<masthead>
20.
What is the correct HTML tag to create a drop down list box?
a)
<input type="dropdown">
b)
<input type="list">
c)
<select>
d)
<list>
21.
http://www.google.com is an example of a what?
a)
URL
b)
IP address
c)
Browser
d)
Application
22.
Two heading tags can normally be displayed on a single line.
a)
True
b)
False
23.
Which of the following creates a block level section in an HTML webpage?
a)
<div>
b)
<span>
c)
<a>
d)
<block>
24.
Which of the following can be used to change the style of inline elements on a webpage?
a)
<span>
b)
<inline>
c)
<edit>
d)
<div>
25.
Which of the following will display a block of red text on a webpage?
a)
<div style="color: red;">Some text</div>
b)
<div style="text: red;">Some text</div>
c)
<div style="font-color: red;">Some text</div>
d)
<div style="fore-color: red;">Some text</div>
26.
Which of the following will change the font of a phrase of text to Verdana?
a)
<span style="font-family: Verdana"> Some text </span>
b)
<span style="font-used: Verdana"> Some text </span>
c)
<span style="font-text: Verdana"> Some text </span>
d)
<span style="font-applied: Verdana"> Some text </span>
27.
Which of the following creates a clickable block in an HTML webpage?
a)
<a href="page.html"><div style="width: 100px; height: 100px; background-color: black;"><div></a>
b)
<click src="page.html"><div style="width: 100px; height: 100px; background-color: black;"><div></click>
c)
<link src="page.html"><div style="width: 100px; height: 100px; background-color: black;"><div></link>
d)
<nav src="page.html"><div style="width: 100px; height: 100px; background-color: black;"><div></nav>
28.
What would you include in a <nav> element when using HTML5?
a)
Logo
b)
Main Heading
c)
Menu
d)
Copyright Symbol
29.
What would you include in a <header> element when using HTML5?
a)
Logo
b)
Menu
c)
Main Heading
d)
Copyright Symbol
30.
What would you include inside a <footer> tag when using HTML5?
a)
Logo
b)
Menu
c)
Main Heading
d)
Copyright Symbol
31.
What you include in an <section> tag when using HTML5?
a)
Logo
b)
Menu
c)
Main Heading
d)
Copyright Symbol
32.
What is an inline tag?
a)
One that can have other tags on the same line
b)
One which can only have one tag (itelf) on a single line
33.
What is a block tag?
a)
One that can have other tags on the same line
b)
One that can have only a single tag on one line
34.
What is a <head> tag used for?
a)
It holds the main content of the web page.
b)
It contains information about the web page.
c)
It contains the the footer
d)
Used to display images.
35.
The ___ tag set provides information to the browser about your webpage including the author name and keywords.
a)
<html></html>
b)
<body></body>
c)
<style></style>
d)
<meta></meta>
36.
These are examples of inline elements
a)
<a> <b> <em> <img>
b)
<h1> <p> <ul> <li>
c)
<div><p><hr><li>
d)
<span><div><nav><header>
37.
These are examples of block elements
a)
<a> <b> <em> <img>
b)
<div><p><h1><form>
c)
<span><a><img>
d)
<form><a><p><img>
38.
Used to embed another document within the current HTML document.
a)
<iframe>
b)
<frame>
c)
<embed>
d)
<doc>
39.
Defines a division or a section in an HTML document. Used to group block-elements to format them with CSS
a)
<div>
b)
<span>
c)
<caption>
d)
<group>
40.
Contains info about the webpage
a)
<meta>
b)
<head>
c)
<body>
d)
<html>
41.
List of comma-seperated words that users might search
a)
<meta name="keywords">...</>
b)
<meta name="description">...</>
c)
<meta name="search">...</>
d)
<meta name="list">...</>
42.
Indicates whether serach engines should add this page to their search results
a)
<meta name="robots">...</>
b)
<meta name="search">...</>
c)
<meta name="results">...</>
d)
<meta name="pages">...</>
43.
The ___ tag set provides information to the browser about your webpage including the author name and keywords.
a)
<html></html>
b)
<body></body>
c)
<style></style>
d)
<meta></meta>
44.
What is the tag used for adding series of hyperlinks?
a)
<H><H/>
b)
<nav><nav/>
c)
<HL><HL/>
d)
<hl><hl/>
45.
Consider the following code for a text box in a Web form:
<input type="text" name="UserName"/>
Which modified tag should you use if you want the text box to appear with default text that reads "Enter Name Here"?
<input type="text" name="UserName"/>
Which modified tag should you use if you want the text box to appear with default text that reads "Enter Name Here"?
a)
<input type="text" name="UserName" value="Enter Name Here"/>
b)
<input type="name" text="Enter Name Here" value="text"/>
c)
<input type="area" value="default" text="UserName"/>
d)
<input type="text" name="UserName" default="Enter Name Here"/>
46.
Which line of HTML code creates a scrolling text box that can display three rows of text that are each 30 characters long?
a)
<input type="textarea" name="comments" width="30" rows="3"/>
b)
<input type="text" name="comments" chars="30" rows="3"/>
c)
<text name="comments" width="30" rows="3">
d)
<textarea name="comments" cols="30" rows="3">
47.
Which line of HTML code begins a single-option select list?
a)
<select name="listName">
b)
<input type="select" name="listName" multiple="0"/>
c)
<select name="listName" multiple="no">
d)
<input type="select" name="listName"/>
48.
Consider the following example code from a Web form:
How often do you want to be updated about Habitat for Humanity?
<select name="Frequency">
<option> Once a month </option>
<option> Once a quarter </option>
<option> Once a year </option>
<option value="NotAtAll"> Never </option>
</select>
Which Web form field will this code create?
How often do you want to be updated about Habitat for Humanity?
<select name="Frequency">
<option> Once a month </option>
<option> Once a quarter </option>
<option> Once a year </option>
<option value="NotAtAll"> Never </option>
</select>
Which Web form field will this code create?
a)
A single-select drop-down list
b)
A group of check boxes
c)
A group of radio buttons
d)
A multiple-select drop-down list
49.
Which line of code creates a text box in a Web form that will validate as HTML5?
a)
<input type="text" name="UserName"/>
b)
<input type="text" name="UserName">
c)
<input text="area" name="UserName"/>
d)
<input type="area" text="UserName">
50.
Which <form> element attribute and value specify that the browser will send data to the Web server location specified by a URL?
a)
action="get"
b)
action="post"
c)
method="post"
d)
method="get"
51.
If a Web page author wants her users to select only one option among several specified on a form, which input type should she specify?
a)
Radio buttons
b)
Check boxes
c)
A text box
d)
A Reset button
52.
In an HTML form, the <input> tag is used to:
a)
create lists of choices from which users make selections.
b)
create text boxes, radio buttons and Submit buttons.
c)
create a text box for users to write longer comments.
d)
collect all input and combine it into a query string.
53.
Which line of code will create a Web form check box that will validate as HTML5?
a)
<input type="checkbox" name="groupName"/>
b)
<input type="check" name="groupName"/>
c)
<input type="checkbox" name="groupName">
d)
<input type="check" name="groupName">
54.
Which tag is a container for all the head elements (title, scripts, styles, meta information, and more)
a)
<body>
b)
<head>
c)
<html>
d)
<h1>
55.
Which attribute specifies that an input element should be disabled
a)
d
b)
dl
c)
disabled
d)
ds
56.
Which tag declares the character encoding UTF-8
a)
<html />
b)
<title />
c)
<head />
d)
<meta />
57.
You can find the aside section of content on the
a)
right
b)
left
c)
top
d)
bottom
58.
The header section can be found in the <head> section
a)
true
b)
false
59.
An HTML structural element that content is an independent piece of information but is important for relaying information to the user
a)
section
b)
article
c)
aside
d)
navigation
60.
Content that is tangential or slightly related to the main topic of the Web page
a)
section
b)
article
c)
header
d)
aside
61.
What can be found in the address bar
a)
URL
b)
search tools
c)
selected favorites
d)
short cuts
62.
Which of these is a CSS Framework?
a)
Bootstrap & W3.CSS
b)
W3.CSS & CSS Floats
c)
CSS Floats & Tables
d)
Tables & CSS Flexbox
63.
When your design is made to look good on all types of devices it is called what?
a)
Good design
b)
Responsive design
c)
Flexible design
d)
Bootstrap
64.
Characters that are reserved by HTML and need a code to display are called ...
a)
JavaScript
b)
Encoding
c)
Entities
d)
Symbols
65.
What is the correct code to enter additional spaces into your page?
a)
$space%
b)
$p@c&
c)
d)
$nbsp;
66.
What is the character encoding set used for HTML5?
a)
ASCII
b)
ANSI
c)
ISO-8859
d)
UTF-8
67.
Which of these is an IP address?
a)
http://www.hchs.com
b)
1234.3408.8970
c)
www.23408707.com
d)
192.68.20.50
68.
What does it mean when you receive something like this?
http://www.abc%20efg+hijk%a4f.com
http://www.abc%20efg+hijk%a4f.com
a)
The URL contains non-ASCII characters
b)
The URL contains only ASCII characters
c)
The URL isn't a real address
d)
The URL doesn't contain ANSI characters
69.
What is the code that is a mix between HTML & XML?
a)
HXMLT
b)
XTML
c)
HTMLX
d)
XHTML
70.
What is the main difference in XHTML & HTML?
a)
HTML is better
b)
XHTML is out of date
c)
HTML is stricter
d)
XHTML is stricter
71.
What does the W3C validator do?
a)
It uploads your page to the web
b)
It validates your CSS
c)
It validates your page to let you know if there are errors on your page
d)
It determines if the page can be used on the web
72.
What is the purpose of the keygen element?
a)
To generate keys
b)
To provide a secure way to authenticate users
c)
To generate passwords
d)
The create lists
73.
Depending on the browser, what usually will pop up when you have a color input type?
a)
A textbox
b)
A calendar
c)
A color picker
d)
Nothing
74.
When an input field must be filled out before submitting the form, what is the attribute used?
a)
placeholder
b)
pattern
c)
required
d)
validate
75.
Which line of code demonstrates the correct way to link an external JavaScript file to an X/HTML document?
a)
<script type="text/javascript/external" href="myJavaScriptCode.js">
b)
<#include type="text/javascript" src="myJavaScriptCode.js">
c)
<script type="text/javascript" src="myJavaScriptCode.js">
d)
<link type="text/javascript" href="myJavaScriptCode.js">
76.
What is the most important JavaScript statement?
a)
button onclick="myFunction()"
b)
while (condition) {
code block to be executed
}
code block to be executed
}
c)
document.getElementById(id)
d)
function myFunction()
77.
What is the viewport?
a)
The view of the page
b)
The user's visible area of the page
c)
The port you plug into to viewi the page
d)
The portability of the page
78.
In HTML5 you CAN omit <html><head><title><body>
a)
True
b)
False
79.
In XHTML you CAN omit <html><head><title><body>
a)
True
b)
False
80.
What tag is used to attach external documents to your sheet, like CSS and JavaScript?
a)
<a href>
b)
<link>
c)
<script>
d)
<a>
100 %
