Hi.
Can anyone help me please? I’m new to html and trying to teach myself.
I have a html tab which displays an image (image1) with two buttons on it which takes me to image2 and image3
I’m wanting to place a button on image2 and 3 when pressed will close the tab and go back to image1.
But I can’t manage to put a button on the linked images
Here is what I have so far
<!DOCTYPE html>
<html lang="en"
<head>
<meta charset="UTF-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
<title>Button</title>
<link rel="stylesheet" href="styles.css" >
<title>RD LOGO</title>
</head>
<body
<div class="container">
<img src="image1.jpg">
<button class="btn">image1</button>
<a href="C:\Users\iain\Desktop\HTML\image2.jpg" target "_blank">
<button class="btn">image2</button>
</a>
<a href="C:\Users\iain\Desktop\HTML\image3.jpg" target "_blank">
<button class="btn2">image3</button>
</div>
</body>
</html>
Can anyone help me please? I’m new to html and trying to teach myself.
I have a html tab which displays an image (image1) with two buttons on it which takes me to image2 and image3
I’m wanting to place a button on image2 and 3 when pressed will close the tab and go back to image1.
But I can’t manage to put a button on the linked images
Here is what I have so far
<!DOCTYPE html>
<html lang="en"
<head>
<meta charset="UTF-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
<title>Button</title>
<link rel="stylesheet" href="styles.css" >
<title>RD LOGO</title>
</head>
<body
<div class="container">
<img src="image1.jpg">
<button class="btn">image1</button>
<a href="C:\Users\iain\Desktop\HTML\image2.jpg" target "_blank">
<button class="btn">image2</button>
</a>
<a href="C:\Users\iain\Desktop\HTML\image3.jpg" target "_blank">
<button class="btn2">image3</button>
</div>
</body>
</html>