Turn an Image into a Link

Here we'll learn how to Turn an Image into a Link.

You can also make an image as a link, when you are click in image you will redirect to another address which you are give in link. To Turn an Image into a Link follow the below steps:
Step1: Open your text editor or Notepad.
Step2: Write the below code in your editor or notepad.
Step3: Save your document in etc.html format.
Step4: Open in Browser.

For Example:

<html>
<head>
<title> wikibooster </title>
</head>
<body>
<h1> This is wikibooster </h1>
                       <a href="https://www.wikibooster.com"><img src="https://s3.amazonaws.com/freecodecamp/relaxing-cat.jpg" alt=" wikibooster"></a>


</body>
</html>



Output:















Please Share To Other:

Post a Comment

0 Comments