READ Free Dumps For Microsoft- 70-480
Question ID 15015 | You develop an HTML5 webpage. You have the following HTML markup: You need to add a background color to the first article in each section.
|
Option A | $ ("section article:first-child").css("background-color", "#f2f2f2"); |
Option B | $ ("section:first-child").css ( "background-color", "#f2f2f2"); |
Option C | $ ("article:first-of-type") .css("background-color", "#f2f2f2"); |
Option D | $ ("section:first-of-type").css("background-color", "#f2f2f2"); |
Correct Answer | C |
Question ID 15016 | You are developing a form that captures a user's email address by using HTML5 and |
Option A |
Explanation: * The serialize() method creates a URL encoded text string by serializing form values. You can select one or more form elements (like input and/or text area), or the form element itself. The serialized values can be used in the URL query string when making an AJAX request. Example: $("form").serialize()); * decodeURIComponent The decodeURIComponent() function decodes a URI component. Return Value:A String, representing the decoded URI Incorrect: Not decodeURI: decodeURI is intended for use on the full URI. decodeURIComponent is intended to be used on .. well .. URI components that is any part that lies between separators (; / ? : @ & = + $ , #). |
Correct Answer | A |