{ "tag_name": "main", "struct_name": "Main", "submodule_name": "text", "mdn_link": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main", "has_global_attributes": true, "has_closing_tag": true, "attributes": [ { "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-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-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-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-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-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-roledescription", "description": "Defines a human-readable, author-localized description for the role of an element.", "field_name": "aria_role_description", "ty": "KString" } ], "dom_interface": "HTMLElement", "content_categories": [ "Flow", "Palpable" ], "permitted_child_elements": [ "Abbreviation", "Address", "Anchor", "Article", "Aside", "Audio", "BidirectionalIsolate", "BidirectionalTextOverride", "BlockQuote", "Bold", "Button", "Canvas", "Cite", "Code", "Data", "DataList", "Definition", "DeletedText", "DescriptionList", "Details", "Dialog", "Division", "Embed", "Emphasis", "Fieldset", "Figure", "Footer", "Form", "Header", "Heading1", "Heading2", "Heading3", "Heading4", "Heading5", "Heading6", "HeadingGroup", "Iframe", "Image", "ImageMap", "ImageMapArea", "Input", "InsertedText", "Italic", "KeyboardInput", "Label", "LineBreak", "LineBreakOpportunity", "Link", "Main", "MarkText", "Menu", "Meta", "Meter", "Navigation", "NoScript", "Object", "OrderedList", "Output", "Paragraph", "Picture", "PreformattedText", "Progress", "Quotation", "RubyAnnotation", "SampleOutput", "Script", "Search", "Section", "Select", "SideComment", "Slot", "Span", "StrikeThrough", "Strong", "SubScript", "SuperScript", "Table", "Template", "Text", "TextArea", "ThematicBreak", "Time", "Underline", "UnorderedList", "Variable", "Video" ] }