Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 798035 of <img>

  • 리비전 슬러그: Web/HTML/Element/img
  • 리비전 제목: <img>
  • 리비전 아이디: 798035
  • 제작일시:
  • 만든이: azunyan3
  • 현재 리비전인가요?
  • 댓글

리비전 내용

개요

HTML Image 요소 (<img>) 는 문서의 이미지를 나타냅니다.

사용 주의:
Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with vision impairments), if the user chooses not to display images, or if the browser is unable to display the image because it is invalid or an unsupported type. In these cases, the browser may replace the image with the text defined in this element's alt attribute.

  • 컨텐츠 범주 플로우 컨텐츠, 구문 컨텐츠, embedded content, palpable 컨텐츠. 만약 요소가 {{htmlattrxref("usemap", "img")}} 속성을 가질경우, 상호작용 컨텐츠에도 포함됨.
  • 허용된 컨텐츠 없음, 이것은 {{Glossary("empty element")}}.
  • 태그 생략 시작 태그는 필수적이며, 종료 태그는 있어서는 안됨.
  • 허용된 부모 요소 embedded 컨텐츠를 허용하는 요소
  • DOM 인터페이스 {{domxref("HTMLImageElement")}}

속성

이 요소는 전역 속성을 포함합니다.

{{htmlattrdef("align")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}} Use the {{cssxref('vertical-align')}} CSS property
The alignment of the image with respect to its surrounding context.
{{htmlattrdef("alt")}}
이 요소는 이미지를 묘사하는 대안 글자를 정의합니다. 이미지 URL이 잘못되거나, 지원되지 않는 이미지거나, 이미지가 아직 다운로드 되지않았을떄 유저가 이 글자를 보게 됩니다.

Usage note: Omitting this attribute indicates that the image is a key part of the content, but no textual equivalent is available. Setting this attribute to the empty string indicates that this image is not a key part of the content; non-visual browsers may omit it from rendering.

{{htmlattrdef("border")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}}
이미지 주위의 경계의 두께
{{htmlattrdef("crossorigin")}} {{HTMLVersionInline(5)}}
This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. CORS-enabled images can be reused in the {{HTMLElement("canvas")}} element without being tainted. The allowed values are:
anonymous
A cross-origin request (i.e., with Origin: HTTP header) is performed. But no credential is sent (i.e., no cookie, no X.509 certificate, and no HTTP Basic authentication is sent). If the server does not give credentials to the origin site (by not setting the Access-Control-Allow-Origin: HTTP header), the image will be tainted and its usage restricted.
use-credentials
A cross-origin request (i.e., with Origin: HTTP header) performed with credential is sent (i.e., a cookie, a certificate, and HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through Access-Control-Allow-Credentials: HTTP header), the image will be tainted and its usage restricted.
When not present, the resource is fetched without a CORS request (i.e., without sending the Origin: HTTP header), preventing its non-tainted usage in {{HTMLElement('canvas')}} elements. If invalid, it is handled as if the enumerated keyword anonymous was used. See CORS settings attributes for additional information.
{{htmlattrdef("height")}}
The intrinsic height of the image in {{HTMLVersionInline(5)}} CSS pixels, or {{HTMLVersionInline(4)}} in pixels or as a percentage.
{{htmlattrdef("hspace")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}}
The number of pixels of white space to insert to the left and right of the image.
{{htmlattrdef("ismap")}}
This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.

Usage note: This attribute is allowed only if the <img> element is a descendant of an {{htmlelement("a")}} element with a valid {{htmlattrxref("href","a")}} attribute.

{{htmlattrdef("longdesc")}}{{HTMLVersionInline(4)}} only
The URL of a description of the image to be displayed, which supplements the alt text. In {{HTMLVersionInline(5)}}, use a regular {{HTMLElement("a")}} element to link to the description.
{{htmlattrdef("name")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}}
A name for the element. It is supported in {{HTMLVersionInline(4)}} only for backward compatibility. Use the id attribute instead.
{{htmlattrdef("sizes")}}{{HTMLVersionInline(5)}}
A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:
  1. a media condition. This must be omitted for the last item.
  2. a source size value.

