Inconsistent html tag completion

Hi,

I was trying the autocomplete behavior with Try CodeMirror and noticed this

It closes as long as I type “>”:

Which is reasonable to me. However, it is not consistent for all tags, for example:

This won’t close; I cannot find a pattern to describe this inconsistency. Is this by design?

Thanks!

<img>, like <br> and a number of other tags, requires no closing tag in HTML.

Haha that is right, I cannot believe I’ve just asked a dumb question like this. Sorry for wasting your time!