How can I get the colors by clicking a button
HI, I have multiple <p> of colors in a div, I want to get these colors when I click a button exemple: <div id="mots"> <p style = "color:red"> rouge </p> <p style = "color:blue"> bleu </p> <p style = "color:green"> vert </p> <p style = "color:yellow"> jaune </p> <p style = "color:black"> noir </p> <p style = "color:white"> blanc </p> <p style = "color:pink"> rose </p> <p style = "color:purple"> violet </p> <p style = "color:orange"> orange </p> <p style = "color:grey"> gris </p> <p style = "color:brown"> marron </p> <p style = "color:turquoise"> turquoise </p> </div> I have a button.addEventListener...click...function...I know how to do that, but I don't know how to get access to the paragraphs in a div and get those words each time I click the button