nerdexam
CIW

1D0-520 · Question #120

Tom is making changes to his company's Web site. Because he likes the way the markup is styled, he copies the following into another section of the page: <div id="subsection"> This section is under…

The correct answer is D. An ID attribute can be applied to only one element in a document. See the full explanation below for the reasoning.

Question

Tom is making changes to his company's Web site. Because he likes the way the markup is styled, he copies the following into another section of the page:

<div id="subsection"> This section is under construction</div> Why does the home page not validate properly?

Options

  • AThe <div> tag was not closed properly.
  • BElement attributes must be declared in the style sheet.
  • CA <div> tag can be used only once in each document's markup.
  • DAn ID attribute can be applied to only one element in a document.

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    8% (3)
  • D
    83% (30)

Community Discussion

No community discussion yet for this question.

Full 1D0-520 Practice