Deck 2: Coding Standards, Block Elements, Text Elements, and Character References

Full screen (f)
exit full mode
Question
The purpose of the s element is to display text:

A) that is no longer accurate or no longer relevant.
B) that would normally be considered "fine print."
C) by reading it aloud.
D) that is marked or highlighted so it can be referred to from another place.
Use Space or
up arrow
down arrow
to flip the card.
Question
Proper style says to use uppercase for all attributes.
Question
The purpose of the wbr element is to prevent a line break.
Question
Given the following HTML code that forms the top of a web page, to satisfy proper style guidelines, you should add ______ to the end of the title element.
<html>
<head>
<title>Sample Web Page
</head>
Question
The ______ element is for an abbreviation or acronym.
Question
Given the following HTML code that forms the top of a web page, what two meta elements should you insert above the title element?
<html>
<head>
<title>Sample Web Page
</head>
Question
Provide at least one reason why it is good practice to use appropriate HTML elements to describe web page content accurately and fully.
Question
Modify the following code so it exhibits block formatting:
<blockquote>Capitalism is a tool, and it should be used when it
works to benefit all. But it is not a moral compass, and it
should not be treated as such.</blockquote>
Question
The following dfn example passes the HTML validation service, but it does not follow the HTML5 standard in terms of how the dfn element is supposed to be applied. Provide a corrected version of the example.
Quid pro quo is <dfn>an agreed upon exchange of one valuable thing for another</dfn>.
Question
Why is it appropriate to use monospace font for code element text?
Question
Given the following HTML code that forms the top of a web page, and asssuming that the web page contains English content, how should you modify the <code><html></code> tag?

<html >
<head>
<title>Sample Web Page
<head>

A) <code><HTML language="english"></code>
B) <code><html language="english"></code>
C) <code><html lang="en"></code>
D) <code><!html lang="en"></code>
Question
Which of the following is a valid HTML comment?

A) <code><html comment="this is a comment"></code>
B) <code><-- this is a comment --></code>
C) <code><!-- this is a comment --></code>
D) <code><comment>this is a comment</comment></code>
Question
The <code>blockquote</code> element's <code>cite</code> attribute does which of the following?

A) Displays the quote's author
B) Displays the quote's author, source document, and page number
C) Displays where the quote can be found on the Internet
D) Generates a link that the user can click to go to the quote's source document
Question
The purpose of the <code>mark</code> element is to display text:

A) that is no longer accurate or no longer relevant.
B) that would normally be considered "fine print."
C) by reading it aloud.
D) that is marked or highlighted so it can be referred to from another place.
Question
The purpose of the <code>small</code> element is to display text:

A) that is no longer accurate or no longer relevant.
B) that would normally be considered "fine print."
C) by reading it aloud.
D) that is marked or highlighted so it can be referred to from another place.
Question
Coding-style conventions suggest that you should omit the <code></p></code> end tag for every <code><p></code> start tag.
Question
Proper style says to use lowercase for all tag names.
Question
A block element expands to fill the width of its container.
Question
Legacy code is code created in the past that uses commands supported by an older standard and not the current standard.
Question
For a quotation that is too long to embed within surrounding text, you should use a(n) __________ element.
Question
What is the effect of including    within a sentence?

A) It displays a sequence of blank spaces, effectively forming a horizontal line.
B) It displays two blank spaces and allows the spaces to be split between two lines.
C) It displays two blank spaces and prevents the spaces from being split between two lines.
Question
What is the character reference for the copyright symbol?

A) <copy>
B) <copy></copy>
C) <!--copy-->
D) ©
Question
The ≤ character reference displays which of the following?

A) >
B) <
C) :
D) <font_face=symbol></font>
Question
The samp element indicates that its enclosed text is:

A) input for a program.
B) output for a program.
C) a program-generated error message.
D) programming code.
Question
You can use the time element's datetime attribute to specify the time by using which format for its value?

A) hour am/pm
B) hh:mm
C) hh.h:mm.m
Question
The code element indicates that its enclosed text is:

A) input for a program.
B) output for a program.
C) a program-generated error message.
D) programming code.
Question
The var element is for text that represents a programming variable or a mathematical variable.
Question
The cite element is used to display the URL for a cited work such as a book, paper, essay, poem, or song.
Question
To display subscripted text, use the ______ element.
Question
To display superscripted text, use the ______ element.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/30
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Coding Standards, Block Elements, Text Elements, and Character References
1
The purpose of the s element is to display text:

