Posts Tagged ‘html’

First step in throwing your XHTML document into Quirks Mode

Thursday, December 31st, 2009

A lot of websites pursue XHTML as their document type, which is really cool. But a lot of them end up not validating with one little mistake. Even worse, with this mistake, documents that are made to run in “standards mode” are immediately thrown into quirks mode by browsers because web developers don’t know how to do their jobs.

Read on to find out how to avoid this all-too-common mistake.

Read the rest of this entry »

Wheels is only a hammer

Thursday, October 8th, 2009

My posting this is a seriously delayed reaction. But I must admit that I was using Wheels as a hammer and trying to treat a problem like a nail when I wrote about creating a Wheels partial for setting form focus.

Read on to see where I went wrong.

Read the rest of this entry »

Accessible links in printer style sheets

Thursday, September 24th, 2009

Using some CSS voodoo, you can display a text link’s URL in parenthesis after the link text. This would be very useful for printer style sheets, where you can’t see where the links are pointing when the page is printed out.

Read on for more details and the code.

Read the rest of this entry »

XHTML 2/HTML 5 comic

Thursday, August 27th, 2009

If you haven’t seen it yet, Smashing Magazine posted a comic called Misunderstanding Markup: XHTML 2/HTML 5. I’ve been wondering what’s been going on with the standards and what it’ll ultimately mean for me. And a comic addresses my questions and laziness quite nicely. I win!

At risk of infringing copyright, I’ll rape and paste it below.

HTML Comic

Read on for the rest of the comic. This isn’t the whole thing.

Read the rest of this entry »

My first usage of jQuery

Tuesday, August 18th, 2009

jQuery: write less, do more

Finally forcing myself to learn a much-needed skill, I took a dive into learning jQuery. I used jQuery to improve some JavaScript code that I had written a couple months ago.

Read on to see the original code and how much cleaner jQuery made it.

Read the rest of this entry »

Using non-breaking spaces to help with branding

Monday, June 4th, 2007

You hear marketers yammer on about branding. A lot of it has validity, so you want to help out in your web marketing initiatives. So why would you want your company’s 2-word name to be split onto 2 separate lines? Let me show you why this is bad in your web marketing and how to avoid this mistake by using HTML non-breaking spaces.

Read the rest of this entry »

Everything you’d ever want to know about the alt attribute

Tuesday, May 17th, 2005

When you have a restless mind like mine, you start reading crazy things like articles about the Use of ALT texts in IMGs.* A.J. Flavell brings up some excellent points about the original intention of alt texts in img tags and how they are commonly misused. These misuses can produce some funny results and, more tragically, a horrible user experience for those who are unable to view graphics in their browsers.

Read the rest of this entry »