[racket] xexpr to mark a radio button 'checked'
On 2011 Apr 27, at 23:11, J G Cho wrote:
> I am trying to print:
> <div><input type="radio" name="n-4-answer" value="2" checked>the egg</div>
As other responders mentioned, this isn't valid XML.
For what it's worth, the nearest thing to a 'best practice' in this case is probably checked='checked'. I can't recall chapter and verse (which in any case wouldn't really be relevant in an HTML world), but that's the nearest thing to the SGML pattern which preceded it.
Best wishes,
Norman
--
Norman Gray : http://nxg.me.uk