exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 41 discussion

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

You are developing a web application by using HTML5.
You have the following requirements.
✑ The color of a menu item must change when a user hovers over the item.
✑ The color of the menu item must change back to its original color after five seconds.
You need to ensure that the animation is applied to all menu items.
Which CSS3 code should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
transition-property
The transition-property property specifies the name of the CSS property the transition effect is for (the transition effect will start when the specified CSS property changes).
Tip: A transition effect could typically occur when a user hover over an element.
Note: Always specify the transition-duration property, otherwise the duration is 0, and the transition will have no effect.
CSS3 transition-property Property

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
Lercoo_1728
4 years, 5 months ago
C is the correct answer. Check "https://www.w3schools.com/cssref/css3_pr_transition-property.asp" for more information.
upvoted 2 times
...
nelaed
4 years, 9 months ago
C & D Works. And i don't know what 'transition-property: color;' does. <style> p { border: solid; box-sizing: border-box; border-radius: 10px; } a { font-size: 20px; } a:link { color: blue; } a:visited { color: green; } a:hover { color: red; transition-property: color; // this is not so important here transition-duration: 5s; } a:active{ color: yellow; } </style> <p> <a href="https://www.google.pl/" >google</a> <a href="https://www.examtopics.com/exams/microsoft/70-480/view/38/" >32</a> <a href="https://www.amsterdam.info/transport/" >go333332ogle</a> </p>
upvoted 1 times
...
MrAnderson
4 years, 11 months ago
all of the answers don't change to its original color after 5s. An animation property should be used with the keyframes media rule.
upvoted 1 times
...
testemanpower
5 years, 1 month ago
I don't know if the answer is correct, cause the problem says: "The color of the menu item must change back to its original color after five seconds." And if you gonna test the "correct answer", u'll se the 5 seconds changing to yellow color and not back to original black.... Is that right?
upvoted 1 times
...
Duo
5 years, 3 months ago
Seems like the Answer is D instead of C, the question said the animation are applied to all menu item. So I guess transition-property: color is not needed here, since it apply the animation to color changing only and prevent other property to apply the animation
upvoted 2 times
...
JMz123
5 years, 5 months ago
Also, this does not work as described. Enough said. typo in a.
upvoted 1 times
...
JMz123
5 years, 5 months ago
It would be better to make it about 800 ms. Users could see something that is there for 5 seconds and only be a little frustrated by the flashing stuff. At 800 ms one gets the maximum frustration.
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