<label for="s1" id="slide1"><img class="topCard" src="https://via.placeholder.com/150.png" alt="example"></label>
I want to get "alt" and "src" from img tag in this label by javascript. I had selected the label by javascript and put it in a variable like this:
let label = document.querySelector(selector);
how to get "alt" and "src" from img tag in this label by javascript?