i want to resize all the images inside div test but its not working here the script and html
<script type="text/javascript">
function x(){
var yourdiv = document.getElementById('test');
var yourImg = decoument.getElementsByTagName('img');
yourImg.style.height = '400px';
yourImg.style.width = '300px';
}
</script>
<div id="test">
<img alt='' src='imges/book1.jpg' />
<img alt='' src='imges/book2.jpg' />
</div>
document.getElementsByTagName('img');returns a node list not a single element