Tell us what’s happening:
Working on my Tribute page. For some reason, I am having a problem with it getting my <a>
element
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Stan Lee</title>
</head>
<h1 id="title">Stan Lee</h1>
<main id="main">
<div id="img-div">
<img id="image" src="https://en.wikipedia.org/wiki/Stan_Lee#/media/File:Stan_Lee_by_Gage_Skidmore_3.jpg" alt="Stan Lee">
<div id="img-caption">Stan Lee</div>
<p id="tribute-link">Stan Lee</p>
<ul>
<li>Birth Name: Stanley Martin Lieber</li>
<li>Born Dec 28th, 1922</li>
<li>Died: Nov 12th, 2018</li>
</ul>
<p>Click
<a id="tribute-link" href="https://en.wikipedia.org/wiki/Stan_Lee" target="_blank">here</a> to learn more about Stan Lee</p>
<p id="tribute-info">Info of tribute</p>
</div>
<img id="image" src="https://en.wikipedia.org/wiki/Stan_Lee#/media/File:Stan_Lee_by_Gage_Skidmore_3.jpg" alt="Stan Lee">
</main>
/* file: styles.css */
#image{
max-width:100%;
height: auto;
margin: auto
}
img{
display: block
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Challenge Information:
Tribute Page - Build a Tribute Page