W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2016

Re: [whatwg] What's the element for a paragraph label?

From: Kevin Marks <kevinmarks@gmail.com>
Date: Thu, 8 Sep 2016 11:38:29 -0700
Message-ID: <CAD6ztsogjBGmSxY2-dUX_bprQV8aPB5aQ2XXs0vEc_BFxKubOQ@mail.gmail.com>
To: David Singer <singer@apple.com>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>
On Thu, Sep 8, 2016 at 10:40 AM, David Singer <singer@apple.com> wrote:
> I am guessing that he'd like a consistent way to style the terms in a ‘definition of terms’ section, the acronyms in a ‘list of acronyms’ section, and so on.
>
> <div>
>  <h>defined terms</h>
>  <p><thingbeingdefined>Fruit</thingbeingdefined>: delicious stuff that falls from trees</p>
>  …
> </div>
> <div>
>  <h>acronyms</h>
>  <p><thingbeingdefined>OTT</thingbeingdefined>: lit. Over the Top, figuratively meaning something excessive</p>
>  …
> </div>
>

What is this random xml? We have long had elements for exactly this purpose:

<section>
 <h2>defined terms</h2>
 <dl><dt>Fruit</dt><dd>delicious stuff that falls from trees</dd>
 …
</dl>
</section>
<section>
 <h2>acronyms</h2>
 <dl><dt><abbr title="Over the Top">OTT</abbr></dt><dd> lit. Over the
Top, figuratively meaning something excessive</dd>
 …
</dl>
</section>

(there was <acronym> too, but <abbr> is now recommended instead.
Received on Thursday, 8 September 2016 18:38:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:39 UTC