stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
HTML Review Flashcards | StudBud
Explore
/
HTML Review
HTML Review
66 terms
·
StudBud Administration
·
232 plays
#html
Flashcards
66 cards
F
Practice quiz
P
Host live
L
Questions
66
Answers
1
What is the tag that creates a title in a browser bar?
<head></head>
<title></title>
<html></html>
<img></img>
2
What is wrong with the following absolute link? <a href="www.youtube.com">Visit YouTube</a>
It does not use http://protocol
It should not use quotes
It's not a real website
href should be herf
3
What does HTML stand for?
Highertext Mathematical Logistics
Hypertext Markup Language
Hypertext Million Languages
Hypertext Markdown Language
4
Hyperlinks are created using which HTML element?
img
a
html
href
5
Which line of code will make the word snow a level 2 heading that is centered?
<h2 style="text-align: center;">snow</h2>
<h2 style="align: center;">snow</h2>
<p style="text-align: center;">snow</h2>
<h2 style="text-alignn: center;">snow</h2>
6
What is one advantage of using relative paths & subfolders?
It will improve our chances of passing HTML validation
It makes our site more user-friendly for our web visitors
It can help us keep our site files organized & uncluttered
It makes our code easier to read
7
The <p> and <h1> are examples of what kind of element?
blue element
block element
html element
inline element
8
How does the HTML validator know which rules to apply to our web document?
All documents have the same rules applied to them.
It is based on which web browser we are using
It will prompt us each time to select a set of rules.
It is based on what we specify in the DOCTYPE statement.
9
If you forgot to turn off a list before continuing a webpage, the rest of the page will be _____.
bold
fine
indented
centered
10
Which image format can support animation?
.mov
.gif
.png
.jpg
11
Headings can be different sizes but they are always _____.
bold
italicized
styled
large
12
RGB used in Hexadecimal color codes stands for:
Red, Gray, Black
Royal Blue, Gold, Brown
Red, Green, Blue
Red, Gold, Brown
13
Name 3 types of lists.
description, ordered, and unordered
inline, ordered, and unordered
description, numbered, and unordered
description, ordered, and images
14
Which of the following statements is incorrect?
<h4> should not be used unless all higher ones are used 1st
<h1> should only be used once per page
<h1> displays larger text than a lower header element
<h3> element means something is more important than <h4>
15
To center images, you must style it in this tag.
p
image
h2
float
16
What is generally considered the best format to use for color photographs on the web?
.pic
.bmp
.gif
.jpg
17
What does the element <p> stand for?
paragraph
page
presentation
person
18
Which of the following is not an available attribute for the <img> element?
alt
height
filename
width
19
Looking at the following elements, what should be the first element in any web page?
<page>
<head>
<html>
<body>
20
If you are wanting to link to an image in another folder, what does the code look like?
<img src="photo.jpg" />
<img src="..//images/photo.jpg" />
<img src="images/photo.jpg" />
<img src="/photo.jpg" />
21
What is the tag that creates a horizontal rule?
<hr />
<p>
<line>
<hrr>
22
Ordered lists use _____ by default.
letters
bullets
numbers with a decimal
roman numerals
23
To link to another webpage, use this attribute.
a
img
html
href
24
Entity references begin with a _____ and end with a _____.
$ ;
# "
& :
& ;
25
Which line of code will make the word football bold and the color red?
<strong style="color: red;">football</strong>
<p style="color: red;">football</strong>
<strong style="font-color: red;">football</strong>
<bold style="color: red;">football</strong>
26
What code creates a webpage with a background image called skyblue.jpg?
<body style="background-img: url(skyblue.jpg);">
<body style="background-image: (skyblue.jpg);">
<body style="background-image: url(skyblue.jpg);">
<body style="background-image: skyblue.jpg;">
27
Which of the following is a common sans-serif font?
Verdana
Times New Roman
Book Antique
Palatino Linotype
28
Entity references do not go inside _____.
tags
image tags
all of the above
quotes
29
What is the start tag for an individual item in a list?
<ol>
<item>
<li>
<list>
30
Where does the style sheet <link> statement belong?
Between <body> and </body>
Immediately after the DOCTYPE statement
Between <head> and </head>
Between <title> and </title>
31
If you have a folder called "images" directly below the folder where your HTML doc is, how do you access that img file?
<img src="/photo.jpg" />
<img src="images/photo.jpg" />
<img src="../images/photo.jpg" />
<img src="photo.jpg" />
32
What are the 4 required tag pairs?
only html is required
html, head, title, paragraph
html, heading, title, body
html, head, title, body
33
Special codes that are used to show symbols or escape/reserved characters are called _____.
images
html
entities
words
34
Why are gradient files often made to be just 1px wide or 1px high?
To reduce the file size of the img & there for speed up page loading time.
Because they will only pass HTML validation if they are under 10px side.
Because they are not visible on the web page.
In order to make it difficult for web visitors to copy them.
35
RGB stands for:
Red, Gold, Brown
Red, Green, Blue
Red, Gray, Black
Royal Blue, Gold, Brown
36
A bookmark link starts with which symbol in the href attribute?
$
#
@
:
37
Why is it important to validate our HTML pages?
It is required before search engines will list our website.
It confirms that all our web pages are linked together properly.
It verifies that our page content is factually correct
It improves the likeliood that our webpages will display consistently
38
Which file extension is used with standard web pages?
.xhtml
.html
.doc
.txt
39
What is the primary reason we are limited in the fonts we can use on our web pages?
Choosing inappropriate fonts can slow a website's performance.
We are restricted to those fonts installed on our viewers' computers
Most fonts do not look good on the Internet
Fonts are expensive and we have to stick with those we can afford.
40
Which of the following is not true about declaring fonts for our web pages?
Font has an effect on the look and feel of the website
Fonts should be listed in reverse order of preference
Fallback fonts are recommended if primary are not available
Font names containing spaces must have quotes
41
What attribute and value would you use to style an image so the image is aligned to the right side of a paragraph?
float: center
float: right
float: left
align: right
42
Which heading tag is the largest?
h1
h10
h3
h6
43
Which of the following is not true about declaring fonts for our web pages?
Font names containing spaces must be surrounded by quotes.
Fonts should be listed in reverse order of preference
Our choice of font has an effect on the "look and feel" of our website
Fallback fonts are recommended in case the primary font is not available
44
What is one advantage of using relative paths and subfolders?
It makes our site more user-friendly for our web visitors.
It makes our code easier to read.
It will improve our chances of passing HTML validation.
It can help us keep our site files well organized and uncluttered.
45
What is the syntax for an HTML comment?
<comment>This is a comment</comment>
<!--This is a comment-- />
<com: This is a comment>
<comment: "This is a comment" />
46
Unordered lists use _____ by default.
square bullets
circle bullets
disc bullets
letters
47
Use this attribute to target elements within a page that can be linked to.
id
a
href
html
48
Which of the following is not an HTML element related to displaying lists?
<ul>
<li>
<list>
<ol>
49
How can setting table column widths by percent hold an advantage over setting them by pixels?
Setting column widths by % prevents tables to go off page
If overall table width is modified, so will column widths
Columns set in pixels will not display on a computer screen
Text size can only be set by width, not pixels
50
When adding an image to your webpage, always use this attribute to indicate the name of the image being used.
alt
href
style
src
51
What attribute and value would you use to style an image or text to be centered?
float: center
align: center
text-align: center
style="center"
52
Adding this attribute to an image or a link creates pop-up text when the user points to the image or link on a webpage.
style
title
alt
href
53
How would you create a link to another web page named "page2.html"?
<a>Link to Page 2</a>
<a href="page2.html">Link to Page 2
<a href=page2.html>Link to Page 2</a>
<a href="page2.html">Link to Page 2</a>
54
Examples of ____ are img, hr, and br.
closing tags
empty tags
image
link tags
55
Linking to targets requires putting this symbol in front of the target name in the hyperlink reference.
#
*
"
;
56
Which of the following will create a bulleted list?
<blist>
<ul>
<ol>
<bullet>
57
What happens if we specify an image's height & width outside of its true original proportion?
The web browser will not display the image.
The web browser will display a distorted version of the img
The web browser will ignore the height & width.
The web browser displays alt text
58
What would a blind person hear in a screen reader in the place of a web image?
Whatever text is specified in the alt attribute
The caption element in the <p> element
Nothing
The name of the actual image file
59
What is wrong with the following? <img source="sunset.jpg" alt="Beautiful Sunset" />
It should not use quotes
img should read image
source should be src
There should be no slash at the end
60
Which is an effective way to guarantee that an unusual font will display on our page?
Place the font name in quotes in our declaration.
Purchase the font and install it on our website.
Name at least 2 fall back fonts in our declaration.
Place the text into an image and display the image on the page.
61
Using hex values, write code that creates a page background in light blue #00ccff and text color in dark blue #0000ff
<body style="background-color: #000000; color: #0000ff;">
<html style="background-color: #00ccff; color: #0000ff;">
<body style="background-color: #00ccff; color: #0000ff;">
<body style="background-color: #00ccff; text-color: #0000ff;">
62
What does target="_blank" do when specified in an <a> element?
Tells the browser to open a link in a new window.
Tells the browser not to underline a link.
Tells the browser to display a blank screen.
Tells the browser to open a link in the same window.
63
Empty tags must end with this symbol.
/
\
< >
*
64
Which of the following is a sans-serif font?
Times New Roman
Palatino Linotype
Verdana
Book Antiqua
65
Which is not part of an HTML element?
end tag
anchor
attributes
start tag
66
Multiple styles as an attribute are separated inside the quotation marks by what?
a space
a dash
a period
a semi-colon