HTML attributes provide additional information about HTML elements and are used to modify the behavior or appearance of elements. They are always included in the opening tag and usually come in name/value pairs like this: name="value"
.
The id attribute isUniquely identifies an element.
The class attribute is Defines one or more class names for an element, which can be used by CSS or JavaScript.
The src attribute is Specifies the source of an image, script, or other external content.
The href Specifies the URL for a link.
The title attribute is adds extra information about the element, usually displayed as a tooltip when hovered over.
The target attribute is specifies where to open a linked document.
The style attribute is contains CSS styling for an element.
The alt attribute is provides alternative text for an image if it cannot be displayed.
The width and height attribute is adjust the width and height of an image in pixels.
The value attribute is specifies the initial value for an input element.
The disable attribute is disables an input element, making it unclickable or uneditable.
The lang attribute in HTML specifies the language of the element's content. It helps search engines and browsers understand the language used in the document