Image Link, Link in New page

Open Link in a new Window
<html>
<body>
<a href =" http://www.javatpoint.info" target="_blank"> Visit C Tutorial</a>
</body>
</html>

Output

C Tutorial 

Note:- a href is a anchor tag. Anchor Tag is used for link. It is necessary to close it e.g. </a>

Use Image as a link
<html>
<body>
<a href = "http://www.google.com">
<img src="d:/home.png" width="104" height="142"></a>
</body>
</html>

OUTPUT










Note This is blog so You click image do not open google. Same coding you write in notepad
You click image. Open Google.com

Previous Page                                                                                                     Next page

No comments:

Post a Comment