ive been trying to source an image but it does not work. help
Unclosed <img>
tag,.You need to add a closing slash (“/”) before the closing angle bracket (“>”) of the <img>
tag. This is necessary for self-closing tags in HTML.
1 Like
this screenshot doesnt have closing tags. my mistake. but i did put them after and still didnt work
Just to clarify, you can 100% close an img with the />
but its not required. You can close an img just using > as well
The choice between using a self-closing slash or just the closing angle bracket is a matter of personal preference and coding style. Both methods are accepted and will work correctly. Thank you for pointing out the clarification.
1 Like