Hello everyone,
Been stuck for three days, and just need one more test to complete the task.
I know there are similar posts but none of them seemed to help me. If anyone can advise me on why my code is not passing, namely, the
" Your img
element should have a display
of block
." test.
Code is below:
<!DOCTYPE html>
<html lang="en">
<main id="main">
<head>
<link rel="stylesheet" href="styles.css">
<h1 id="title">Yin & Yang</h1>
</head>
<body>
<div id="img-div">
<a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Yin_and_yang">
<img src="https://avatarfiles.alphacoders.com/210/210299.png"
id="image"
style="max-width:100%"
margin="0 auto"
height:"auto"
max-width:"100%"
display= "block"
>
</a>
<figcaption id="img-caption"> Yin and Yang
</figcaption>
</div>
<p id="tribute-info">
Yin and yang (/jɪn/ and /jæŋ/) is a Chinese philosophical concept that describes opposite but interconnected forces.
</body>
</main>
</html>