Element.get_id# Element.get_id()[source]# Gets the id attribute of the HTML element. Returns: str – If the attribute exists. None – If the attribute does not exist.