# HTML Attributes # # Format: # Lines prefixed with `#` are comments, uninterpreted # Lines matching ([A-Z]+) `::` ALL (except: tags)? define groups of tags # Comma delimited columns: name, tags, description, flags # Tags marked with asterisk (*): attribute is for style purposes only. # # Flag codes: # U :: Currently undefined by our HTML parser provider # Sources # https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes # https://html.spec.whatwg.org/ # https://www.w3.org/TR/xhtml11/ # https://www.w3.org/TR/html4/ # https://www.w3schools.com/tags/ref_attributes.asp CORE :: ALL except: base head html meta param script style title class ,*CORE id ,*CORE a style ,*CORE hidden ,*CORE, hidden element title ,CORE, extra title LANG :: ALL except: base br frame frameset hr iframe param dir ,LANG, Text direction; ltr or rtl lang ,LANG, language_code; also xml:lang GLOBAL :: ALL except: base ,GLOBAL, inherited from xml:base (deprecated) # Meta tag attributes http-equiv ,meta, HTTP Header name content ,meta, text scheme ,meta, format URI # Anchor and link attributes charset ,a link meta, encoding of link or (meta) document coords ,*a, coordinates; i.e. image map hreflang ,a link, language_code of referent href ,a base link, URL media ,a area link name ,a param, section_name anchor rel ,a link rev ,a link shape ,*a target ,*a *base *link type ,a link embed object source # Image and some frame attributes src ,frame img audio embed source data ,object alt ,img area input height ,img picture embed video svg *tr *th *td *iframe *object width ,img picture embed video svg *table *tr *th *td *iframe *object decoding ,img, preferred method to decode, U # Table specific attributes abbr ,tr th align ,table tbody tfoot thead tr td th iframe object axis ,tr th bgcolor ,*table *tbody *tfoot *tr *td *th *col *colgroup *body border ,*table *img *object cellpadding ,*table cellspacing ,*table char ,*tr *td *th charoff ,*tr *td *th colspan ,tr td th frame ,*table headers ,tr td nowrap ,*tr *td *th rowspan ,tr td th rules ,*table scope ,tr td th span ,col colgroup summary ,table valign ,*tr *td value ,data param # Purposefully omitted # -- The event attributes on*, onmouse*, onkey*, etc. # -- data-* accept ,form input, (file) types accepted accept-charset ,form cite ,blockquote del ins q color ,*basefont *font *hr controls ,*audio *video datetime ,del ins time label ,option optgroup