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 -->
body { background-color: black;
color: white;
font-famili: calibri; } 
#img-caption { width: 400px; }
#image { max-width: 100% ;
height: auto;
display: block;}

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

<div id="img-div"> 
  <a id="tribute-link" target="_blank" href="">
  <img id="image src"=" alt="Picture of Vegeta" width="204" height="204">
<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>


<p id="tribute-info"><b> Vegeta Attributes: </b>
<li>Resilience </li>
<li> Fearlessness</li>
<li> Persistence </li>
/* 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/ 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


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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.