I have a general question about self-closing tags in HTML. I’m wondering why some elements need to have an opening and closing tag while others are self-closing. For example, the “img” and “video” elements seem quite similar to me, however, one is self-closing while the other is not. I thought self-closing elements were those without content (like line break), but “img” does have content.
Does anyone know?