Answer:
You can check if an HTML element has a specific attribute using the hasAttribute() method in JavaScript.
You can check if an HTML element has a specific attribute using the hasAttribute() method in JavaScript.
You may be interested in:
Web Fundamental MCQs