Tribute Page - Build a Tribute Page

Tell us what’s happening:
Describe your issue in detail here. I am trying to do the last two steps but have tried everything for the following specifications and it is still failing the test. Can someone help me on the following:

    • Failed: Your img element should have a display of block.
    • Failed:Your #image should have a max-width of 100%.

      Your code so far

/* file: index.html */
<!DOCTYPE html>
<html lang='en'>
 <meta charset='UTF-8'/>
 <meta name='viewport' content='width=device0width, initial-scale=1.0'/>
 <title>FCC Tribute Page</title>
 <link rel='stylesheet' href='layout.CSS'/>
 <main id='main'>
<div id='main'>
 <h1 id='title'>THE MINIONS</h1>
 <div id='img-div'>
   <a id='tribute-link' href='#' target='_blank'/>
   <img alt='Buzzlightyear' src='' id='image'/>
   <figcaption id='img-caption'>The Minions meeting Gru for the first time. </figcaption>

<p><div id='tribute-info'>
  <b> Facts about the Minions</b>
   <li>Minions have 3 fingers in each hand.</li>
   <li>They survive through any adversity; from snowy to sunny climates to even outer space</li>
   <li>The Minions speak Minionese, a combination of multiple languages like Spanish, Italian,French,Russian and Korean Chinese; sometimes even gibberish</li>
/* file: styles.css */
image {
   max-width: 100%;
   display: block;
   height: auto;
   margin: 0 auto;
   **Your browser information:**

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

The selector here is a bit wrong, if you want to select an element by its id, you need to add a hashtag in the beginning. so your selector should be set to #image, not image.

I am having difficulty centering the image. Every other thing is okay. I can’t seem to find the property that centers the image.

i tried that and it didnt work

The site sometimes has trouble checking your code for one thing if there’s an error in your code for another thing that comes before it. I can see such an error in your HTML, so I’d suggest double-checking that.

where about’s?? Cuz I have tried this exercise multiple times where I redid it and everything appears okay apart from these 2 steps

Take a look at your anchor element and ask yourself: what exactly is it telling the user’s browser to do? What are anchor elements supposed to do? What’s the purpose of them? And how do you use them to accomplish that purpose?

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