This forum is now read-only. Please use our new forums at

Build Your Own Webpage Forum

View Course » View Exercise

612 points
Submitted by
Marat Zabelinskiy
over 4 years ago

Can pass this lesson with a missing end tag

The lesson works with the following syntax
<img src="".

There is no end tag, I believe correct syntax is
<img src="">

Please correct me if I am wrong.

0 votes


this is the correct one:<img src="" />

365 points
Submitted by
Tobias Páez
over 3 years ago

-2 votes


Its best practice to close tags. Sometimes not closing tags can cause unintended results to occur or pages to not display at all.

Saying that html, as opposed to some other languages, is lenient with sometimes tags not being properly closed and your content will still display as intended.

with image tags there should be a closing slash before the closing tag e.g

<img src="" />

1259 points
Submitted by
Guy Stapleton
over 4 years ago

1 Comment

99f8df08f79cf421f1aee0b2f5825d3a?s=140&d=retro Marat Zabelinskiy over 4 years ago

Thanks for that info. What I meant to communicate is that this is a problem - there should be a warning that the code is not correct but there isn't.