Exam 12: Working With Document Nodes and Style Sheets Tutorial

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

Joshua has created a web page and implemented CSS in it. He has applied the style property to inline styles that can also be used with style rules and with style sheets. However, he wants to change a CSS rule in the stylesheet from h2 { color: blue; } to h3 { color: green; font-size: 1.2em; }

(Multiple Choice)
4.9/5
(50)

Which of the following methods includes or embeds a new node directly ahead of a child node?

(Multiple Choice)
4.7/5
(37)

The _____ method can be used to create a comment node containing the comment text .

(Multiple Choice)
4.8/5
(39)

The _____ method discards the old node from node .

(Multiple Choice)
4.8/5
(37)

The selectorText property can only be used to read the text of a Cascading Style Sheets (CSS) rule.

(True/False)
4.9/5
(32)

All the versions of Internet Explorer before IE9 do not support element node properties.

(True/False)
4.7/5
(42)

Explain the statement: " Nodes in the node tree have a familial relationship."

(Essay)
4.7/5
(38)

Which of the following values is returned by the node.nodeType property when the node is a document?

(Multiple Choice)
4.9/5
(28)

The style sheet properties that are read-only cannot be changed in JavaScript.

(True/False)
4.9/5
(42)
Identify the letter of the choice that best matches the phrase or definition.
The style sheet containing rule (read-only)
rule .parentRule
The text of the patterns that select the element(s) to be styled for rule
node .lastElementChild
The total number of child elements within node
rule .style. property
Correct Answer:
Verified
Premises:
Responses:
The style sheet containing rule (read-only)
rule .parentRule
The text of the patterns that select the element(s) to be styled for rule
node .lastElementChild
The total number of child elements within node
rule .style. property
The number of child elements within node
node .previousElementSibling
The contents of rule as a text string (read-only)
rule. cssText
The immediate sibling element after node
node .nextElementSibling
The value of a style feature within rule
node .childElementCount
The immediate sibling element before node
rule .selectorText
The final element within node
node .children.length
The style rule containing rule as a parent (read-only)
rule . parentStyleSheet
(Matching)
4.9/5
(31)

In the following HTML code, the object reference document.styleSheets[0].cssRules[1] points to the _____ style rule. h1 {color: red;} h2 {color: blue;} h3 {color: green;} h4 {color: violet;}

(Multiple Choice)
4.8/5
(40)

An index value of 0 inserts a CSS rule at the end of a style sheet.

(True/False)
4.8/5
(40)

Style sheets loaded into a web document, both external sheets and embedded style sheets, are part of an object collection .

(True/False)
4.8/5
(42)

Identify the integer value returned by the rule.type property if it is describing the @media rule.

(Multiple Choice)
4.8/5
(32)

Which of these rules is represented by the rule.type property when its value is 5?

(Multiple Choice)
4.8/5
(42)

The document object model supports several methods to create, attach, and set the values of attributes.

(True/False)
4.9/5
(39)

The node.nodeType property returns the value of a node.

(True/False)
4.9/5
(36)

The _____ style rule is described by the rule.type property if it returns an integer value of 6.

(Multiple Choice)
4.7/5
(35)

An attribute node contains an attribute that can be attached to an element node.

(True/False)
4.7/5
(30)

To create or set an attribute for an element, the createAttribute () method is used.

(True/False)
4.8/5
(35)
Showing 21 - 40 of 76
close modal

Filters

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