image.src = 'http://placekitten.com/200/300'; image.width = 250; image.classList.add('cute'); image.alt = 'Cute Kitten';
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter