- From: Ian Yang <ian@invigoreight.com>
- Date: Mon, 14 Apr 2014 11:16:53 +0800
- To: public-html-comments@w3.org
- Message-ID: <CABr1Fsfc_Rke1SbhPDJ6hFr42mufT+zpNaojz+gaOQz-18V-xQ@mail.gmail.com>
Hi everyone,
How have you been? I hope you are doing well.
In one of my recent projects, I confront the issue that <dl> element lacks
<li> elements again so here I'm bringing up this issue again. Since a
picture is worth a thousand words, here is the url of the design:
http://i.imgur.com/7a8OXwR.png
The design shows that it's basically a pentagon consists of five pairs of
heading-paragraph, which should be coded by using <dl> element. At the
center lies the whole section's main heading and description, which should
be coded by using <header> element. So the HTML tags of this section are:
<section>
<header>
<h2></h2>
<p></p>
</header>
<dl>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>
</section>
As you can see, without <li> elements, there is no easy way to place each
heading-paragraph pair (<dt> and <dl> pair) at each corner. Although we can
still position <dt> and <dl> one by one, I believe no one want to do that.
And from my previous experiences, such contents which should be coded by
using <dl> element are usually designed in a special way. Thus this example
is not an exception.
Personally, I really hope that <dt> and <dd> elements can be grouped inside
of <li>, for a more meaningful HTML markup and also for styling convenience.
Sincerely,
Ian Yang
Received on Monday, 14 April 2014 03:17:22 UTC