READ Free Dumps For Microsoft- 70-480
Question ID 14924 | You are developing a web page that includes the following HTML.
<span id = "myTextSpan" class = "redText"> Hello There! </span>
The font color of text inside the span must be red.
You need to develop the web page to meet the requirement.
Which two CSS segments will achieve the goal? (Each correct answer presents a complete
solution. Choose two.)
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | A,C |
Explanation Explanation: You can refer to class, by .redText, or the span, by span#myTextSpan.
Question ID 14925 | You are creating a web page that contains a canvas with text.
The page contains the following JavaScript code. (Line numbers are included for reference
only.)
The text on the canvas must rotate 90 degrees when a user clicks a button on the page.
You need to ensure that the text rotates when the user clicks the button.
Which line of code should you add at line 03?
|
Option A | context.transform(90);
|
Option B | context.content.getRotation(90);
|
Option C | context.rotate(90);
|
Option D | context.content.rotate (90);
|
Correct Answer | C |
Explanation Explanation: The rotate() method rotates the current drawing. Example Rotate the rectangle 20 degrees: JavaScript: var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.rotate(20*Math.PI/180); ctx.fillRect(50,20,100,50); Reference: HTML canvas rotate() Method