NEW
Font size
S
M
L
XL
WorksheetsMaWD 4.01
Total questions: 20
Worksheet time: 10mins
Name
Class
Date
1.
Which CSS inline style results in the text size of a webpage paragraph displaying at 14px?
a)
<p style="font:14px">
b)
<p style="size:14px">
c)
<p font="size:14pt">
d)
<p style="font-size:14px">
2.
Which tag defines the visible content of a web document?
a)
<body>
b)
<head>
c)
<meta>
d)
<title>
3.
Which is the correct code to insert a horizontal line in a webpage?
a)
<br>
b)
<h1>
c)
<hr>
d)
<li>
4.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<img src="tiger.gif" alt="BengalTiger" />
d)
<image source="tiger.gif" alt=BengalTiger" />
5.
Sarah wants to create a webpage displaying text in the Arial typeface. Which CSS inline style should sheuse?
a)
<body style="font:arial">
b)
<body font="style:arial">
c)
<body style="font-family:arial">
d)
<body family="face:arial">
6.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img src="frog.jpg" width="104" height="142">
c)
<img="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
7.
John wants to insert a CSS comment identifying himself as the author. Which line of code correctly insertsa CSS comment?
a)
<--Written by John Doe-->
b)
/*Written by John Doe*/
c)
/!--WrittenbyJohnDoe"/
d)
<Writtenby="JohnDoe">
8.
Which tag defines the set of navigation links?
a)
header
b)
footer
c)
nav
d)
div
9.
The World Wide Web Consortium (W3C) plays which role in the web development standards?
a)
It creates websites accessible to everyone
b)
It develops the standards for HTML and CSS
c)
It develops web browsers
d)
It is the agency that controls the World Wide Web.
10.
Which of the following is the proper way to code an inline style attribute?
a)
color=blue
b)
color blue
c)
color="blue"
d)
color=(blue)
11.
Which is an example of using an inline CSS style in a webpage?
a)
<p style="color:blue">
b)
p {style=color;blue>}
c)
<p style=color;blue>
d)
p {style="color:blue}
12.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<h1>
b)
<li>
c)
<br>
d)
<ul>
13.
Which item refers to the start tag, the end tag and everything in between?
a)
HTML Tag
b)
HTML Attribute
c)
HTML Element
d)
CSS
14.
Which hyperlink shows an absolute link?
a)
href="www.nytimes.com">NYTimes</a>
b)
<a href="page1.html">Page One<a>
c)
<a href="http://www.target.com">Target</a>
d)
<a href="offers.jpg">Offers<a>
15.
A properly coded HTML tag will always be found between which two symbols?
a)
( )
b)
{ }
c)
[ ]
d)
< >
16.
Which item interprets the source code in a web document?
a)
Web browser
b)
Text editor
c)
HTML editor
d)
Web server
17.
Between which paired tags would the visible content of a webpage be displayed?
a)
<html></html>
b)
<head></head>
c)
<title></title>
d)
<body></body>
18.
What tag defines the beginning of a webpage?
a)
<h1>
b)
<p>
c)
<html>
d)
<body>
19.
Which line of code correctly creates a link to Amazon's website?
a)
<a ref=http://www.amazon.com>Amazon
b)
<href=http://www.amazon.com>Amazon<a>
c)
<a href="http://www.amazon.com">Amazon
d)
<a href="http://www.amazon.com">Amazon</a>
20.
Tiffany's creating a multiple page website and wants consistency in appearance. Which method permits herto update the appearance of all pages by changing one file?
a)
CSS External Style Sheet
b)
Inline Styles
c)
CSS Internal Styles
d)
CSS Selector
Reset
