Deck 10: Using Javascript With Styles

ملء الشاشة (f)
exit full mode
سؤال
If a JavaScript event occurs in one frame and affects an object or element in a different frame,the code can often be kept to its simplest form if it is defined in the ____ frameset file.

A) bottom-level
B) top-level
C) key
D) first
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Applying a style to an HTML tag is one of the least common ways in which styles are applied.
سؤال
Whenever you add JavaScript functions to a frame-based Web page,you must decide in which file the JavaScript code should reside.
سؤال
You can define different style attributes in a style class within a Cascading Class Sheet.____________________
سؤال
If you invoke the setTimeout()method to go to sleep for 1500 milliseconds,this is equal to 1.5 seconds.____________________
سؤال
When assigning an id to an HTML element,there is a corresponding JavaScript method called ____ that must be invoked for your JavaScript code to access it by id.

A) getElementByClass()
B) getElementByCode()
C) getElementByName()
D) getElementById()
سؤال
The getElementById()method accepts a single parameter that is,predictably,the id of the HTML element you want to access.
سؤال
If you create a simple HTML document to display a phrase,before the browser can render this phrase,it must first determine the current font family,font size,font color,and other attributes.____________________
سؤال
One good example of a popular document viewer is Apple Reader,which has been available as a standalone and browser-based PDF document viewer for many years.
سؤال
Within a CSS,the style class is applied,by means of the appearance attribute,to an HTML element,and all of the attributes in the class take effect simultaneously.____________________
سؤال
If you want to modify the style of a particular HTML element,it is necessary to assign a(n)____ to the element.

A) name
B) id
C) frameset
D) placeholder
سؤال
Most document viewers display a visual representation of a PDF document on the left side of your screen.____________________
سؤال
An element's ____ functions much the same as a tag's name attribute.

A) sequence
B) code
C) keyword
D) id
سؤال
Before you can write JavaScript code that affects the style of a Web page,you must first identify the HTML element that must be modified.
سؤال
As a general rule,you need two lines of JavaScript code for each style attribute you want to change.
سؤال
You can define no more than five style classes within a CSS.
سؤال
If you have a JavaScript event that occurs in one frame and the effect of the event is only seen within the same frame,then your JavaScript code should reside ____.

A) in the same frame file
B) in a separate frame file
C) in a separate file that has nothing to do with the frame
D) any of the above
سؤال
Only one software publishing company has developed and distributed a document viewer over the past few decades.
سؤال
Whenever the browser displays text on the screen,there are always many style attributes that must be taken into account because they affect the appearance of the text.
سؤال
The JavaScript getElementsByTagName()method can be used to reference an array of HTML elements to which a cascading style has been applied.
سؤال
The correct code to establish a drop-down selection for cell color is ____. < font size="2">Cell Color:< /font>< br>
< select name="CellColor">
____
< option value="black">Black< /option>
< option value="red">Red< /option>
< option value="green">Green< /option>
< option value="blue">Blue< /option>
< option value="white">White< /option>
< /select>

A) < select value="">- select -< /select>
B) < option name="">- select -< /option>
C) < select value="">- option -< /select>
D) < option value="">- select -< /option>
سؤال
The correct code for a horizontal rule with width set at 50% is ____.

A) < hrule style="width:50%" />
B) < hr style="width:50%" />
C) < hrule style="w:50%" />
D) < hr style="w:50%" />
سؤال
The correct code to establish a drop-down selection for text color is ____. < font size="2">Text Color:< /font>< br>
< select name="TextColor">
____
< option value="black">Black< /option>
< option value="red">Red< /option>
< option value="green">Green< /option>
< option value="blue">Blue< /option>
< option value="white">White< /option>
< /select>

A) < select value="">- select -< /select>
B) < option name="">- select -< /option>
C) < select value="">- option -< /select>
D) < option value="">- select -< /option>
سؤال
The correct code to add hyperlink tags to an unordered list of headings is < li>< ____="javascript:top.locate('pictures')">Perfect Pictures< /a>< /li>

