by Elisabeth Robson | Jul 7, 2012 | Beginner's Mind, blog, Programming, Reader Question
Another great question from a reader of Head First HTML5 Programming is about passing functions as values. This comes up when using the Geolocation API: the way you get your location is to call the built-in function getCurrentPosition() and pass in two arguments, both...
by Elisabeth Robson | Jul 6, 2012 | Beginner's Mind, blog, Programming, Reader Question
A couple of weeks ago, I got a great question from a reader of Head First HTML5 Programming: What is a API? Is it like a constructor function or is it just an object or something else? We use the term “API” frequently in Head First HTML5 Programming...
by Elisabeth Robson | Feb 16, 2012 | blog
Web Sockets is a new addition to HTML5 that allows you to create a persistent connection with a server for communication. With Ajax, because you’re using HTTP to communicate, the connection between your client and the server must be reestablished each time you...
by Elisabeth Robson | Feb 14, 2012 | Beginner's Mind, blog, CSS, Reader Question
We recently got a question from Michael, who asks: When troubleshooting CSS issues, how can I determine the source of a style that is applied to an element? My favorite way to figure out how an element is getting its style is to use the Element inspector in the Safari...
by admin | Jan 28, 2012 | Beginner's Mind, blog, Programming, Video
A reader from Kenya asks how best to get into programing. Eric Freeman answers the question, and the answer may not be what you expected…view the video below:
by Elisabeth Robson | Jan 19, 2012 | Beginner's Mind, Programming, Reader Question
I got a good reader question today about incrementing variables. This reader is completely new to programming and was getting confused about two common ways to increment variables: count = count + 1; a statement that often appears in a while loop, and i++; a statement...
by Elisabeth Robson | Dec 12, 2011 | blog, CSS, Reader Question, Web
We recently got a question from Jack, a reader of Head First HTML5 Programming, about the CSS used in the example in Chapter 3. In this example, we create a web application that creates a playlist from songs the user types into a form field on the web page, and of...
by admin | Dec 8, 2011 | blog, Events
If you missed our heavily-attended O’Reilly Webcast on December 2nd, no worries, because the presentation is now available online. In addition, you’ll find a cliff notes version below: 1. HTML5 Markup isn’t such a big deal. To understand this...
by Elisabeth Robson | Dec 6, 2011 | blog
One of the best things about the HTML5 <canvas> element is that we can now do things like this: without needing a plug in. I recently had to implement a similar type of graphic in canvas for a project I’m working on, so I thought I’d turn it into a...
by Elisabeth Robson | Nov 30, 2011 | blog
There are many good reasons to learn HTML5. One really great one is the <canvas> element. This element gives you the ability to add graphics and animation to your page without any plugins. If you’re at all interested in HTML5, you’ve very likely seen...
Comments