<!DOCTYPE html> <html> <head> <title>HTML img Tag</title> </head> <body> <img src="/html/images/test.png" alt="Simply Easy Learning" width="200" height="80"> </body> </html>
// You cannot do it with CSS alone // You can with JS element.style.src = "someImage.jpg"; // Or with jQuery $('some-element').attr('src', 'someImage.jpg');