In HTML, attributes are always specified in the start tag (opening tag) of an element. End tags (closing tags) cannot contain attributes. This is a fundamental rule of HTML syntax - attributes like id, class, href, src always appear in the opening tag.