@E-person you can use Html validator to check your code and code pen analyzer for CSS and HTML which are build in the codepen editor and proved a link to your codepen.
I would suggest you to add a link to your codepen here instead of manually writing your code so it is easier for others to debut it. if your image is not showing, from the snippet you provided it looks like you forgot to close your img tag.
I’ve edited your post for readability. 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.