Tribute Page - Build a Tribute Page

Tell us what’s happening:
I’ve got two issues. When I run my code it says my #tribute-info is empty but I already declared and given values to its attributes and included a descrition, yet it says it’s empty.

The other issue is I can’t get any selector to work in my CSS so I can give the #image the required format. The height is accepted but the rest of the requirements does not run correctly. I’ve tried different options but I don’t know what I’m missing.

Thanks in advance.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <meta charset="utf-8">
  <title id="title">Dr. Norman Borlaug</title>
  <link rel="stylesheet" href="stylesheet.css"/>
  <body>
    <main id="main">
      <div id="img-div">
        <div id="img-caption">
          Dr. Norman Borlaug
          </div>
          <textarea id="tribute-info" name="tribute-info" rows="5" cols="40">Picture of Dr. Norman Borlaug explaining how the new pathology program will work.</textarea>
          <a id="tribute-link" target="_blank" href="google.com">Image link</a>
        <img id="image">
        </img>
        </div>
    </main>
    </body>
  </html>
/* file: styles.css */
img{
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

Your browser information:

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

I don’t think you want to use a textarea for this. Textareas are for inputs and I’m assuming you don’t want user input since this is just displaying content. The test are also assuming this won’t be a textarea so your use of one is throwing them off.

Great, you’re absolutely right. Thank you.

Any idea about the CSS file? Can’t figure out where I’m mistaken.

This is not the correct name for the file.

Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS.”

Unbelievable, I re-read so many times the entire code and didn’t see it. Thank you so much.

1 Like

Happens to all of us.

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