22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

20<br />

Part V: The Future of (X)<strong>HTML</strong><br />

<strong>HTML</strong>5 Web APIs<br />

An API defines rules for communication and interaction with other programs<br />

from inside a specific program. For most people, the Web APIs of greatest<br />

import for <strong>HTML</strong>5 are those that are called from inside <strong>HTML</strong> documents, to<br />

invoke special functionality for things like playing audio, playing video, and<br />

interacting with other applications, and that help to add to the Web browser<br />

user interface (dragging and dropping objects in Web pages, for example).<br />

Here’s a list of APIs that <strong>HTML</strong>5 incorporates with the intent of providing<br />

“help in creating Web applications” (this quote comes directly from the<br />

“APIs” section in the “W3C <strong>HTML</strong>5 Differences from <strong>HTML</strong>4” document cited<br />

two sections earlier):<br />

✓ Video and audio playback API, for use with the new video and audio<br />

elements<br />

✓ Access to offline Web applications through a special API<br />

✓ An API designed for Web applications to register themselves to receive<br />

certain protocols and media types<br />

✓ An API to permit page visitors to edit content and markup in concert<br />

with the new global contenteditable attribute.<br />

✓ A drag-and-drop API used with the draggable attribute to permit users<br />

to drag and drop items onto Web pages to provide input<br />

✓ An API that exposes browser history data and that permits pages to add<br />

to that data to prevent breaking the Back button.<br />

Mostly, these APIs are where the significant action is for <strong>HTML</strong>5 (think about<br />

the Adobe Flash controversy we covered earlier in this chapter) and where<br />

change is nearly inevitable between the draft version and whatever more<br />

final form(s) <strong>HTML</strong>5 takes. APIs are the keys to user interaction and dynamic<br />

page behavior, and they will figure heavily into future uses for (and applications<br />

of) the Web and the Internet, especially in an era when many people are<br />

coming to believe that the Web and the Internet are more interchangeable<br />

than otherwise.<br />

Limits to <strong>HTML</strong>5 Access and Use<br />

Most Web browsers support <strong>HTML</strong>5 features in some form or fashion, with<br />

varying degrees of support and enthusiasm. Currently, Apple Safari and<br />

Google Chrome appear to be leading the way, followed by Mozilla Firefox,<br />

and then Opera, with Microsoft Internet Explorer dead last among the Top 5.<br />

This is entirely understandable, because not all these companies can release<br />

products overnight.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!