exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 99 discussion

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

You have the following HTML code.

You need to identify how Text1 and Text2 will be displayed.
What should you identify?
A.

B.

C.

D.

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
References: https://www.quackit.com/html_5/tags/html_span_tag.cfm https://www.quackit.com/html_5/tags/html_body_tag.cfm https://www.quackit.com/html_5/tags/html_div_tag.cfm

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
Daniel_Stubkjaer
Highly Voted 5 years, 6 months ago
The right answer should be C. the div tag should take half of the width of the parent body
upvoted 22 times
...
danhan
Highly Voted 5 years ago
I second that: C is correct. Div is a block element and therefore starts in the new line.
upvoted 8 times
...
ethemyapar
Most Recent 4 years, 3 months ago
I tested the answer is "C" https://www.quackit.com/html/html_editors/scratchpad/?example=/html_5/tags/html_div_tag <body style="background-color:gray;"> <span style="background-color:red; width:50%">Span text</span> <div style="background-color:blue; width:50%"> Div text </div> </body>
upvoted 3 times
AnetteK
3 years, 10 months ago
wrong, the div is INSIDE a span, hence u have 2 spans as siblings, so they are side by side, no matter where the div is placed inside the span.
upvoted 1 times
AnetteK
3 years, 10 months ago
oops I am blind and tried to delete but couldn't. u are right..!
upvoted 1 times
...
...
...
elevator44
4 years, 4 months ago
One more for C. Tested with code here https://jsfiddle.net/
upvoted 2 times
...
mehar
4 years, 4 months ago
the correct answer is "C" just tested it
upvoted 3 times
...
RubyH
4 years, 9 months ago
ONLY VALID ANSWER: C => SEE https://jsfiddle.net/rfxm6n18/
upvoted 6 times
...
AT_TW
4 years, 9 months ago
After trying, Correct Answer is: D
upvoted 1 times
...
Byron73
5 years ago
Sorry my bad i used two spans instead of one span and one div. After the changes it gives me C
upvoted 5 times
...
Byron73
5 years ago
After trying it out the correct answer is D
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago