getAttribute

fun getAttribute(qualifiedName: String): String?(source)

The getAttribute() method of the Element interface returns the value of a specified attribute on the element.

MDN Reference