Have you had a look at the Google Search Page recently? Probably! What you might not have noticed is that (at the time of writing) Google have stuffed their home page full of what most web developers would call “awful HTML”. Here are some examples, although you can “view source” on Google to see theContinue reading “Google Deliberately Write Awful HTML”
Category Archives: Programming
JavaScript Constructors are Just Functions
I was recently asked a question about JavaScript constructors, which highlighted to me that this statement isn’t as well known as it ought to be: JavaScript Constructors are Just Functions! There is absolutely no difference between the two, except how you use them. It’s a bit like a pencil. In my hands it is aContinue reading “JavaScript Constructors are Just Functions”
Show Links When Printing a Web Page
Despite all of the technological advances of the past 100 years, people still print web pages for many reasons. They might need to take some information into a meeting, find it easier to work off of printed instructions or even just want to frame an excellent blog article that has inspired them and put itContinue reading “Show Links When Printing a Web Page”
jQuery Get Text While Excluding Children
I recently came across a problem while obtaining the text from an HTML label element, based on the fact that I knew the form element that related to the label. This came about because there are two valid ways to use a label. The first way is to use the “for” attribute on the labelContinue reading “jQuery Get Text While Excluding Children”
HTML5 Page Layout
HTML5 is now just around the corner. I have already tested HTML 5 on a myriad of browsers and with a tiny JavaScript and CSS fix, it works in every major player – so if you are a web developer you need to start thinking about your HTML in a subtly different way. The bigContinue reading “HTML5 Page Layout”
CSS3 Gradients and Corners
CSS3 is going to bring some awesome new stuff that will combine excellently with HTML5 to give us an absolutely smashing Internet experience. Thing is, it isn’t here quite yet. Despite this, I just can’t wait for all the new features that HTML5 and CSS3 are going to bring. That’s why I converted this websiteContinue reading “CSS3 Gradients and Corners”
Supercharge Your PHP Pages
While working on the Swift Point Content Mangement System project I had the chance to delve deep into the fantastic world of PHP. One aspect of PHP we worked a lot on was optimisation. This went to low level details, such as the difference between single and double quotes, right through to making you webContinue reading “Supercharge Your PHP Pages”
Using CSS Selectors
It has been said about CSS that you can learn it in a day, but it takes years to master. Actually, it isn’t that hard to master if you have the right information to hand. Today I’m just going to dump a load of information on CSS selectors, which is the most common CSS questionContinue reading “Using CSS Selectors”
HTML5 and Skip to Content Links
If you’ve done web development with any focus on accessibility, you will have found yourself creating “skip to” links on your web page. You may have noticed that I have these very links on this website and wondered what they are! The two links, “skip to navigation” and “skip to content” are of little useContinue reading “HTML5 and Skip to Content Links”
JavaScript Short Tags and XHTML
Here is another JavaScript question I was asked yesterday, which was catching out a developer using XHTML and an external JavaScript file. Users of XHTML will be highly familiar with the use of the “short tag” (this isn’t when you sell a load of tags you don’t yet have, speculating that the value of theContinue reading “JavaScript Short Tags and XHTML”