nerdexam
Magento

M70-301 · Question #34

Which two of the following code samples contain correct XML code for adding style.css to a page? (Choose TWO.)

The correct answer is B. <action method="addCss"><stylesheet>css/styles.css</stylesheet></action> E. <action method= "addltem" ><type>skin_css</ type><name> css/styles.css</name></action>. See the full explanation below for the reasoning.

Question

Which two of the following code samples contain correct XML code for adding style.css to a page? (Choose TWO.)

Options

  • A<action method= "add"><stylesheet>css/styles.css</stylesheet></action>
  • B<action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
  • C<action method="addltem"><name>css/styles.css</name></action>
  • D<action method= "addltem"><type>css</type><name> css/styles.css </name></action>
  • E<action method= "addltem" ><type>skin_css</ type><name> css/styles.css</name></action>

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    71% (20)
  • C
    18% (5)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full M70-301 Practice