Exam 10: Using Javascript With Styles

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

If you invoke the setTimeout()method to go to sleep for 1500 milliseconds,this is equal to 1.5 seconds.____________________

Free
(True/False)
4.8/5
(31)
Correct Answer:
Verified

True

MATCHING Identify the letter of the choice that best matches the phrase or definition. -Blue heading,largest text

Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
Verified

E

The name of the control below is ____. < font size="2">Text Color:< /font>< br> < select name="TextColor">

Free
(Multiple Choice)
5.0/5
(44)
Correct Answer:
Verified

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.

(Multiple Choice)
4.9/5
(44)

The name of the control below is ____. < font size="2">Cell Color:< /font>< br> < select name="CellColor">

(Multiple Choice)
4.8/5
(42)

The code below adds an OnClick ____. < input type="button" value="Apply Style" OnClick="top.apply_style()">

(Multiple Choice)
4.8/5
(38)

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.

(True/False)
4.7/5
(46)

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.____________________

(True/False)
4.9/5
(26)

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.

(Short Answer)
4.8/5
(36)

MATCHING Identify the letter of the choice that best matches the phrase or definition. -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. A)< hr /> B)< hr style="width:25%;height:20px" /> C)< hr style="width:50%" /> D)h6 {color:blue} E)h1 {color:blue}

(Essay)
4.7/5
(36)

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>

(Multiple Choice)
4.8/5
(34)

You can define no more than five style classes within a CSS.

(True/False)
4.9/5
(40)

An element's ____ functions much the same as a tag's name attribute.

(Multiple Choice)
4.7/5
(37)

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.

(True/False)
4.9/5
(43)

The getElementById()method accepts a single parameter that is,predictably,the id of the HTML element you want to access.

(True/False)
4.8/5
(30)

The code below shows an id ____ that has been added to an < h2> element. < h2 id="pictures">< a name="pictures">Perfect Pictures< /a>< /h2>

(Multiple Choice)
4.9/5
(38)

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>

(Multiple Choice)
4.8/5
(25)

If you want to modify the style of a particular HTML element,it is necessary to assign a(n)____ to the element.

(Multiple Choice)
4.8/5
(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> -The term ____________________ simply means to display with the proper attributes applied.

(Short Answer)
4.8/5
(32)

As a general rule,you need two lines of JavaScript code for each style attribute you want to change.

(True/False)
4.8/5
(41)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)