Project 1 Tribute page 7 passed

Tribute Page passing 7 tests.

  • div img-div must contain img element
  • img must be centred within parent
    Here is my code. What on earth am I missing?

QueenB Tribute Page (

When a test fails click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.

On a side note, keep all your styling external. Do not use internal styling.

I’m moving this to a more appropriate forum for you.

Thanks. Where do I find the forum you move it to?
How do I find the NULL it is referring to?
Error is:

4. Within the “img-div” element, I should see an element with a corresponding id=“image”.

expected null to not equal null
AssertionError: expected null to not equal null

Null means having or associated with the value zero. That means the test cannot find what it is looking for and it doesn’t expect that.

The failing message says it is expecting to find an element with the id attribute set to a value of image.
Here is your code
<img id="img" src="" alt="Norman Borlaug wrestled at university">

Do you understand why the test is failing?

When you click the ‘New Topic’ button it defaults to opening the the #General sub forum. That would have been okay to use too. I just placed it in the #project-feedback sub forum because you’re working on a project.
The #freeCodeCamp Support sub forum that you originally posted in is for user’s having problems with logging in, certificates, etc.

Eish. I feel so smarrrrt . . . I knew it was something simple.
I saw what I thought instead of what I typed. Silly hey.
Thanks for the (patient) assistance.

1 Like

No worries. Glad to have helped.

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