Source size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the srcset attribute, when those sources are described using width ('w') descriptors. The selected source size affects the intrinsic size of the image (the image’s display size if no CSS styling is applied). If the srcset attribute is absent, or contains no values with a width descriptor, then the sizes attribute has no effect.

{{htmlattrdef("src")}}
이미지 URL. 이 속성은 <img> 요소에 필수적입니다. On browsers supporting srcset, src is treated like a candidate image with a pixel density descriptor 1x unless an image with this pixel density descriptor is already defined in srcset or srcset contains 'w' descriptors.
 
{{htmlattrdef("srcset")}}{{HTMLVersionInline(5)}}
A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:
  1. a URL to an image,
  2. optionally, whitespace followed by one of:
    • a width descriptor, that is a positive integer directly followed by 'w'. The width descriptor is divided by the source size given in the sizes attribute to calculate the effective pixel density.
    • a pixel density descriptor, that is a positive floating point number directly followed by 'x'.

If no descriptor is specified, the source is assigned the default descriptor: 1x.

It is invalid to mix width descriptors and pixel density descriptors in the same srcset attribute. Duplicate descriptors (for instance, two sources in the same srcset which are both described with '2x') are invalid, too.

User agents are given discretion to choose any one of the available sources. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions.

{{htmlattrdef("width")}}
The intrinsic width of the image in {{HTMLVersionInline(5)}} CSS pixels, or {{HTMLVersionInline(4)}} in pixels or as a percentage.
{{htmlattrdef("usemap")}}
The partial URL (starting with '#') of an image map associated with the element.

Usage note: You cannot use this attribute if the <img> element is a descendant of an {{htmlelement("a")}} or {{HTMLElement("button")}} element.

{{htmlattrdef("vspace")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}}
The number of pixels of white space to insert above and below the image.

지원되는 이미지 포맷

The HTML standard doesn't give a list of image formats that must be supported, so each user agent supports a different set of formats. Gecko supports:

  • JPEG
  • GIF, including animated GIFs
  • PNG
  • APNG {{gecko_minversion_inline("1.9.2")}}
  • SVG {{gecko_minversion_inline("2.0")}}
  • BMP
  • BMP ICO
  • PNG ICO {{gecko_minversion_inline("9.0")}}

참고:
Gecko 1.9.2.에서 XBM의 지원이 중단되었습니다.

CSS와 상호작용하기

Regarding CSS, an <img> is a replaced element. It has no baseline, so when images are used in an inline formatting context with {{cssxref("vertical-align")}}: baseline, the bottom of the image will be posed on the container's baseline.

Depending on its type, an image may have an intrinsic width and height, but will not necessarily have them. For instance, SVG images have no intrinsic dimensions.

예제 1

<img src="mdn-logo-sm.png" alt="MDN">

MDN

<a href="https://developer.mozilla.org/"><img src="mdn-logo-sm.png" alt="MDN"></a>

MDN

예제 3: srcset 속성 사용하기

The src attribute is a 1x candidate in user agents that support srcset.

 <img src="mdn-logo-sm.png" 
      alt="MDN" 
      srcset="mdn-logo-HD.png 2x">

예제 4: srcsetsizes 속성 사용하기

The src attribute is ignored in user agents that support srcset when using 'w' descriptors. When the (min-width: 600px) media condition matches, the image will be 200px wide, otherwise it will be 50vw wide (50% of the viewport width).

 <img src="clock-demo-thumb-200.png" 
      alt="Clock" 
      srcset="clock-demo-thumb-200.png 200w, clock-demo-thumb-400.png 400w"
      sizes="(min-width: 600px) 200px, 50vw">

