My code looks right, but the tests say it’s wrong…
I am doing one of the certification projects for responsive web design; I’m supposed to build a tribute page. I’ve passed all the tests except two near the end. The console says:
“Your img element should have a display of block.
Your #image should have a max-width of 100%.”
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
My code looks right, but the tests say it’s wrong. I am doing one of the certification projects for responsive web design; I’m supposed to build a tribute page. I’ve passed all the tests except two near the end. The console says:
// running tests
Your img element should have a display of block.
Your #image should have a max-width of 100%.
// tests completed
Here is my HTML.
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title>Tribute Page</title>
</head>
<main id="main">
<h1 id="title">Rev. Samuel A. Crowther</h1>
<figure id="img-div">
<img id="image" src="https://photos.app.goo.gl/fqVgoSEm67qJ91dJ8" alt="Rev. Samuel A. Crowther" />
<figcaption id="img-caption">(Blank)</figcaptionl>
</figure>
<h2 id="tribute-info">Outline Of Rev. Crowther's Life:</h2>
<p>BlankSpot</p>
<p>To learn more about Rev. Samuel Crowther access
<a id="tribute-link" target="_blank" href="https://www.bu.edu/missiology/missionary-biography/c-d/crowther-samuel-adjai-or-ajayi-c-1807-1891/">this link.</a>
</p>
</main>