Which code segment should you use?
You are developing an HTML5 web application. The application loads data from a web service by using AJAX.
The application displays the data by calling the displayData function. The data is loaded by using the following
code.
You need to ensure that the data is displayed when it is successfully retrieved from the web service.
Which code segment should you use?
Which code segment should you use?
You are developing a website that helps users locate theaters in their area from a browser. You created a
function named findTheaters ().
The function must:
Get the current latitude and longitude of the user’s device
Pass the user’s location to findTheaters()
The user needs to access the geolocation information from the browser before searching for theaters.
Which code segment should you use?
Which code segment should you use?
You develop an HTML5 webpage that contains the following HTML markup:
Users must receive a message after they click the Submit button if the text entered into the favoriteColor text
box is fewer than 2 characters or greater than 10 characters.
You need to implement the testLength() function.
Which code segment should you use?
Which style should you use?
Your company uses a third-party component that generates HTML for a website. The third-party component
creates DIV elements that display a yellow background.
The third-party component uses inline styles in the DIV elements that are inconsistent with your corporate
standards. You must override the DIV elements in the style sheet with the corporate styles.
You need to ensure that the website meets corporate standards.
Which style should you use?
You need to modify the CSS statement to ensure that the…
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.)
Hot Area:
Which CSS3 code should you use?
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?
Which code segment should you add to the webpage?
Which code segment should you use?
You need to ensure that the shopping cart data is avail…
You are developing an e-commerce website. Users place products into a shopping cart.
You need to ensure that the shopping cart data is available between browser sessions.Which object should you use to store the shopping cart data?
You need to apply the appropriate CSS rules to meet the…
You develop an HTML5 webpage with custom CSS. You have the following HTML markup:
<div class=”new” Item”>…</div>
You have the following requirements:
In addition to your CSS, you must use a corporate branded stylesheet named corporate.css.
The corporate.css file contains the style rule that must be used for .newsItem.
You must use the corporate.css file to ensure that the webpage changes when the brand changes.
You must add additional style rules to the webpage.
You cannot modify the corporate.css file.
You need to apply the appropriate CSS rules to meet the requirements.
What should you do?