当我点击它时,如何制作将我带到另一页的图像?

时间:2016-02-04 14:50:27

标签: html

我已经编写了这个HTML代码,但我想知道:当我点击它时,如何创建一个将我带到另一个页面的图像?

<html>
<title><h2>My personal web</title></h2>
<head></head>
<body> 
    <a href="www.google.com"></a>
</body>
</html>

1 个答案:

答案 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>