我已经编写了这个HTML代码,但我想知道:当我点击它时,如何创建一个将我带到另一个页面的图像?
<html>
<title><h2>My personal web</title></h2>
<head></head>
<body>
<a href="www.google.com"></a>
</body>
</html>
答案 0 :(得分:2)
<!--If you have to redirect to internet page -->
<html>
<head></head>
<body>
<a href="www.google.com"><img src="picture.jpg" /></a>
</body>
</html>
<!--If you have to redirect to your own page -->
<html>
<head></head>
<body>
<a href="page1.html"><img src="picture.jpg" /></a>
</body>
</html>