22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 15: Bring the Best of the Web to Your Web Site<br />

worked together, nor do they share a common musical genre, nor is there<br />

even any historical overlap between the two works. Nevertheless, DJ Danger<br />

Mouse took each of these albums, put them together, and used them to<br />

create something interesting and new.<br />

Returning to the topic for this book — namely, Web development — a<br />

mashup is something like what’s found in the music industry except that<br />

samples and vocals are replaced with data or functionality from two (or<br />

more) external services to create something new and interesting online.<br />

In short, mashups provide a way to combine and extend various individual<br />

Web site services to create new functionality that didn’t exist before. Why<br />

would anybody want to do this? Some might say “Just because you can” or<br />

“Just for the thrill.” Others might enjoy tackling the same kind of challenge on<br />

the Web that DJ Danger Mouse took on in the studio in 2004.<br />

In writing this book, we make the assumption that you’re learning your way<br />

around <strong>HTML</strong> and <strong>CSS</strong>. Consequently, we don’t expect you to be able to use<br />

every line of code in every mashup. However, we do think you need to know<br />

that mashups exist, and that they are a popular and growing portion of the<br />

Web. Our goal here is to help you understand what mashups are, and to<br />

expose you to just a little about how mashups work.<br />

As you progress with your coding skills, you can tackle projects like building<br />

your own mashups. The real beauty of mashups stems from the trend that<br />

more and more applications and Web sites keep opening (a least a portion of)<br />

their services through special application programming interfaces (APIs) for<br />

embedding and reuse on other sites. Even better, whole online communities,<br />

tutorials, and documentation explain how to access APIs and the data and<br />

services they deliver from the best of the Web’s providers. (Just remember:<br />

Some services are better than others, and some APIs and tools are easier to<br />

work with than others, too. The best of the best is just that because both the<br />

services and the tools you use to access them are pretty darn good indeed.)<br />

Again, please don’t feel overwhelmed. For the moment, be happy understanding<br />

that mashups exist and are pretty darn cool. To get a better idea why we<br />

think this is worth knowing, check out some of the following examples.<br />

Creating a Yelp/Google Maps mashup<br />

In the earlier section, “Creating a map,” we walk you through building a<br />

Google map for some out-of-town friends attending a party in Austin. If you’ve<br />

never been to Austin, one particular food item worth discussing (at least<br />

briefly) is breakfast tacos. Depending on where you live, you may not have<br />

heard of these delectable treats. For those who don’t know, in its simplest<br />

259

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

Saved successfully!

Ooh no, something went wrong!