사양

사양 상태 주석
{{SpecName('HTML WHATWG', 'embedded-content.html#the-img-element', '<img>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-img-element', '<img>')}} {{Spec2('HTML5 W3C')}}  
{{SpecName('HTML4.01', 'struct/objects.html#h-13.2', '<img>')}} {{Spec2('HTML4.01')}}  

브라우저 적합성

{{CompatibilityTable}}

기능 Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
srcset attribute {{CompatChrome(34.0)}} {{CompatGeckoDesktop("32.0")}} (behind a pref) {{CompatNo}} {{CompatOpera(21)}} {{CompatSafari(7.1)}}
기능 Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
srcset attribute Chrome 34 {{CompatNo}} {{CompatNo}} 21 iOS 8

같이 보기

  • {{HTMLElement("picture")}}, {{HTMLElement("object")}}, {{HTMLElement("embed")}} 요소들
{{HTMLRef}}

리비전 소스

<h2 id="Summary">개요</h2>

<p><em>HTML Image 요소 </em>(<strong>&lt;img&gt;</strong>) 는 문서의 이미지를 나타냅니다.</p>

<div class="note">
<p><strong>사용 주의:</strong><br />
 Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with vision impairments), if the user chooses not to display images, or if the browser is unable to display the image because it is invalid or an <a href="#Supported_image_formats" title="HTML/Element/Img#Supported_Image_Formats">unsupported type</a>. In these cases, the browser may replace the image with the text defined in this element's <strong>alt</strong> attribute.</p>
</div>

<ul class="htmlelt">
 <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">컨텐츠 범주</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">플로우 컨텐츠</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">구문 컨텐츠</a>, embedded content, palpable 컨텐츠. 만약 요소가 {{htmlattrxref("usemap", "img")}} 속성을 가질경우, 상호작용 컨텐츠에도 포함됨.</li>
 <li><dfn>허용된 컨텐츠</dfn> 없음, 이것은 {{Glossary("empty element")}}.</li>
 <li><dfn>태그 생략</dfn> 시작 태그는 필수적이며, 종료 태그는 있어서는 안됨.</li>
 <li><dfn>허용된 부모 요소</dfn> embedded 컨텐츠를 허용하는 요소</li>
 <li><dfn>DOM 인터페이스</dfn> {{domxref("HTMLImageElement")}}</li>
</ul>

<h2 id="Attributes">속성</h2>

<p><span style="line-height:21px">이 요소는 </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">전역 속성</a>을 포함합니다.</p>

