{ "tag_name": "img", "struct_name": "Image", "submodule_name": "embedded", "mdn_link": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img", "has_global_attributes": true, "has_closing_tag": false, "attributes": [ { "name": "alt", "description": "Replacement text for use when images are not available", "field_name": "alt", "ty": "KString" }, { "name": "src", "description": "Address of the resource", "field_name": "src", "ty": "KString" }, { "name": "srcset", "description": "Images to use in different situations, e.g., high-resolution displays, small monitors, etc.", "field_name": "srcset", "ty": "KString" }, { "name": "sizes", "description": "Image sizes for different page layouts", "field_name": "sizes", "ty": "KString" }, { "name": "crossorigin", "description": "How the element handles crossorigin requests", "field_name": "crossorigin", "ty": "KString" }, { "name": "usemap", "description": "Name of image map to use", "field_name": "usemap", "ty": "KString" }, { "name": "ismap", "description": "Whether the image is a server-side image map", "field_name": "ismap", "ty": "KString" }, { "name": "width", "description": "Horizontal dimension", "field_name": "width", "ty": "KString" }, { "name": "height", "description": "Vertical dimension", "field_name": "height", "ty": "KString" }, { "name": "referrerpolicy", "description": "Referrer policy for fetches initiated by the element", "field_name": "referrerpolicy", "ty": "KString" }, { "name": "decoding", "description": "Decoding hint to use when processing this image for presentation", "field_name": "decoding", "ty": "KString" }, { "name": "loading", "description": "Used when determining loading deferral", "field_name": "loading", "ty": "KString" }, { "name": "fetchpriority", "description": "Sets the priority for fetches initiated by the element", "field_name": "fetchpriority", "ty": "KString" }, { "name": "role", "description": "Describes the role(s) the current element plays in the context of the document.", "field_name": "role", "ty": "KString" }, { "name": "aria-atomic", "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.", "field_name": "aria_atomic", "ty": "Bool" }, { "name": "aria-braillelabel", "description": "Defines a string value that labels the current element, which is intended to be converted into Braille. See related aria-label.", "field_name": "aria_braille_label", "ty": "KString" }, { "name": "aria-brailleroledescription", "description": "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. See related aria-roledescription.", "field_name": "aria_braille_role_description", "ty": "KString" }, { "name": "aria-busy", "description": "Indicates an element is being modified and that assistive technologies could wait until the modifications are complete before exposing them to the user.", "field_name": "aria_busy", "ty": "Bool" }, { "name": "aria-checked", "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets. See related aria-pressed and aria-selected.", "field_name": "aria_checked", "ty": "KString" }, { "name": "aria-controls", "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element. See related aria-owns.", "field_name": "aria_controls_elements", "ty": "KString" }, { "name": "aria-current", "description": "Indicates the element that represents the current item within a container or set of related elements.", "field_name": "aria_current", "ty": "KString" }, { "name": "aria-describedby", "description": "Identifies the element (or elements) that describes the object. See related aria-labelledby and aria-description.", "field_name": "aria_described_by_elements", "ty": "KString" }, { "name": "aria-description", "description": "Defines a string value that describes or annotates the current element. See related aria-describedby.", "field_name": "aria_description", "ty": "KString" }, { "name": "aria-details", "description": "Identifies the element (or elements) that provide additional information related to the object. See related aria-describedby.", "field_name": "aria_details_elements", "ty": "KString" }, { "name": "aria-disabled", "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. See related aria-hidden and aria-readonly.", "field_name": "aria_disabled", "ty": "Bool" }, { "name": "aria-dropeffect", "description": "[Deprecated in ARIA 1.1] Indicates what functions can be performed when a dragged object is released on the drop target.", "field_name": "aria_drop_effect", "ty": "KString" }, { "name": "aria-errormessage", "description": "Identifies the element (or elements) that provides an error message for an object. See related aria-invalid and aria-describedby.", "field_name": "aria_error_message_elements", "ty": "KString" }, { "name": "aria-expanded", "description": "Indicates whether a grouping element owned or controlled by this element is expanded or collapsed.", "field_name": "aria_expanded", "ty": "Bool" }, { "name": "aria-flowto", "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.", "field_name": "aria_flow_to_elements", "ty": "KString" }, { "name": "aria-grabbed", "description": "[Deprecated in ARIA 1.1] Indicates an element's \"grabbed\" state in a drag-and-drop operation.", "field_name": "aria_grabbed", "ty": "Bool" }, { "name": "aria-haspopup", "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.", "field_name": "aria_has_popup", "ty": "KString" }, { "name": "aria-hidden", "description": "Indicates whether the element is exposed to an accessibility API. See related aria-disabled.", "field_name": "aria_hidden", "ty": "Bool" }, { "name": "aria-invalid", "description": "Indicates the entered value does not conform to the format expected by the application. See related aria-errormessage.", "field_name": "aria_invalid", "ty": "KString" }, { "name": "aria-keyshortcuts", "description": "Defines keyboard shortcuts that an author has implemented to activate or give focus to an element.", "field_name": "aria_key_shortcuts", "ty": "KString" }, { "name": "aria-label", "description": "Defines a string value that labels the current element. See related aria-labelledby.", "field_name": "aria_label", "ty": "KString" }, { "name": "aria-labelledby", "description": "Identifies the element (or elements) that labels the current element. See related aria-label and aria-describedby.", "field_name": "aria_labelled_by_elements", "ty": "KString" }, { "name": "aria-level", "description": "Defines the hierarchical level of an element within a structure.", "field_name": "aria_level", "ty": "Integer" }, { "name": "aria-live", "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.", "field_name": "aria_live", "ty": "KString" }, { "name": "aria-orientation", "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.", "field_name": "aria_orientation", "ty": "KString" }, { "name": "aria-owns", "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related aria-controls.", "field_name": "aria_owns_elements", "ty": "KString" }, { "name": "aria-posinset", "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-setsize.", "field_name": "aria_pos_in_set", "ty": "Integer" }, { "name": "aria-pressed", "description": "Indicates the current \"pressed\" state of toggle buttons. See related aria-checked and aria-selected.", "field_name": "aria_pressed", "ty": "KString" }, { "name": "aria-readonly", "description": " Indicates that the element is not editable, but is otherwise operable. See related aria-disabled.", "field_name": "aria_read_only", "ty": "Bool" }, { "name": "aria-relevant", "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related aria-atomic.", "field_name": "aria_relevant", "ty": "KString" }, { "name": "aria-required", "description": "Indicates that user input is required on the element before a form can be submitted.", "field_name": "aria_required", "ty": "Bool" }, { "name": "aria-roledescription", "description": "Defines a human-readable, author-localized description for the role of an element.", "field_name": "aria_role_description", "ty": "KString" }, { "name": "aria-selected", "description": "Indicates the current \"selected\" state of various widgets. See related aria-checked and aria-pressed.", "field_name": "aria_selected", "ty": "Bool" }, { "name": "aria-setsize", "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related aria-posinset.", "field_name": "aria_set_size", "ty": "Integer" }, { "name": "aria-valuemax", "description": "Defines the maximum allowed value for a range widget.", "field_name": "aria_value_max", "ty": "Float" }, { "name": "aria-valuemin", "description": "Defines the minimum allowed value for a range widget.", "field_name": "aria_value_min", "ty": "Float" }, { "name": "aria-valuenow", "description": "Defines the current value for a range widget. See related aria-valuetext.", "field_name": "aria_value_now", "ty": "Float" }, { "name": "aria-valuetext", "description": "Defines the human readable text alternative of aria-valuenow for a range widget.", "field_name": "aria_value_text", "ty": "KString" } ], "dom_interface": "HTMLImageElement", "content_categories": [ "Flow", "Phrasing", "Embedded", "Interactive", "Palpable" ], "permitted_child_elements": [] }