Tribute Page - Build a Tribute Page

Tell us what’s happening:
I think i did all the topics but when i run the tests thera are these points which are not proofed:

  1. Your #img-div , #image , #img-caption , #tribute-info , and #tribute-link should all be descendants of #main .

  2. You should have a figcaption or div element with an id of img-caption .

  • but i think i have a figcaption element inside the figure element and named correctly
  1. Your #img-caption should be a descendant of #img-div .
  • my figcaption is inside the figure element with the name img -div and i also named the figcaption img-caption
  1. Failed:Your #img-caption should not be empty.
  • my figcaption with id=“img-caption” is not empty,
    I don’t really know where my mistakes are, can anybody give me a hint or help me?
    Thanks
    Irina

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="tribute page" content="tribute page freecodecamp project" />
    <title>Stephen Hawking</title>
    <link rel="stylesheet" href="styles.css"/>
  </head>
  <body>
    <main id="main">
      <h1 id="title">Stephen Hawking</h1>
      <p>The black hole man</p>
      <figure id="img-div">
        <img id="image" src="stephen_hawking.jpg>
          <figcaption id="img-caption" align="center" ><i>Stephen Hawking</i></figcaption>
      </figure>
      <section id="tribute-info">
        <h3>Here is a short description of his life</h3>
        <ul>
          <li class="list-element"><strong>1930</strong>
          born in ...</li>
          <li class="list-element"><strong>1930</strong>
          born in ...</li>
          <li class="list-element"><strong>1930</strong>
          born in ...</li>
          <h4>Just have a look here
        <a id="tribute-link" href="https://de.wikipedia.org/wiki/Stephen_Hawking" target="_blank">Wikipedia</a></h4>
  </section>
   

  </body>
</html>
/* file: styles.css */
body {
  background: #477bA4;
  color: white;
  font-family: Candara;
  margin: 0;
}

h1,p {
  text-align:center;
text-decoration:underline;
}
p {
  font-size:20px;
}
h1 {
  text-transform:uppercase;
}
h3 {
  text-align:center;
  margin:10px;
  padding:10px 0 0 0;
}
img {
  display:block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;

}
.list-element   {
  text-align:left;
  padding:5px; 

}
a:hover {
  color:rgb(0,255,0);
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.42

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

Hi Irina!

  1. Probably adding </main> closing tag would solve these.
  2. You are missing closing " on you img src. This should probably solve everything else.

Tip, note the colors on every other id=“#” and the one in figcaption to note these errors, as well as the < color.

Hi yunsuklee,

thanks you are great. just this little mistake…
in Germany we say: Sometimes you could’t see the forest with that many trees…
:wink:

Haha absolutely! The more you practice the more you’ll be able to see :wink: