Category Archives: HTML

Using dl for a Semantic Form

Posted Friday, August 13th, 2010 05:00 am GMT +8 | HTML |

Wufoo's login form

Wufoo’s login form Semantics in forms are one of the things that needs to be talked about, in my opinion, since they are one of the most important parts of a web site. You create/edit user accounts, create/edit blog posts, submit a comment, gather information from your audience, and lots more through them. However, apart from fieldset, we don’t really have a semantic way of marking up a pair of form elements. There are different ways in marking up one’s form: div, p, ul or ol and dl. Because using dl, or definition list, to mark up a form is still unusual even though it’s not exactly a new idea, I will be talking and boring you, unfortunate people, about it here. Understanding the dl element dl is one of the most overlooked element in HTML since, I assume, people mostly associate it with just definition lists, aka glossary. But … Continue reading