exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 2 question 39 discussion

Actual exam question from Microsoft's 70-480
Question #: 39
Topic #: 2
[All 70-480 Questions]

You implement an application by using HTML5 and JavaScript. You create a webpage that contains the following HTML:

The application must place a border on only the first UL element that is contained in the DIV element.
You need to update the webpage.
What should you do?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Example:
CSS File:
ul {
border: 1px solid black;
}
Inline CSS:
<ul class="container" style="border: 1px solid black">

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Etnic
Highly Voted 5 years, 7 months ago
correct answer is B : .container is for class. There is id="container" which is #container
upvoted 17 times
...
techabilla
Highly Voted 5 years, 8 months ago
Answer D is incorrect. The selector ".container ul" will not work, because the <div> does not have a class attribute. I believe answer B will work since the selector "div#container ul" will select the <ul> inside the <div> with id="container".
upvoted 14 times
...
Lercoo_1728
Most Recent 4 years, 5 months ago
correct answer is "D". The CSS file is an external one, so only option "C" is correct.
upvoted 1 times
...
alexcode
4 years, 6 months ago
$("div#container > ul").css("border", "1px solid black"); - Correct, i Tested
upvoted 1 times
...
PHULU
4 years, 9 months ago
Answer D id wrong the selector ".container " is not a class its an id element , it should be #container. i think c is correct
upvoted 1 times
...
zara01
4 years, 11 months ago
Why cant it be C? first ul element of its parent (div)??
upvoted 2 times
zara01
4 years, 11 months ago
Sorry i understand now its because both ul's are the first ul's of their parent. First ul of div and first ul of li
upvoted 1 times
...
...
JackJack74
5 years, 5 months ago
I went and tested all options, And B is the only correct answer
upvoted 7 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...