A) a link
B) a href
C) a jump
D) a name
سؤال
Case 10-1
Laura is working with JavaScript and HTML to add some functionality to her Web site. She needs to add id attributes to her < div> and < td> tags.
The correct snippet of code Laura should use to add the id "MessageText" to a < div> tag is ____.

A) < div id="MessageText" style="color:black">
B) < id> < div="MessageText" style="color:black">
C) < id div="MessageText" style="color:black">
D) < div>< id="MessageText" style="color:black">
سؤال
Referring to the code below,the file that will load in the frame named LeftFrame is ____. < frameset cols="20%,*">
< frame name="LeftFrame" src="left1.html">
< frame name="RightFrame" src="right1.html">
< /frameset>

A) right1.html
B)left1.html
C)both a.and b.
D)neither a.nor b.
سؤال
The code below ____: < frameset cols="20%,*">
< frame name="LeftFrame" src="left1.html">
< frame name="RightFrame" src="right1.html">
< /frameset>

A) defines a simple frameset
B)contains two vertical frames
C)both a.and b.
D)neither a.nor b.
سؤال
The code below shows an id ____ that has been added to an < h2> element. < h2 id="pictures">< a name="pictures">Perfect Pictures< /a>< /h2>

A) event
B) attribute
C) behavior
D) file
سؤال
The name of the control below is ____. < font size="2">Text Color:< /font>< br>
< select name="TextColor">

A) Text Color:
B) TextColor
C) 2
D) select name
سؤال
Case 10-1
Laura is working with JavaScript and HTML to add some functionality to her Web site. She needs to add id attributes to her < div> and < td> tags.
Laura successfully adds an id attribute to her < td> tag,which controls a(n)____.

A) table row
B) table column
C) table cell
D) entire table
سؤال
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
Peter also concludes that the heading with the largest type will be ____.

A) purple
B) blue
C) black
D) red
سؤال
The name of the control below is ____. < font size="2">Cell Color:< /font>< br>
< select name="CellColor">

A) Cell Color:
B) CellColor
C) 2
D) select name
سؤال
The code below establishes a button labeled ____. < p>
< input type="button" value="Apply Style">
< /p>

A) button
B) button value
C) Apply Style
D) none of the above
سؤال
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
The HTML ____________________ attribute can be applied to virtually any HTML tag to describe how you want the Web browser to display that portion of the Web page.
سؤال
FIGURE 10-1
<strong>FIGURE 10-1     In the code shown in Figure 10-1 above,the phrase Hello World Wide Web! appears ____.</strong> A) as the title above the table B) as the footnote below the table C) in the upper table cell D) in the lower table cell <div style=padding-top: 35px>
<strong>FIGURE 10-1     In the code shown in Figure 10-1 above,the phrase Hello World Wide Web! appears ____.</strong> A) as the title above the table B) as the footnote below the table C) in the upper table cell D) in the lower table cell <div style=padding-top: 35px>
In the code shown in Figure 10-1 above,the phrase "Hello World Wide Web!" appears ____.

A) as the title above the table
B) as the footnote below the table
C) in the upper table cell
D) in the lower table cell
سؤال
FIGURE 10-1
<strong>FIGURE 10-1     Referring to Figure 10-1 above,the style attribute of the second table cell initially sets the background color to ____.</strong> A) white B)black C)either a.or b. D)neither a.nor b. <div style=padding-top: 35px>
<strong>FIGURE 10-1     Referring to Figure 10-1 above,the style attribute of the second table cell initially sets the background color to ____.</strong> A) white B)black C)either a.or b. D)neither a.nor b. <div style=padding-top: 35px>
Referring to Figure 10-1 above,the style attribute of the second table cell initially sets the background color to ____.

