- 1
What tag is used to add an image
this type tag < />
5 Respuestas
+ 3
Well, I was not exactly right, but not exactly wrong also :D
WHATWG specifications says :
<< if the element is one of the void elements, or if the element is a foreign element, then there MAY be a single U+002F SOLIDUS character (/). THIS CHARACTER HAS NO EFFECT ON VOID ELEMENTS, but on foreign elements it marks the start tag as self-closing. >>
https://html.spec.whatwg.org/multipage/syntax.html#start-tags
+ 2
Don't use ending slash ( / ) in empty auto close tags: this isn't valid in all versions of Html, even if this is tolerated by browsers ( this was required only in XHtml branch wich was abandonned )... I'm quiet sure that this comes from a quizz ( course or challenge ), and it's a shame that such questions are validated :P
0
<img src="image.jpg" />
0
img tag❌
img❌
<img>❌
image tag❌
<img />❌
<img> tag❌
😭
<img/>✅
🥳