Odds and ends
A few links I’ve found interesting or useful over the last week:
This is a highly effective trick for enhancing the usability of forms, the topic of my recent SitePoint article. It’s particularly useful for text entry fields for content management systems – for example, providing users with an “add image” widget that prompts them for a URL and ALT attribute and then inserts the corresponding HTML at their current cursor position. Alex King’s code sample works in both IE and Mozilla, which each provide different ways for accessing the current cursor position.
Separating behavior and structure
XHTML 1.0 Strict Not Ready For Prime Time?
D. Keith Robinson hosts some excellent discussions on his weblog, and this is one of them. I actually disagree with Keith’s intial post: if I’m going to use XHTML, I use XHTML 1.0 Strict without a second thought because I have no use for any of the features in XHTML Transitional, and so far I’ve emanaged to avoid any strange problems in doing so. I actually prefer HTML 4.01 Strict for general projects, but that’s probably a topic for another post. At any rate, the ensuing discussion on Keith’s blog is well worth perusing.