An attribute is a name-value pair that provides additional information about HTML elements. Boolean attributes indicate true when present. Some common global attributes are class, id, style, and title. Self-closing tags contain both an opening and closing tag. Void elements like <br> and <img> are typically self-closing. Expando attributes can be custom attributes defined by the author. HTML comments are used to provide information to the browser and can be conditional. Special characters have corresponding HTML entities for proper rendering.