<dl>
 <dt>{{htmlattrdef("align")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}} Use the {{cssxref('vertical-align')}} CSS property</dt>
 <dd>The alignment of the image with respect to its surrounding context.</dd>
 <dt>{{htmlattrdef("alt")}}</dt>
 <dd>이 요소는 이미지를 묘사하는 대안 글자를 정의합니다. 이미지 URL이 잘못되거나, <a href="#Supported_image_formats" title="HTML/Element/Img#Supported image formats">지원되지 않는 이미지</a>거나, 이미지가 아직 다운로드 되지않았을떄 유저가 이 글자를 보게 됩니다.
 <div class="note">
 <p><strong>Usage note: </strong>Omitting this attribute indicates that the image <em>is</em> a key part of the content, but no textual equivalent is available. Setting this attribute to the empty string indicates that this image is <em>not</em> a key part of the content; non-visual browsers may omit it from rendering.</p>
 </div>
 </dd>
 <dt>{{htmlattrdef("border")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}}</dt>
 <dd>이미지 주위의 경계의 두께</dd>
 <dt>{{htmlattrdef("crossorigin")}} {{HTMLVersionInline(5)}}</dt>
 <dd>This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. <a href="/en-US/docs/CORS_Enabled_Image" title="CORS_Enabled_Image">CORS-enabled images</a> can be reused in the {{HTMLElement("canvas")}} element without being <em>tainted</em>. The allowed values are:
 <dl>
  <dt>anonymous</dt>
  <dd>A cross-origin request (i.e., with <code>Origin:</code> HTTP header) is performed. But no credential is sent (i.e., no cookie, no X.509 certificate, and no HTTP Basic authentication is sent). If the server does not give credentials to the origin site (by not setting the <code>Access-Control-Allow-Origin:</code> HTTP header), the image will be <em>tainted</em> and its usage restricted.</dd>
  <dt>use-credentials</dt>
  <dd>A cross-origin request (i.e., with <code>Origin:</code> HTTP header) performed with credential is sent (i.e., a cookie, a certificate, and HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through <code>Access-Control-Allow-Credentials:</code> HTTP header), the image will be <em>tainted</em> and its usage restricted.</dd>
 </dl>
 When not present, the resource is fetched without a CORS request (i.e., without sending the <code>Origin:</code> HTTP header), preventing its non-tainted usage in {{HTMLElement('canvas')}} elements. If invalid, it is handled as if the enumerated keyword <strong>anonymous</strong> was used. See <a href="/en-US/docs/HTML/CORS_settings_attributes" title="CORS settings attributes">CORS settings attributes</a> for additional information.</dd>
 <dt>{{htmlattrdef("height")}}</dt>
 <dd>The intrinsic height of the image in {{HTMLVersionInline(5)}} CSS pixels, or {{HTMLVersionInline(4)}} in pixels or as a percentage.</dd>
 <dt>{{htmlattrdef("hspace")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}}</dt>
 <dd>The number of pixels of white space to insert to the left and right of the image.</dd>
 <dt>{{htmlattrdef("ismap")}}</dt>
 <dd>This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.
 <div class="note">
 <p><strong>Usage note: </strong>This attribute is allowed only if the <code>&lt;img&gt;</code> element is a descendant of an {{htmlelement("a")}} element with a valid {{htmlattrxref("href","a")}} attribute.</p>
 </div>
 </dd>
 <dt>{{htmlattrdef("longdesc")}}{{HTMLVersionInline(4)}} only</dt>
 <dd>The URL of a description of the image to be displayed, which supplements the <strong>alt</strong> text. In {{HTMLVersionInline(5)}}, use a regular {{HTMLElement("a")}} element to link to the description.</dd>
 <dt>{{htmlattrdef("name")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}}</dt>
 <dd>A name for the element. It is supported in {{HTMLVersionInline(4)}} only for backward compatibility. Use the <strong>id</strong> attribute instead.</dd>
 <dt>{{htmlattrdef("sizes")}}{{HTMLVersionInline(5)}}</dt>
 <dd>A&nbsp;list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:
 <ol>
  <li>a media condition. This must be omitted for the last item.</li>
  <li>a source size value.</li>
 </ol>

 <p>Source size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the <code>srcset</code> attribute, when those sources are described using width ('<code>w</code>') descriptors. The selected source size affects the intrinsic size of the image (the image’s display size if no CSS styling is applied). If the <code>srcset</code> attribute is absent, or contains no values with a width descriptor, then the <code>sizes</code> attribute has no effect.</p>
 </dd>
 <dt>{{htmlattrdef("src")}}</dt>
 <dd>이미지 URL. 이 속성은 <code>&lt;img&gt;</code> 요소에 필수적입니다. On browsers supporting <code>srcset</code>, <code>src</code> is treated like a candidate image with a pixel density descriptor <code>1x</code> unless an image with this pixel density descriptor is already defined in <code>srcset</code> or <code>srcset</code> contains '<code>w</code>' descriptors.</dd>
 <dt>&nbsp;</dt>
 <dt>{{htmlattrdef("srcset")}}{{HTMLVersionInline(5)}}</dt>
 <dd>A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:
 <ol>
  <li>a URL to an image,</li>
  <li>optionally, whitespace followed by one of:
   <ul>
    <li>a width descriptor, that is a positive integer directly followed by '<code>w</code>'. The width descriptor is divided by the source size given in the&nbsp;<code>sizes</code>&nbsp;attribute to calculate the effective pixel density.</li>
    <li>a pixel density descriptor, that is a positive floating point number directly followed by '<code>x</code>'.</li>
   </ul>
  </li>
 </ol>

 <p>If no descriptor is specified, the source is assigned the default descriptor: <code>1x</code>.</p>

 <p>It is invalid to mix width descriptors and pixel density descriptors in the same <code>srcset</code> attribute. Duplicate descriptors (for instance, two sources in the same <code>srcset</code>&nbsp;which are both&nbsp;described with&nbsp;'<code style="font-style: normal;">2x</code>')&nbsp;are invalid, too.</p>

 <p>User agents are given discretion to choose any one of the available sources. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions.</p>
 </dd>
 <dt>{{htmlattrdef("width")}}</dt>
 <dd>The intrinsic width of the image in {{HTMLVersionInline(5)}} CSS pixels, or {{HTMLVersionInline(4)}} in pixels or as a percentage.</dd>
 <dt>{{htmlattrdef("usemap")}}</dt>
 <dd>The partial URL (starting with '#') of an <a href="/en-US/docs/HTML/Element/map" title="HTML/Element/Map">image map</a> associated with the element.
 <div class="note">
 <p><strong>Usage note: </strong>You cannot use this attribute if the <code>&lt;img&gt;</code> element is a descendant of an {{htmlelement("a")}} or {{HTMLElement("button")}} element.</p>
 </div>
 </dd>
 <dt>{{htmlattrdef("vspace")}} {{deprecatedGeneric('inline','HTML4.01')}}, {{obsoleteGeneric('inline','HTML5')}}</dt>
 <dd>The number of pixels of white space to insert above and below the image.</dd>
