HTML Attributes

HTML color attribute

Specifies a color for a supported icon link relationship, such as mask-icon in supporting browsers. It is not a general styling attribute for modern HTML; use CSS instead. Applicable elements include: <link>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.

Formal Syntax & Structure

html syntaxhtml
color="#336699"

Parameters & Attributes

NameTypeDescription
colorCSS colorSpecifies a color for a supported icon link relationship, such as mask-icon in supporting browsers. It is not a general styling attribute for modern HTML; use CSS instead.

Working Example

Example Snippethtml
<link rel="mask-icon" href="icon.svg" color="#336699">
HTML Reference