by Elisabeth Robson | Jul 23, 2014 | blog, Programming, Reader Question
I got another great question from a Head First JavaScript Programming reader this week. He was working on a big project and had modified our Model-View-Controller code from Chapter 8. Here’s what he wrote: I’m trying to get rid of the last global variable,...
by Elisabeth Robson | Dec 28, 2013 | Beginner's Mind, blog, Reader Question
A reader of Head First HTML and CSS wrote in today to ask about web fonts. Web fonts is a fairly new feature supported by browsers that allows you to include non-standard fonts in your web page. It works like this: you specify the font you want in your CSS using the...
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 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 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...
Comments