</dl>

<h2 id="Supported_image_formats">지원되는 이미지 포맷</h2>

<p>The HTML standard doesn't give a list of image formats that must be supported, so each user agent supports a different set of formats. Gecko supports:</p>

<ul>
 <li><a class="external" href="https://en.wikipedia.org/wiki/JPEG" title="https://en.wikipedia.org/wiki/JPEG">JPEG</a></li>
 <li><a class="external" href="https://en.wikipedia.org/wiki/Graphics_Interchange_Format" title="https://en.wikipedia.org/wiki/Graphics_Interchange_Format">GIF</a>, including animated GIFs</li>
 <li><a class="external" href="https://en.wikipedia.org/wiki/Portable_Network_Graphics" title="https://en.wikipedia.org/wiki/Portable_Network_Graphics">PNG</a></li>
 <li><a href="/en-US/docs/Animated_PNG_graphics" title="Animated PNG graphics">APNG</a> {{gecko_minversion_inline("1.9.2")}}</li>
 <li><a href="/en-US/docs/SVG" title="SVG">SVG</a> {{gecko_minversion_inline("2.0")}}</li>
 <li><a class="external" href="https://en.wikipedia.org/wiki/BMP_file_format" title="https://en.wikipedia.org/wiki/BMP_file_format">BMP</a></li>
 <li><a class="external" href="https://en.wikipedia.org/wiki/ICO_%28file_format%29" title="https://en.wikipedia.org/wiki/ICO_%28file_format%29">BMP ICO</a></li>
 <li><a class="external" href="https://en.wikipedia.org/wiki/ICO_%28file_format%29" title="https://en.wikipedia.org/wiki/ICO_%28file_format%29">PNG ICO</a> {{gecko_minversion_inline("9.0")}}</li>
</ul>

<div class="note">
<p><strong>참고:</strong><br />
 Gecko 1.9.2.에서 <a class="external" href="https://en.wikipedia.org/wiki/X_BitMap" title="https://en.wikipedia.org/wiki/X_BitMap">XBM</a>의 지원이 중단되었습니다.</p>
