Tribute Page - Build a Tribute Page

Tell us what’s happening:

  • You should have a main element with an id of main.

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

Your code so far

<!-- file: index.html -->
<style>
body { background-color: black;
color: white;
font-famili: calibri; } 
#img-caption { width: 400px; }
#image { max-width: 100% ;
height: auto;
display: block;}


</style>
<div id="main">
<h1 id="title">Vegeta - the true underdog</h1>

<div id="img-div"> 
  <a id="tribute-link" target="_blank" href="https://www.youtube.com/watch?v=0ODnkwFEnWY">
  <img id="image src"=https://www.google.com/search?q=vegeta&rlz=1C5CHFA_enFR939FR940&sxsrf=ALiCzsbLWNRw76Kq582LA6A0EJYfWmp2_Q:1667928450900&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjnls7WjZ_7AhWNgM4BHYsbDwcQ_AUoAXoECAEQAw&biw=1920&bih=1001&dpr=1#imgrc=3LZhTdOi5fmKoM" alt="Picture of Vegeta" width="204" height="204">
</a>https://www.youtube.com/watch?v=0ODnkwFEnWY
<fiqcaption > Vegeta is a symbol, that in hard times, you can become stronger and make something out of yourself. It will be humiliating and shitty at first, but eventually, you will be a power to be rockened with. </fiqcaption>

</div>

<p id="tribute-info"><b> Vegeta Attributes: </b>
<ul>
<li>Resilience </li>
<li> Fearlessness</li>
<li> Persistence </li>
  </ul>
</p>
</div>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

Have you tried to make a main element? (I do not see a main element in your code)

I have a main element

Hi!

Having checked your code, this is a div with a class of main, not a main element.

<div id="main">

I would go though step 5 of the cat photo app lesson again. It covers the main element.

Okay I see, it worked for me

1 Like