A) that is no longer accurate or no longer relevant.
B) that would normally be considered "fine print."
C) by reading it aloud.
D) that is marked or highlighted so it can be referred to from another place.
A
2
Proper style says to use uppercase for all attributes.
False
3
The purpose of the wbr element is to prevent a line break.
False
4
Given the following HTML code that forms the top of a web page, to satisfy proper style guidelines, you should add ______ to the end of the title element.
<html>
<head>
<title>Sample Web Page
</head>
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
5
The ______ element is for an abbreviation or acronym.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
6
Given the following HTML code that forms the top of a web page, what two meta elements should you insert above the title element?
<html>
<head>
<title>Sample Web Page
</head>
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
7
Provide at least one reason why it is good practice to use appropriate HTML elements to describe web page content accurately and fully.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
8
Modify the following code so it exhibits block formatting:
<blockquote>Capitalism is a tool, and it should be used when it
works to benefit all. But it is not a moral compass, and it
should not be treated as such.</blockquote>
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
9
The following dfn example passes the HTML validation service, but it does not follow the HTML5 standard in terms of how the dfn element is supposed to be applied. Provide a corrected version of the example.
Quid pro quo is <dfn>an agreed upon exchange of one valuable thing for another</dfn>.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
10
Why is it appropriate to use monospace font for code element text?
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
11
Given the following HTML code that forms the top of a web page, and asssuming that the web page contains English content, how should you modify the <code><html></code> tag?

<html >
<head>
<title>Sample Web Page
<head>

A) <code><HTML language="english"></code>
B) <code><html language="english"></code>
C) <code><html lang="en"></code>
D) <code><!html lang="en"></code>
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is a valid HTML comment?

A) <code><html comment="this is a comment"></code>
B) <code><-- this is a comment --></code>
C) <code><!-- this is a comment --></code>
D) <code><comment>this is a comment</comment></code>
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
13
The <code>blockquote</code> element's <code>cite</code> attribute does which of the following?

A) Displays the quote's author
B) Displays the quote's author, source document, and page number
C) Displays where the quote can be found on the Internet
D) Generates a link that the user can click to go to the quote's source document
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
14
The purpose of the <code>mark</code> element is to display text:

A) that is no longer accurate or no longer relevant.
B) that would normally be considered "fine print."
C) by reading it aloud.
D) that is marked or highlighted so it can be referred to from another place.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
15
The purpose of the <code>small</code> element is to display text:

A) that is no longer accurate or no longer relevant.
B) that would normally be considered "fine print."
C) by reading it aloud.
D) that is marked or highlighted so it can be referred to from another place.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
16
Coding-style conventions suggest that you should omit the <code></p></code> end tag for every <code><p></code> start tag.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
17
Proper style says to use lowercase for all tag names.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
18
A block element expands to fill the width of its container.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
19
Legacy code is code created in the past that uses commands supported by an older standard and not the current standard.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
20
For a quotation that is too long to embed within surrounding text, you should use a(n) __________ element.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
21
What is the effect of including    within a sentence?

A) It displays a sequence of blank spaces, effectively forming a horizontal line.
B) It displays two blank spaces and allows the spaces to be split between two lines.
C) It displays two blank spaces and prevents the spaces from being split between two lines.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
22
What is the character reference for the copyright symbol?

A) <copy>
B) <copy></copy>
C) <!--copy-->
D) ©
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
23
The ≤ character reference displays which of the following?

A) >
B) <
C) :
D) <font_face=symbol></font>
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
24
The samp element indicates that its enclosed text is:

A) input for a program.
B) output for a program.
C) a program-generated error message.
D) programming code.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
25
You can use the time element's datetime attribute to specify the time by using which format for its value?

A) hour am/pm
B) hh:mm
C) hh.h:mm.m
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
26
The code element indicates that its enclosed text is:

A) input for a program.
B) output for a program.
C) a program-generated error message.
D) programming code.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
27
The var element is for text that represents a programming variable or a mathematical variable.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
28
The cite element is used to display the URL for a cited work such as a book, paper, essay, poem, or song.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
29
To display subscripted text, use the ______ element.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
30
To display superscripted text, use the ______ element.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 30 flashcards in this deck.