label

object label extends Tag with Attr

The <strong>HTML <code><label></code> element</strong> represents a caption for an item in a user interface. menuitem - The name of the command as shown to the user. Required when a <code>command</code> attribute is not present. optgroup - The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used. menu - The name of the menu as shown to the user. Used within nested menus, to provide a label through which the submenu can be accessed. Must only be specified when the parent element is a <a title="The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked." href="/en-US/docs/Web/HTML/Element/menu"><code><menu></code></a> in the <em>context menu</em> state. option - This attribute is text for the label indicating the meaning of the option. If the <code>label</code> attribute isn't defined, its value is that of the element text content. track - A user-readable title of the text track which is used by the browser when listing available text tracks.

trait Attr
trait Tag
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Types

type tagType = tag

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: String): AttrPair[_label_attr]
@inline
def :=(v: Option[String]): OptionalAttrPair[_label_attr]
@inline
def apply(mods: TagMod[tag]*): WithAttrs[tagType]