Exam 10: Using Javascript With Styles

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

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

(Multiple Choice)
4.8/5
(43)

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.

(True/False)
4.9/5
(33)

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.

(Short Answer)
4.9/5
(35)

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

(Multiple Choice)
4.9/5
(39)

The JavaScript getElementsByTagName()method can be used to reference an array of HTML elements to which a cascading style has been applied.

(True/False)
4.9/5
(35)

MATCHING Identify the letter of the choice that best matches the phrase or definition. -Horizontal rule,without attributes and values

(Multiple Choice)
4.7/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> -Peter also concludes that the heading with the largest type will be ____.

(Multiple Choice)
4.8/5
(38)

The correct code to implement a background color on a page,with the color given in a hexadecimal number,would be ____.

(Multiple Choice)
4.9/5
(37)

Most document viewers display a visual representation of a PDF document on the left side of your screen.____________________

(True/False)
4.8/5
(37)

The correct code for a horizontal rule with width set at 50% is ____.

(Multiple Choice)
4.8/5
(40)

Whenever you add JavaScript functions to a frame-based Web page,you must decide in which file the JavaScript code should reside.

(True/False)
4.8/5
(33)

MATCHING Identify the letter of the choice that best matches the phrase or definition. -Horizontal Rule,width set at 50%

(Multiple Choice)
4.8/5
(43)

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.

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.9/5
(39)

You can define different style attributes in a style class within a Cascading Class Sheet.____________________

(True/False)
4.9/5
(31)

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.

(Multiple Choice)
4.8/5
(38)

FIGURE 10-1 FIGURE 10-1        -In the code shown in Figure 10-1 above,the phrase Hello World Wide Web! appears ____. FIGURE 10-1        -In the code shown in Figure 10-1 above,the phrase Hello World Wide Web! appears ____. -In the code shown in Figure 10-1 above,the phrase "Hello World Wide Web!" appears ____.

(Multiple Choice)
4.9/5
(35)

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.

(Short Answer)
4.7/5
(30)

The correct code to add hyperlink tags to an unordered list of headings is < li>< ____="javascript:top.locate('pictures')">Perfect Pictures< /a>< /li>

(Multiple Choice)
4.7/5
(45)

MATCHING Identify the letter of the choice that best matches the phrase or definition. -Horizontal Rule,width set at 25% and height set at 20 pixels

(Multiple Choice)
4.8/5
(26)
Showing 21 - 40 of 50
close modal

Filters

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