Computer Science, asked by tutejaharsh5, 7 months ago

Write the HTML code to do the following:

To display a horizontal line of green colour.

To create a hyperlink on the word CLICK to an image named testimage.jpeg​

Answers

Answered by Anonymous
2

Answer:

We have seen how to create hypertext link using text and we also learnt how to use images in our webpages. Now, we will learn how to use images to create hyperlinks.

Example

It's simple to use an image as hyperlink. We just need to use an image inside hyperlink at the place of text as shown below −

Live Demo

<!DOCTYPE html>

<html>

<head>

<title>Image Hyperlink Example</title>

</head>

<body>

<p>Click following link</p>

<a href = "https://******.com" target = "_self">

<img src = "/images/logo.png" alt = "Tutorials Point" border = "0"/>

</a>

</body>

</html>

Similar questions