2026 New 70-480 Exam Dumps with PDF and VCE Free: https://www.2passeasy.com/dumps/70-480/
Master the 70-480 Programming in HTML5 with JavaScript and CSS3 content and be ready for exam day success quickly with this Certleader 70-480 test questions. We guarantee it!We make it a reality and give you real 70-480 questions in our Microsoft 70-480 braindumps.Latest 100% VALID Microsoft 70-480 Exam Questions Dumps at below page. You can use our Microsoft 70-480 braindumps and pass your exam.
Microsoft 70-480 Free Dumps Questions Online, Read and Test Now.
NEW QUESTION 1
You develop an HTML5 webpage. You have the following HTML markup:
You also have the following JavaScript code:
You need to post messages by using the HTML5 WebSocket API. Which code segment should you use?
- A. socket.onmessage($(“#message”).val());
- B. socket.send($(“#message”).val());
- C. var msg = $(“#message”).val();$.post(socket, function (msg) { … });
- D. var msg = $(“#message”).val();$.post(socket.onmessage, function (msg) { … });
Answer: B
Explanation:
References: https://www.tutorialspoint.com/html5/html5_websocket.htm
NEW QUESTION 2
You are developing an HTML5 web form to collect feedback information from site visitors. The web form must display an INPUT element that meets the following requirements:
You need to add the INPUT element to the form. Which HTML element should you add?
- A. Rating (Between 1 and 10): <input type="number" name="rating" min ="1" max="10">
- B. Rating (Between 1 and 10): <input type="range" name="rating" min="1" max="10" value="5">
- C. Rating (Between 1 and 10): <input type="range" name="rating" min="1" max="10" default="5">
- D. Rating (Between 1 and 10): <input type="number" name="rating" min="1" max="10" default="5">
Answer: C
NEW QUESTION 3
You develop an application in HTML5. The application has a field named field1 that uses the month input type.
You need to identify what will occur if the application runs from a browser that does not support the month input type.
What should you identify?
- A. The field1 field will be rendered as a text box.
- B. The field1 field will appear as alabel named month.
- C. The web page will display an error message.
- D. The field1 field will not be displayed.
Answer: A
Explanation:
References: https://stackoverflow.com/questions/18020950/how-to-make-input-type-date- supported-on-all-browsers-any-alternatives
NEW QUESTION 4
You are troubleshooting a web page that includes the following code segment.
You need to evaluate the value of the variable x. What will be displayed in the user interface?
- A. 1
- B. 2
- C. An error
Answer: A
Explanation:
* Alert(x) is within the scope of the outermost assignment, x=0.
* Local variables have local scope: They can only be accessed within the function. Example
// code here can not use carName function myFunction() {
var carName = "Volvo";
// code here can use carName
}
* A variable declared outside a function, becomes GLOBAL.
A global variable has global scope: All scripts and functions on a web page can access it.
Example
var carName = " Volvo";
// code here can use carName function myFunction() {
// code here can use carName
}
* The alert() method displays an alert box with a specified message and an OK button.
An alert box is often used if you want to make sure information comes through to the user. Reference: JavaScript Scope
NEW QUESTION 5
An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following line of code.
<p id="test">test</p>
A CSS style sheet must be applied dynamically. The style must visibly change the appearance of the paragraph on the page.
You need to apply a style to the paragraph. Which line of code should you use?
- A. document.getElementById("test").style.top = "5px";
- B. document.getElementById("test").style.border = "0";
- C. document.getElementById("test").style.color = "red";
- D. document.getElementById ("test").style.position = "absolute";
Answer: C
NEW QUESTION 6
You are building a multiplayer online game that will be deployed to an application server named Server1. Clients will have a low-latency, persistent connection to Server1.
You need to identify a solution for the game. The solution must meet the following requirements: What should you use to develop the solution?
- A. Ajax
- B. HTTP server push
- C. WebSockets
- D. REST
Answer: C
Explanation:
https://www.html5rocks.com/en/tutorials/websockets/basics/
NEW QUESTION 7
DRAG DROP
You are developing an airline reservation website by using HTML5 and JavaScript. A page on the site allows users to enter departure and destination airport information and to search for tickets.
You have the following requirements:
Users must be able to save information in the application about their favorite destination airport.
The airport information must be displayed in the destination text box whenever the user returns to the page.
You need to develop the site to meet the requirements.
Which line or lines of code should you use? (To answer, drag the appropriate command or commands from the list of commands to the correct location or locations in the work are
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
* retrieve localStorage.destination
* store localStorage.destination
NEW QUESTION 8
HOTSPOT
How does the page render? For each statement in the table, select Yes if the behavior is described.
Select No if it is not. Make only one selection in each column.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation: 
NEW QUESTION 9
DRAG DROP
You have the following markup.
You need to ensure that when the button is clicked, a message appears that displays the value of the button.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. Each code element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation: 
NEW QUESTION 10
You are developing a web page that has a group of H1 and H2 elements. The page also includes a CSS class named underlineMe.
You have the following requirements:
The font color of all H1 and H2 elements must be changed to red.
The CSS class underlineMe must be applied to all H1 and H2 elements. You need to update the web page to meet the requirements.
Which code segment should you use?
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: D
Explanation:
The :header selector selects all header elements (<h1> to <h6>). Reference: jQuery :header Selector http://www.w3schools.com/jquery/sel_header.asp
NEW QUESTION 11
NOTE: This question is a part of series of questions that presents the same scenario. Each question in the series contains unique solution that might meet the started goals. Some questions sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section. you will not be able to return to it. As a result, these questions will not appear in the review screen.
You have the following HTML5 and CSS3 markup within a webpage.
You need to set the background color of the Home link to yellow. The solution can affect the color of the other elements.
Solution: You use the following style:
Does this meet the goal?
- A. Yes
- B. No
Answer: B
NEW QUESTION 12
You develop an HTML5 webpage. You have the following HTML markup:
<input type="text" id="username" />
You need to prevent users from entering specific characters into the username field. What should you do?
- A. Using the keyup event, add an anonymous function that returns true when a specific characterkeycode value is determined.
- B. Using the change event, add an anonymous function that returns true when a specific character keycode value is determined.
- C. Using the keydown event, add an anonymous function that returns false when a specific character keycode value is determined.
- D. Using the change event, add an anonymous function that returns false when a specific character keycode value is determined.
Answer: B
Explanation:
The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user.
Use the change event and an anonymous function to detect illegal specific characters in the input.
NEW QUESTION 13
You are developing an HTML5 web application and are styling text. You need to use the text-transform CSS property.
Which values are valid for the text-transform property?
- A. hidden
- B. blink
- C. capitalize
- D. line-through
Answer: C
Explanation:
CSS Syntax
text-transform: none|capitalize|uppercase|lowercase|initial|inherit; Example
Transform text in different elements: h1 {text-transform:uppercase;}
h2 {text-transform:capitalize;} p {text-transform:lowercase;}
Reference: CSS text-transform Property http://www.w3schools.com/cssref/pr_text_text-transform.asp
NEW QUESTION 14
You are developing a web page that will contain an animated logo. The web page currently has a logo image on a canvas object.
You need to spin the logo image on the canvas. Which method should you use?
- A. context.rotate()
- B. context.spin()
- C. context.translatePosition()
- D. context.setTransform()
Answer: A
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);
Incorrect:
not B: there is no canvas.spin method. Reference: HTML canvas rotate() Method
NEW QUESTION 15
You are developing an HTML5 web application for an architectural company that displays architectural blueprints.
The application must:
Display the blueprints at different zoom levels without loss of detail Print the blueprints without loss of detail
Work from only one source file per blueprint
You need to ensure that blueprints display according to the requirements. Which HTML5 element should you use?
- A. CANVAS
- B. SAMP
- C. SVG
- D. AREA
Answer: C
Explanation:
* SVG stands for Scalable Vector Graphics SVG is used to define graphics for the Web SVG is a W3C recommendation
* The HTML <svg> element (introduced in HTML5) is a container for SVG graphics. SVG has several methods for drawing paths, boxes, circles, text, and graphic images.
Reference: HTML5 SVG
NEW QUESTION 16
You are troubleshooting an application. Users report that the UI is slow to respond.
You need to improve UI responsiveness by moving application tasks to web workers.
Which two tasks can you move to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
- A. A function that loops through the Document Object Model to update the style of page elements
- B. A long-running calculation that requires looping through an array
- C. A function that performs graphic-intensive animation
- D. A function that stores large amounts of data to local storage
Answer: BC
Explanation:
Note:
* Despite the improvements in JavaScript engines, it is not uncommon for users to encounter frozen user interfaces as the browser works through resource intensive tasks. This leads to a horrible user experience. The purpose of Web Workers is to give developers a way of instructing the browser to process large tasks in the background; therefore preventing the UI from freezing up.
* The Web Workers specification defines an API for spawning background scripts in your web application. Web Workers allow you to do things like fire up long-running scripts to handle computationally intensive tasks, but without blocking the UI or other scripts to handle user interactions
NEW QUESTION 17
HOTSPOT
You are reviewing the CSS markup for an HTML5 page that displays a news article. The CSS markup for the page is as follows:
The HTML markup for the page is as follows:
For each statement in the table, select Yes if the code segments above causes the page to behave as described. Select No if it does not. Make only one selection in each column.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation: 
NEW QUESTION 18
You are developing an HTML5 page that includes several paragraph elements. You have the following requirements:
Add a drop shadow that is one inch below the text in the paragraph Set the radius of the drop shadow to five pixels
You need to style the paragraphs to meet the requirements. Which CSS style should you use?
- A. Text-shadow: 72pt 0pt 5pt
- B. Text-shadow: 5px lin 0px;
- C. Text-shadow: 72pt 0em 5px;
- D. Text-shadow: 100px 0px 5px;
Answer: B
Explanation:
We set the second argument (vertical) to one inch (1in). Note
Syntax
text-shadow: h-shadow v-shadow blur color;
Note: The text-shadow property attaches one or more shadows to text. The property is a comma- separated list of shadows, each specified by 2 or 3 length values and an optional color. Omitted lengths are 0.
* h-shadow
Required. The position of the horizontal shadow. Negative values are allowed
* v-shadow
Required. The position of the vertical shadow. Negative values are allowed
* blur
Optional. The blur distance
* color
Optional. The color of the shadow.
NEW QUESTION 19
You are developing a customer contact form that will be displayed on a page of a company's website. The page collects information about the customer.
If a customer enters a value before submitting the form, it must be a valid email address. You need to ensure that the data validation requirement is met.
What should you use?
- A. <input name="email" type="url"/>
- B. <input name="email" type="text" required="required"/>
- C. <input name="email" type="text"/>
- D. <input name="email" type="email"/>
Answer: D
Explanation:
Example:
<form> E-mail:
<input type="email" name="email">
</form> Reference:
http://www.w3schools.com/html/html5_form_input_types.asp
NEW QUESTION 20
HOTSPOT
You are implementing an HTML page that uses a custom sans-serif font. The CSS statement for the page is as follows.
Some users report that text is displayed in the default font for the browser.
You need to modify the CSS statement to ensure that the content is displayed with the custom font. What should you do? (To answer, select the appropriate options from the drop-down lists in the answer area.)

- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
Using The Font You Want
In the CSS3 @font-face rule you must first define a name for the font (e.g. myFirstFont), and then
point to the font file.
To use the font for an HTML element, refer to the name of the font (myFirstFont) through the font- family property:
Example
@font-face {
font-family: myFirstFont;
src: url(sansation_light.woff);
}
div {
font-family: myFirstFont;
}
Note:
* CSS3 Web Fonts - The @font-face Rule
Web fonts allow Web designers to use fonts that are not installed on the user's computer.
When you have found/bought the font you wish to use, just include the font file on your web server, and it will be automatically downloaded to the user when needed.
Your "own" fonts are defined within the CSS3 @font-face rule.
* TrueType Fonts (TTF)
TrueType is a font standard developed in the late 1980s, by Apple and Microsoft. TrueType is the most common font format for both the Mac OS and Microsoft Windows operating systems. Reference: CSS3 Web Fonts
NEW QUESTION 21
You are developing a web page that will be divided into three vertical sections. The main content of the site will be placed in the center section. The two outer sections will contain advertisements.
You have the following requirements:
The main content section must be set to two times the width of the advertising sections. The layout must be specified by using the CSS3 flexible box model.
You need to ensure that the visual layout of the page meets the requirements. Which CSS3 property should you use?
- A. box-orient
- B. box-flex-group
- C. box-flex
- D. box-direction
Answer: C
Explanation:
box-flex
Values: 0 | Any integer
The flexibility ratio for this child. If a child had 1 and its sibling had 2, any additional space in the parent box would be consumed twice as much by the sibling. It defaults to 0 which is inflexible. Reference: Quick hits with the Flexible Box Model http://www.html5rocks.com/en/tutorials/flexbox/quick/
NEW QUESTION 22
On which panel can you see a hierarchically structured view of the DOM?
- A. Live DOM
- B. Projects
- C. Assets
- D. Device
Answer: A
Explanation:
References: http://www.daoudisamir.com/references/vs_ebooks/html5_css3.pdf
NEW QUESTION 23
You are developing an application in HTML5. The application contains the following HTML markup.
You need to ensure that all of the links referencing domain names ending in .org are displayed in red text.
What should you use?
- A. a JSON parse function
- B. a CSS attribute selector
- C. a CSS pseudo-element
- D. a JSON stringify function.
Answer: B
NEW QUESTION 24
You are troubleshooting an application. Users report that the UI is slow to respond. You need to improve UI responsiveness by moving application tasks to web workers.
Which two tasks can you move to achieve this goal? (Choose Two)
- A. A function that loops through the Document Object Model to update the style of page elements
- B. A long-running calculation that requires looping through an array
- C. A function that performs intensive video compression
- D. A function that stores large amounts of data to local storage
Answer: BC
NEW QUESTION 25
You have the following code.
You need to ensure that the screen appears as shown in the following exhibit:
Which position should you use for Target 1?
- A. static
- B. fixed
- C. initial
- D. inherit
Answer: B
Explanation:
References:
http://www.w3schools.com/cssref/pr_class_position.asp
NEW QUESTION 26
Which panel can you use to access a list of the HTML elements, controls, and media that can be added to an HTML page that is open in the artboard?
- A. Projects
- B. Assets
- C. Device
- D. Live DOM
Answer: B
Explanation:
References: http://www.daoudisamir.com/references/vs_ebooks/html5_css3.pdf
NEW QUESTION 27
HOTSPOT
You develop an HTML messaging application that allows users to send messages. The messages can have an optional file attachment that is identified by a filename.
You use the following function to send a message:
You need to send a message with a file attachment.
How should you complete the relevant code? (To answer, select the appropriate option from each drop-down list in the answer area.)
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
Object Properties
The name:values pairs (in JavaScript objects) are called properties.
var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"}; Reference: JavaScript Objects
NEW QUESTION 28
......
Thanks for reading the newest 70-480 exam dumps! We recommend you to try the PREMIUM Surepassexam 70-480 dumps in VCE and PDF here: https://www.surepassexam.com/70-480-exam-dumps.html (322 Q&As Dumps)