id function

Attribute<GlobalHTMLAttribute> id(
  1. String value
)

Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS).

Implementation

Attribute<GlobalHTMLAttribute> id(String value) {
  return Attribute('id', value);
}