The Codex Field component (when used as a fieldset) supports a description below the legend, and an "(optional)" tag as part of the legend, (see Codex docs). HTMLForm has the concept of section labels (which is what is put in the legend), but not section descriptions or optional tags.
- Add options to HTMLForm for descriptions and optional tags for sections
- Override getLegend() in CodexHTMLForm and implement support for them
- (Maybe?) implement support for this in plain HTMLForm and OOUIHTMLForm