- 1

What tag is used to add an image

this type tag < />

25th Feb 2017, 7:41 PM
Devendra Kanade
Devendra Kanade - avatar
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
6th Mar 2018, 3:50 PM
visph
visph - avatar
+ 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
26th Feb 2017, 8:03 AM
visph
visph - avatar
0
<img src="image.jpg" />
25th Feb 2017, 7:44 PM
ashutosh mishra
ashutosh mishra - avatar
0
img tag❌ img❌ <img>❌ image tag❌ <img />❌ <img> tag❌ 😭 <img/>✅ 🥳
31st Oct 2023, 5:54 AM
Bharathi Pravallika✌🏻
Bharathi Pravallika✌🏻 - avatar