HTML
The text in the label appears in italics, representing a range of text with special semantics.Browser support
All major browsers support the hashtag.
Label definition and instructions for use
Define a different part of the text and render it as italic text.
Labels are used to desnase technical terms, idioms in other languages, ideas, spacecraft names, and so on.
When no other semantic element is available, use the element. Other semantic elements are as follows:
- (emphasized text)
- (important text)
- (marked/highlighted text)
- (Title of the work)
- (a defined project)
Tip: The label must be used with the end label.
The difference between HTML 4.01 and HTML5
In HTML 4.01, the label renders italic text. However, this is not necessary in HTML5, and you can use style sheets to format the text in the element.
Global properties
Labels support the global properties of HTML.
The event property
The tag supports the event properties of HTML.