What is get attribute used for?

The getAttribute() method is used to obtain the value of an attribute in an html document . In an html code, attribute and its value appear as a key value pair. Some of the commonly known html attributes are disabled, alt, id, href, style, title and src.

Sizin İçin Seçtik  How do you select an element by attribute?

Leave a Reply

Your email address will not be published. Required fields are marked *