To get the code to show up in a post, you either need to use the </> icon in the post editor, or put 3 backticks (usually the key to the left of the 1 key on a standard keyboard) both before and after the code you wish to share.
As @Mittineague said, the ID attribute must start with a letter, following which a number may be used.
Interesting to know. I did try to get on the w3.org site, but they’re blocking our IP for some reason - not helpful at all for anyone with an interest in web stuff over here.
That spec has gone full circle then. Every reference I found, bar one, said it must start with a letter. The one reference, was Jennifer Robbins’ (nee Niederst) ‘Web Design in a Nutshell’ (O’Reilly 1999, First Edition), which shows an example using only numbers for an ID.
I can see the need for targeting divs by an id number when content is generated by js but it would have been sensible to update the css spec at the same time to match,