Why does some code affects others even after the closing tag.
For example, in the code below i want to make one img border green and the other black, but it just takes the most recent setting and applies it to all img. How can i solve this problem? <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <style> img { border: 5px solid #51BE00; } </style> <img src="https://assets-prd.ignimgs.com/2022/08/17/top25animecharacters-blogroll-1660777571580.jpg" hight="100%" width="70%" alt="Example Image"> <style> img { border: 5px solid #51BE00; } </style> <img src="https://assets-prd.ignimgs.com/2022/08/17/top25animecharacters-blogroll-1660777571580.jpg" hight="100%" width="70%" alt="Example Image"> </body> </html>