</div>

<h2 id="Interaction_with_CSS">CSS와 상호작용하기</h2>

<p>Regarding CSS, an <code>&lt;img&gt;</code> is a <a href="/en-US/docs/CSS/Replaced_element" title="CSS/Replaced_element">replaced element</a>. It has no baseline, so when images are used in an inline formatting context with {{cssxref("vertical-align")}}<code>: baseline</code>, the bottom of the image will be posed on the container's baseline.</p>

<p>Depending on its type, an <em>image</em> may have an intrinsic width and height, but will not necessarily have them. For instance, SVG images have no intrinsic dimensions.</p>

<h2 id="Example_1">예제 1</h2>

<pre class="brush: html">
&lt;img src="mdn-logo-sm.png" alt="MDN"&gt;
</pre>

<p><img alt="MDN" src="https://developer.cdn.mozilla.net/media/img/mdn-logo-sm.png" /></p>

<h2 id="Example_2.3A_Image_link">예제2: 이미지 링크</h2>

<pre class="brush: html">
&lt;a href="https://developer.mozilla.org/"&gt;&lt;img src="mdn-logo-sm.png" alt="MDN"&gt;&lt;/a&gt;</pre>

<p><a href="https://developer.mozilla.org/"><img alt="MDN" src="https://developer.cdn.mozilla.net/media/img/mdn-logo-sm.png" /> </a></p>

<h2 id="Specifications" name="Specifications">예제 3: <code>srcset</code> 속성 사용하기</h2>

<p>The <code>src</code> attribute is a <code>1x</code> candidate in user agents that support <code>srcset</code>.</p>

<pre class="brush: html">
 &lt;img src="mdn-logo-sm.png" 
      alt="MDN" 
      srcset="mdn-logo-HD.png 2x"&gt;</pre>

<h2 id="Specifications" name="Specifications" style="line-height: 30px; font-size: 2.14285714285714rem;">예제 4: <code>srcset</code>와 <code>sizes</code> 속성 사용하기</h2>

<p>The <code>src</code> attribute is ignored in user agents that support <code>srcset</code> when using '<code>w</code>' descriptors. When the <code>(min-width: 600px)</code> media condition matches, the image will be 200px wide, otherwise it will be 50vw wide (50% of the viewport width).</p>

<pre class="brush: html" style="font-size: 14px; word-spacing: 0px;">
 &lt;img src="clock-demo-thumb-200.png" 
      alt="Clock" 
      srcset="clock-demo-thumb-200.png 200w, clock-demo-thumb-400.png 400w"
&nbsp;     sizes="(min-width: 600px) 200px, 50vw"&gt;</pre>

<h2 id="Specifications" name="Specifications">사양</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">사양</th>
   <th scope="col">상태</th>
   <th scope="col">주석</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'embedded-content.html#the-img-element', '&lt;img&gt;')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-img-element', '&lt;img&gt;')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML4.01', 'struct/objects.html#h-13.2', '&lt;img&gt;')}}</td>
   <td>{{Spec2('HTML4.01')}}</td>
   <td>&nbsp;</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">브라우저 적합성</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>기능</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
  <tr>
   <td>srcset attribute</td>
   <td>{{CompatChrome(34.0)}}</td>
   <td>{{CompatGeckoDesktop("32.0")}} (behind a pref)</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatOpera(21)}}</td>
   <td>{{CompatSafari(7.1)}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>기능</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
  <tr>
   <td>srcset attribute</td>
   <td>Chrome 34</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>21</td>
   <td>iOS 8</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also">같이 보기</h2>

<ul>
 <li>{{HTMLElement("picture")}}, {{HTMLElement("object")}}, {{HTMLElement("embed")}} 요소들</li>
</ul>

<div>{{HTMLRef}}</div>
현재 리비전 복원