exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 2 question 12 discussion

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

[1]
resemble the exhibit. (Click the Exhibit button.)

The application must display the image above the field set.
You need to add the HTML code to /Runlog/Views/InsertLog.cshtml to display the image and header text.
Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Example:
<div style="background-image: url(../images/test-background.gif); height: 200px; width:400px; border: 1px solid black;">Example of a DIV element with a background image:</div>
<div style="background-image: url(../images/test-background.gif); height: 200px; width: 400px; border: 1px solid black;"> </div>

Reference: DIV BACKGROUND-IMAGE in the STYLE element
http://www.w3.org/WAI/UA/TS/html401/cp0301/0301-CSS-DIV-BACKGROUND-IMAGE.html

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
cristopherpereiramoreira
Highly Voted 5 years, 9 months ago
D is correct
upvoted 6 times
...
Karel_Gott
Most Recent 5 years, 1 month ago
D is correct. From: https://www.w3schools.com/cssref/css3_pr_background.asp "The background property is a shorthand property for: background-color background-image ..."
upvoted 1 times
...
OS
5 years, 10 months ago
Answer D is wrong because the property name schould be background-image to place an image into the background of a node. Answer C is correct!
upvoted 1 times
Burkitt
5 years, 9 months ago
D is correct. background attribute work. not C : the tag <a> is for link. https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_body_background
upvoted 19 times
mr_
4 years, 11 months ago
I suppose Burkitt is right because <a href=...> is no the way to go for sure but there is an error in the answer still. It is not an attribute but CSS property. Or if it is HTML element attribute then some quotes are missing in the answer (not only). IMO in the original question it was background-image because of the 'url()'. Read it carefully and you will see what I mean.
upvoted 1 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 ...