WorksheetsWeb Design Final Exam Review-HTML
Total questions: 33
Worksheet time: 17mins
What does HTML stand for?
Home Tool Markup Language
Hyper Text Markup Language
Hyperlinks and Text Markup Language
Who is making the Web standards?
Mozilla
The World Wide Web Consortium
Microsoft
Choose the correct HTML element for the largest heading:
<h1>
<head>
<h6>
<heading>
What is the correct HTML element for inserting a line break?
<break>
<br>
<lb>
What is the correct HTML for adding a background color?
<body style="background-color:yellow;">
<background>yellow</background>
<body bg="yellow">
What is the correct HTML for creating a hyperlink?
<a name="http://www.w3schools.com">W3</a>
<a ="http://www.w3schools.com">;
<a href="http://www.w3schools.com">W3Schools</a>
Which character is used to indicate an end tag?
*
^
/
#
What is the correct HTML for inserting an image?
<img alt="MyImage">image.gif</img>
<img src="image.gif" alt="MyImage">
<img href="image.gif" alt="MyImage">
<image src="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
False
HTML comments start with <!-- and end with -->
True
False
Which HTML element defines the title of a document?
<title>
<head>
<header>
<meta>
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
longdesc
src
alt
caption
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>
Which HTML element is used to specify a header for a document or section?
<top>
<section>
<header>
<head>
Which HTML element defines navigation links?
<navigate>
<nav>
<navigation>
What does CSS stand for?
Colorful Style Sheets
Cascading Style Sheets
Creative Style Sheets
Computer Style Sheets
Which HTML tag is used to tell the browser you will add CSS ?
<style>
<css>
<script>
Which is the correct CSS syntax?
body {color: black;}
{body:color=black;}
{body;color:black;}
body:color=black;
Which CSS property is used to change the background color?
color
bgcolor
background-color
How do you add a background color for all <h1> elements?
h1.all {background-color:#FFFFFF;}
all.h1 {background-color:#FFFFFF;}
h1 {background-color:#FFFFFF;}
Which CSS property is used to change the text color of an element?
text-color
font-color
color
Which CSS property controls the text size?
text-size
font-size
text-style
font-style
How do you select an element with id "demo"?
demo
#demo
*demo
.demo
How do you select elements with class name "test"?
test
.
.test
*test
#test
Inside which HTML element do we put the JavaScript?
<script>
<javascript>
<js>
<scripting>
What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>
document.getElement("p").innerHTML = "Hello World!";
-
document.getElementById("demo").innerHTML = "Hello World!";
How do you write "Hello World" in an alert box?
msg("Hello World");
msgBox("Hello World");
alertBox("Hello World");
alert("Hello World");
How do you create a function in JavaScript?
function = myFunction()
function myFunction()
function:myFunction()
How do you call a function named "myFunction"?
myFunction()
call myFunction()
call function myFunction()
Which event occurs when the user clicks on an HTML element?
onchange
onmouseover
onclick
onmouseclick
How do you declare a JavaScript variable?
variable carName;
var carName;
v carName;
Which operator is used to assign a value to a variable?
x
-
=
*