A) white
B)black
C)either a.or b.
D)neither a.nor b.
سؤال
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
After reviewing the code,Peter determines that the Web page contains a ____ style definition.

A) classy
B) cascading
C) computer
D) client
سؤال
The correct code to implement a background color on a page,with the color given in a hexadecimal number,would be ____.

A) < body style="background-color:#E6E6FA">
B) < body style="background:#E6E6FA">
C) < body style="background-color:#E6">
D) < body style="background:#E6E6">
سؤال
The code below adds an OnClick ____. < input type="button" value="Apply Style"
OnClick="top.apply_style()">

A) attribute
B) behavior
C) style
D) event
سؤال
FIGURE 10-1
<strong>FIGURE 10-1     Referring to Figure 10-1 above,the text color of the phrase Hello World Wide Web! is ____.</strong> A) white B)black C)either a.or b. D)neither a.nor b. <div style=padding-top: 35px>
<strong>FIGURE 10-1     Referring to Figure 10-1 above,the text color of the phrase Hello World Wide Web! is ____.</strong> A) white B)black C)either a.or b. D)neither a.nor b. <div style=padding-top: 35px>
Referring to Figure 10-1 above,the text color of the phrase "Hello World Wide Web!" is ____.

A) white
B)black
C)either a.or b.
D)neither a.nor b.
سؤال
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
The term ____________________ simply means to display with the proper attributes applied.
سؤال
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
A(n)____________________ in style terminology is just an HTML tag,and once you have identified the one you need to modify,you must make it accessible to JavaScript by assigning it an identifying name by means of the id attribute.
سؤال
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Blue heading,largest text
سؤال
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
A style ____________________ is a simple tool that allows users to specify a style,apply the style,and then view the results.
سؤال
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Blue heading,smallest text
سؤال
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Horizontal Rule,width set at 50%
سؤال
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Horizontal rule,without attributes and values
سؤال
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Horizontal Rule,width set at 25% and height set at 20 pixels
سؤال
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
The ____________________ property simply contains the URL of the current HTML document.
سؤال
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Imagine you are a Web designer for a popular local band.You are assigning style attributes to font-related HTML tags.Name three font attributes you would want to control,what style you would make them,and why.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 10: Using Javascript With Styles
1
If a JavaScript event occurs in one frame and affects an object or element in a different frame,the code can often be kept to its simplest form if it is defined in the ____ frameset file.

A) bottom-level
B) top-level
C) key
D) first
B
2
Applying a style to an HTML tag is one of the least common ways in which styles are applied.
False
3
Whenever you add JavaScript functions to a frame-based Web page,you must decide in which file the JavaScript code should reside.
True
4
You can define different style attributes in a style class within a Cascading Class Sheet.____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
If you invoke the setTimeout()method to go to sleep for 1500 milliseconds,this is equal to 1.5 seconds.____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
When assigning an id to an HTML element,there is a corresponding JavaScript method called ____ that must be invoked for your JavaScript code to access it by id.

A) getElementByClass()
B) getElementByCode()
C) getElementByName()
D) getElementById()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
The getElementById()method accepts a single parameter that is,predictably,the id of the HTML element you want to access.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
If you create a simple HTML document to display a phrase,before the browser can render this phrase,it must first determine the current font family,font size,font color,and other attributes.____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
One good example of a popular document viewer is Apple Reader,which has been available as a standalone and browser-based PDF document viewer for many years.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
Within a CSS,the style class is applied,by means of the appearance attribute,to an HTML element,and all of the attributes in the class take effect simultaneously.____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
If you want to modify the style of a particular HTML element,it is necessary to assign a(n)____ to the element.

A) name
B) id
C) frameset
D) placeholder
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Most document viewers display a visual representation of a PDF document on the left side of your screen.____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
An element's ____ functions much the same as a tag's name attribute.

