This is really confusing. What HTML does it generate? I suspect I have a better way to do it, but I can't figure out what this will output.