Refine preliminary list macro

@pmario: I’ve taken your suggestion and made the HTML element type(s)
be macro parameters.