The HTML spec tells us that id (and name) attributes:

must begin with a letter ([AZ[,]az]) and may be followed by any number of letters, digits ([09]), hyphens (-), underscores (_), colons (:), and periods (.).

I decided to test it out. I duplicated a previous posting and added a paragraph at the very end.

For its identifier, I removed all illegal characters from an entire chapter of my book. That’s 39,209 characters. Yes, it clears the validator.

And you’d probably like to hit a link to that paragraph now, wouldn’t you?

The foregoing posting appeared on Joe Clark’s personal Weblog on 2004.06.06 12:38. This presentation was designed for printing and omits components that make sense only onscreen. (If you are seeing this on a screen, then the page stylesheet was not loaded or not loaded properly.) The permanent link is:

(Values you enter are stored and may be published)



This personal Weblog is unlikely to be updated again until my next book comes out. (See Best postings)

Topics of interest here

Archives by category

Archives by date

Just add /year/month/day/ to the end of site’s URL, blog.fawny.org. You can add just /year/month/, or just /year/, if you wish. Years are four-digit, month and day two-digit (with padding zero below 10). For example:

Copyright © 2004–2022

You enjoy fawny.blog

Transgenderism is to be opposed categorically