Deck 2: Coding Standards, Block Elements, Text Elements, and Character References
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/30
العب
ملء الشاشة (f)
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) 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>
<html>
<head>
<title>Sample Web Page
</head>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
5
The ______ element is for an abbreviation or acronym.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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>
<html>
<head>
<title>Sample Web Page
</head>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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>
<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>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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>.
Quid pro quo is <dfn>an agreed upon exchange of one valuable thing for another</dfn>.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
10
Why is it appropriate to use monospace font for code element text?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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>
<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>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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>
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>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
17
Proper style says to use lowercase for all tag names.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
18
A block element expands to fill the width of its container.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
20
For a quotation that is too long to embed within surrounding text, you should use a(n) __________ element.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
22
What is the character reference for the copyright symbol?
A) <copy>
B) <copy></copy>
C) <!--copy-->
D) ©
A) <copy>
B) <copy></copy>
C) <!--copy-->
D) ©
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
23
The ≤ character reference displays which of the following?
A) >
B) <
C) :
D) <font_face=symbol></font>
A) >
B) <
C) :
D) <font_face=symbol></font>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
A) input for a program.
B) output for a program.
C) a program-generated error message.
D) programming code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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
A) hour am/pm
B) hh:mm
C) hh.h:mm.m
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
A) input for a program.
B) output for a program.
C) a program-generated error message.
D) programming code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
27
The var element is for text that represents a programming variable or a mathematical variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
29
To display subscripted text, use the ______ element.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck
30
To display superscripted text, use the ______ element.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 30 في هذه المجموعة.
فتح الحزمة
k this deck