Problem white image

When I right the code to show an image it doesn’t work even if it is correct but when I copy it from another site the code work even though it s the same code . I don t understand why .

Can you give us a link to your website?

how to copy the code from this CodePen pen