A) sequence
B) code
C) keyword
D) id
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
Before you can write JavaScript code that affects the style of a Web page,you must first identify the HTML element that must be modified.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
As a general rule,you need two lines of JavaScript code for each style attribute you want to change.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
You can define no more than five style classes within a CSS.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
If you have a JavaScript event that occurs in one frame and the effect of the event is only seen within the same frame,then your JavaScript code should reside ____.

A) in the same frame file
B) in a separate frame file
C) in a separate file that has nothing to do with the frame
D) any of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
Only one software publishing company has developed and distributed a document viewer over the past few decades.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
Whenever the browser displays text on the screen,there are always many style attributes that must be taken into account because they affect the appearance of the text.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The JavaScript getElementsByTagName()method can be used to reference an array of HTML elements to which a cascading style has been applied.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
The correct code to establish a drop-down selection for cell color is ____. < font size="2">Cell Color:< /font>< br>
< select name="CellColor">
____
< option value="black">Black< /option>
< option value="red">Red< /option>
< option value="green">Green< /option>
< option value="blue">Blue< /option>
< option value="white">White< /option>
< /select>

A) < select value="">- select -< /select>
B) < option name="">- select -< /option>
C) < select value="">- option -< /select>
D) < option value="">- select -< /option>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The correct code for a horizontal rule with width set at 50% is ____.

A) < hrule style="width:50%" />
B) < hr style="width:50%" />
C) < hrule style="w:50%" />
D) < hr style="w:50%" />
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The correct code to establish a drop-down selection for text color is ____. < font size="2">Text Color:< /font>< br>
< select name="TextColor">
____
< option value="black">Black< /option>
< option value="red">Red< /option>
< option value="green">Green< /option>
< option value="blue">Blue< /option>
< option value="white">White< /option>
< /select>

A) < select value="">- select -< /select>
B) < option name="">- select -< /option>
C) < select value="">- option -< /select>
D) < option value="">- select -< /option>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
The correct code to add hyperlink tags to an unordered list of headings is < li>< ____="javascript:top.locate('pictures')">Perfect Pictures< /a>< /li>

A) a link
B) a href
C) a jump
D) a name
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
Case 10-1
Laura is working with JavaScript and HTML to add some functionality to her Web site. She needs to add id attributes to her < div> and < td> tags.
The correct snippet of code Laura should use to add the id "MessageText" to a < div> tag is ____.

A) < div id="MessageText" style="color:black">
B) < id> < div="MessageText" style="color:black">
C) < id div="MessageText" style="color:black">
D) < div>< id="MessageText" style="color:black">
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
Referring to the code below,the file that will load in the frame named LeftFrame is ____. < frameset cols="20%,*">
< frame name="LeftFrame" src="left1.html">
< frame name="RightFrame" src="right1.html">
< /frameset>

A) right1.html
B)left1.html
C)both a.and b.
D)neither a.nor b.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
The code below ____: < frameset cols="20%,*">
< frame name="LeftFrame" src="left1.html">
< frame name="RightFrame" src="right1.html">
< /frameset>

A) defines a simple frameset
B)contains two vertical frames
C)both a.and b.
D)neither a.nor b.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
The code below shows an id ____ that has been added to an < h2> element. < h2 id="pictures">< a name="pictures">Perfect Pictures< /a>< /h2>

A) event
B) attribute
C) behavior
D) file
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
The name of the control below is ____. < font size="2">Text Color:< /font>< br>
< select name="TextColor">

A) Text Color:
B) TextColor
C) 2
D) select name
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Case 10-1
Laura is working with JavaScript and HTML to add some functionality to her Web site. She needs to add id attributes to her < div> and < td> tags.
Laura successfully adds an id attribute to her < td> tag,which controls a(n)____.

A) table row
B) table column
C) table cell
D) entire table
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
Peter also concludes that the heading with the largest type will be ____.

A) purple
B) blue
C) black
D) red
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
The name of the control below is ____. < font size="2">Cell Color:< /font>< br>
< select name="CellColor">

