Input
Output
<!DOCTYPE html> <html> <head> <style> a[target="_blank"] { color: green; } input[required] { border: 2px solid red; } img[src$=".png"] { border: 2px solid blue; } </style> </head> <body> <a href="https://example.com" target="_blank">External Link</a> <a href="https://example.com">Normal Link</a> <br><br> <input type="text" required placeholder="Required Field"> <input type="text" placeholder="Optional Field"> <br><br> <img src="image.png" alt="A PNG image"> <img src="photo.jpg" alt="A JPG image"> </body> </html>