<html>
<head>
<script type="text/javascript" src='http://code.jquery.com/jquery-1.5.2.js'></script>
<script type="text/javascript">
$(document).ready(function(){
$("img").attr({
src: "http://www.w3cschool.cn/style/download.png",
title: "w3cschool.cn",
alt: "Logo"
});
$("div").text($("img").attr("alt"));
});
</script>
</head>
<body>
<body>
<img />
<div></div>
</body>
</html>