A) Cell Color:
B) CellColor
C) 2
D) select name
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
The code below establishes a button labeled ____. < p>
< input type="button" value="Apply Style">
< /p>

A) button
B) button value
C) Apply Style
D) none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
The HTML ____________________ attribute can be applied to virtually any HTML tag to describe how you want the Web browser to display that portion of the Web page.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
FIGURE 10-1
<strong>FIGURE 10-1     In the code shown in Figure 10-1 above,the phrase Hello World Wide Web! appears ____.</strong> A) as the title above the table B) as the footnote below the table C) in the upper table cell D) in the lower table cell
<strong>FIGURE 10-1     In the code shown in Figure 10-1 above,the phrase Hello World Wide Web! appears ____.</strong> A) as the title above the table B) as the footnote below the table C) in the upper table cell D) in the lower table cell
In the code shown in Figure 10-1 above,the phrase "Hello World Wide Web!" appears ____.

A) as the title above the table
B) as the footnote below the table
C) in the upper table cell
D) in the lower table cell
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
FIGURE 10-1
<strong>FIGURE 10-1     Referring to Figure 10-1 above,the style attribute of the second table cell initially sets the background color to ____.</strong> A) white B)black C)either a.or b. D)neither a.nor b.
<strong>FIGURE 10-1     Referring to Figure 10-1 above,the style attribute of the second table cell initially sets the background color to ____.</strong> A) white B)black C)either a.or b. D)neither a.nor b.
Referring to Figure 10-1 above,the style attribute of the second table cell initially sets the background color to ____.

A) white
B)black
C)either a.or b.
D)neither a.nor b.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
After reviewing the code,Peter determines that the Web page contains a ____ style definition.

A) classy
B) cascading
C) computer
D) client
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
The correct code to implement a background color on a page,with the color given in a hexadecimal number,would be ____.

A) < body style="background-color:#E6E6FA">
B) < body style="background:#E6E6FA">
C) < body style="background-color:#E6">
D) < body style="background:#E6E6">
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
The code below adds an OnClick ____. < input type="button" value="Apply Style"
OnClick="top.apply_style()">

A) attribute
B) behavior
C) style
D) event
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
FIGURE 10-1
<strong>FIGURE 10-1     Referring to Figure 10-1 above,the text color of the phrase Hello World Wide Web! is ____.</strong> A) white B)black C)either a.or b. D)neither a.nor b.
<strong>FIGURE 10-1     Referring to Figure 10-1 above,the text color of the phrase Hello World Wide Web! is ____.</strong> A) white B)black C)either a.or b. D)neither a.nor b.
Referring to Figure 10-1 above,the text color of the phrase "Hello World Wide Web!" is ____.

A) white
B)black
C)either a.or b.
D)neither a.nor b.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
The term ____________________ simply means to display with the proper attributes applied.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
A(n)____________________ in style terminology is just an HTML tag,and once you have identified the one you need to modify,you must make it accessible to JavaScript by assigning it an identifying name by means of the id attribute.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Blue heading,largest text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
A style ____________________ is a simple tool that allows users to specify a style,apply the style,and then view the results.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Blue heading,smallest text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Horizontal Rule,width set at 50%
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Horizontal rule,without attributes and values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Horizontal Rule,width set at 25% and height set at 20 pixels
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
Case 10-2
Peter is fixing some code written by another employee. First he is working on understanding the current code.
< head>
< title>HTML and JavaScript< /title>
< style type="text/css">
h1 {color:red}
h2 {color:blue}
h3 {color:purple}
p {color:black}
< /style>
< /head>
The ____________________ property simply contains the URL of the current HTML document.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a.< hr />
b.< hr style="width:25%;height:20px" />
c.< hr style="width:50%" />
d.h6 {color:blue}
e.h1 {color:blue}
Imagine you are a Web designer for a popular local band.You are assigning style attributes to font-related HTML tags.Name three font attributes you would want to control,what style you would make them,and why.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.