querySelector

open fun <T : HTMLElement> querySelector(selectors: HtmlTagName<T>): T?(source)

Returns the first element that is a descendant of node that matches selectors.

MDN Reference


open fun <T : SVGElement> querySelector(selectors: SvgTagName<T>): T?(source)
open fun <T : MathMLElement> querySelector(selectors: MathMLTagName<T>): T?(source)
open fun querySelector(selectors: String): Element?(source)