Lesson 7: Using HTML5 APIs

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

When you use the HTML5 File API, which statement is the simplest way to reference several files at once?

<input type="file" multiple>

What is WebGL (Web Graphics Library)?

A JavaScript API that enables rendering of interactive 3D and 2D graphics in an HTML canvas

What must you create in order to set up a site and its applications to work offline?

A manifest file

You should use the append(), prepend(), after() and before() jQuery methods if you want to perform which function?

Add new content

What is the term for a set of universal commands, calls and functions that allows developers to communicate with an application or operating system?

Application Programming Interface (API)

What is the term for a Web site that hosts third-party JavaScript libraries, such as jQuery?

Content Delivery Network (CDN)

What is the term for a standard that specifies how objects in a Web document can be referred to and manipulated through scripting languages?

Document Object Model (DOM)

What is the term for an area of a Web page that has been defined as a place where dragged items can be placed?

Drop zone

What technologies make up HTML5 APIs?

HTML5, CSS and JavaScript

The HTML5 Canvas element has two attributes. Which are they?

Height and width

Where in your HTML page must you reference the jQuery file when you want to include the library for use in your page?

In a <script> tag within the <head> section of your document

While you are working with a mobile app, your phone loses its network connection. Because you have access to an offline Web application, you can continue working with the app because it is stored where?

In the application cache

When you use the offline AppCache API to create a manifest file, how do you identify the manifest file to which a Web page should link?

Include a manifest attribute in the <html> tag for the Web page.

Which of the following describes the HTML5 Drag-and-Drop API?

It allows a user to grab an object and move it to a different location on a computer screen or into an external application.

Which of the following describes an HTML5 offline Web application?

It permits users to continue working with Web sites and Web documents even when a network connection is unavailable.

Which of the following describes the HTML5 Canvas API?

It provides a place on a Web page where developers can display graphics, animation, video and games "on the fly" without the need for a plug-in.

Which of the following describes the HTML5 File API?

It provides a standard way to interact with files on the client machine using a Web browser.

What function does AJAX (Asynchronous JavaScript and XML) perform?

It transmits data objects between a server and a Web application without disturbing the page's display or behavior.

What technology is required to draw objects on the "canvas" of the HTML5 Canvas API?

JavaScript

You should use the remove() and empty() jQuery methods if you want to perform which function?

Remove elements and content

You should use the text(), html() and val() jQuery methods if you want to perform which function?

Retrieve and change content

Which HTML5 API should you use if you want a user to be able to pick up right where he or she left off if the user closes the Web browser or refreshes the browser page?

The History API

The <canvas> element uses a method to provide the properties and methods that can be used to draw and manipulate images on the canvas. Without this method, the canvas would be blank. What is the name of this method?

The getContext() method

Which method does the HTML5 Geolocation API use to determine the user's present geographic location?

The getCurrentPosition() method

Although you can draw various shapes on the HTML5 Canvas, Canvas supports only one primitive shape. Which is it?

The rectangle

Which API object do scripting languages use to send HTTP or HTTPS requests to a Web server, which in turn responds with data that is loaded back into the script?

XMLHttpRequest

jQuery can be useful when you are developing pages with HTML5 APIs. You must start the jQuery syntax with:

a dollar sign ($) and parentheses ().

The HTML5 Geolocation API can be used to:

determine a user's current position, monitor the user's location, and update any changes to that location.

jQuery code should not run until the document is finished loading. To ensure this occurs, code to run is placed within which event handler?

document.ready

What can developers use to perform common JavaScript tasks with less code?

jQuery

In order to add drag-and-drop functionality to your Web pages, you must define an element as able to be dragged by:

setting its draggable attribute to the value "true".

All browsers are DOM-compliant, which means that:

you do not need to develop multiple versions of your scripts tailored for each browser.


Ensembles d'études connexes

What, of this Goldfish, Would You Wish?

View Set

Study Guide Ch. 17: Concepts of Care for Patients with HIV Disease

View Set

AZ Life Insurance Exam Prep Study Guide

View Set

Chapter 24: Nursing Care of the Child with an Integumentary Disorder

View Set

MGMT 421: Chapter 1, Chapter-14, MGMT 421 Chapter 13, MGMT421 Chapter 10, Chatper-9, Chapter - 8, Chapter-7, Chapter -6, MGMT 421: Chapter 8, MGMT 421: Chapter 2, MGMT421 Chapter 7, MGMT 421 chapter 15, MGMT 421: Chapter 6, MGMT 421: Chapter 5, MGMT...

View Set

Lewis-Chapter 15 - Infection and Human Immunodeficiency Virus Infection

View Set

Pharmacology Unit 9: Chapters 48-50

View Set