diff options
Diffstat (limited to 'devdocs/html/element%2Fimage.html')
| -rw-r--r-- | devdocs/html/element%2Fimage.html | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/devdocs/html/element%2Fimage.html b/devdocs/html/element%2Fimage.html new file mode 100644 index 00000000..4fc73b2a --- /dev/null +++ b/devdocs/html/element%2Fimage.html @@ -0,0 +1,55 @@ +<header><h1><image>: The Image element</h1></header><div class="section-content"> +<div class="notecard deprecated" id="sect1"><p><strong>Deprecated:</strong> This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the <a href="#browser_compatibility">compatibility table</a> at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.</p></div> +<div class="notecard nonstandard" id="sect2"><p><strong>Non-standard:</strong> This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.</p></div> <p> The <code><image></code> <a href="../index">HTML</a> element is an ancient and poorly supported precursor to the <a href="img"><code><img></code></a> element. <strong>It should not be used</strong>. </p> <p>Some browsers will attempt to automatically convert this into an <a href="img"><code><img></code></a> element, and may succeed if the <a href="img#src"><code>src</code></a> attribute is specified as well.</p> +</div> +<h2 id="specifications">Specifications</h2> +<div class="section-content"><p> This does not appear to have been part of any formal specification. It was mentioned in <a href="https://www.w3.org/MarkUp/HTMLPlus/htmlplus_21.html" target="_blank">HTML+ Discussion Document - Dave Raggett, November 8, 1993</a> (Section 5.9 - Images), but was not part of the first revision of <a href="https://datatracker.ietf.org/doc/html/draft-ietf-html-spec-00" target="_blank">HyperText Markup Language Specification - 2.0</a> in 1994. </p></div> +<h2 id="browser_compatibility">Browser compatibility</h2> +<div class="_table"><table> +<thead> +<tr id="bct-browser-type"> +<th></th> +<th colspan="6">Desktop</th> +<th colspan="6">Mobile</th> +</tr> +<tr id="bct-browsers"> +<th></th> +<th>Chrome</th> +<th>Edge</th> +<th>Firefox</th> +<th>Internet Explorer</th> +<th>Opera</th> +<th>Safari</th> +<th>WebView Android</th> +<th>Chrome Android</th> +<th>Firefox for Android</th> +<th>Opera Android</th> +<th>Safari on IOS</th> +<th>Samsung Internet</th> +</tr> +</thead> +<tbody><tr> +<th><code>image</code></th> +<td class="bc-supports-yes">1</td> +<td class="bc-supports-yes">79</td> +<td class="bc-supports-yes"><details><summary>1</summary>Before Firefox 22, creating an <image> element incorrectly resulted in an <code>HTMLSpanElement</code> object, instead of the expected <code>HTMLElement</code>.</details></td> +<td class="bc-supports-no">No</td> +<td class="bc-supports-yes">15</td> +<td class="bc-supports-yes">1</td> +<td class="bc-supports-yes">4.4</td> +<td class="bc-supports-yes">18</td> +<td class="bc-supports-yes"><details><summary>4</summary>Before Firefox 22, creating an <image> element incorrectly resulted in an <code>HTMLSpanElement</code> object, instead of the expected <code>HTMLElement</code>.</details></td> +<td class="bc-supports-yes">14</td> +<td class="bc-supports-yes">1</td> +<td class="bc-supports-yes">1.0</td> +</tr></tbody> +</table></div> +<h2 id="see_also">See also</h2> +<div class="section-content"><ul> <li> +<a href="img"><code><img></code></a>: The correct way to display an image in a document</li> <li> +<a href="picture"><code><picture></code></a>: A more powerful correct way to display an image in a document</li> </ul></div><div class="_attribution"> + <p class="_attribution-p"> + © 2005–2023 MDN contributors.<br>Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.<br> + <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/image" class="_attribution-link">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/image</a> + </p> +</div> |
