attrvalue
Attrvalue is the value assigned to an attribute of an element in markup languages such as HTML and XML. An attribute consists of a name and a value, providing extra information about the element, such as a hyperlink target, an identifier, or presentation hints. The attrvalue is used by user agents and processing tools to influence rendering, behavior, or data handling.
Syntax and quoting rules vary by language. In XML, attribute values must be quoted with either double
Data types and constraints also differ. In XML, an attribute value is conceptually a string, but its
Examples illustrate common usage. In HTML: <a href="https://example.com" title="Example site">Example</a> has two attrvalues, "https://example.com" and "Example
Security and best practices emphasize treating attrvalues as potentially user-supplied input. Always escape or validate them