1
// replace the first image we see with a cat
2
document.images[0].src = 'http://thecatapi.com/api/images/get?format=src&type=gif';
3
4
// replace the google logo with a cat
5
document.getElementById('lga').innerHTML = '<a href="http://thecatapi.com"><img src="http://thecatapi.com/api/images/get?format=src&type=gif"></a>';
6
xxxxxxxxxx
1
 
1
body {
2
    background-color: skyblue;
3
}
4