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

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

From: brenton strine <whatwg@gmail.com>
Date: Wed, 7 Sep 2016 12:28:09 -0400
Message-ID: <CALgSTaQCu69D3oKYjqCzdSyMN=NMZJZvy+7Tk70Lo-MW4q3Z=Q@mail.gmail.com>
To: "whatwg@whatwg.org" <whatwg@whatwg.org>
For example:

  <label>Tip:</label> You should always use the most semantic element!

Oops, <label> is for inputs, so that's not right! Should I use a <h*>
heading? Doesn't seem right either. Is this a case for <b>? The
specification doesn't mention labels under the <b> definition.

Is there a semantic element that can be used in a situation like this? If
so, I propose adding "label" to the specification for that element.

Then again, maybe this most appropriately a <span>.

Received on Wednesday, 7 September 2016 16:28:59 UTC

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