Run
Online Code Editor
The getAttribute Method
Welcome to the javaTpoint.com
Example of the getAttribute() Method
This is first div element.
This is second div element.
Click me!