W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] Question aboiut meter element

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 18 Jan 2012 11:44:24 -0800
Message-ID: <CAAWBYDCRtyrS43hGYsNZ9JCCg+_BsQL1iSbwEE2TFU2kBYN0jA@mail.gmail.com>
On Wed, Jan 18, 2012 at 11:37 AM, Mani <manips2002 at gmail.com> wrote:
> I was trying to look at the specification about the meter element. I
> do not see where in the spec it says that a <meter> element MUST have
> a close tag </meter>
> http://www.w3.org/TR/html5/the-button-element.html#the-meter-element
>
> However, I found a reference to such a requirement on other sites:
> https://developer.mozilla.org/en/HTML/Element/meter

All elements require a close tag, unless they are a void element (see
<http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#elements-0>
for the list of void elements).

Some elements inherited from HTML4 can have their end-tags
automatically inserted, but <meter>, being a new HTML5 element, does
not have that.

~TJ
Received on Wednesday, 18 January 2012 11:44:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:39 UTC