aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/html/element/sub/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/html/element/sub/index.html')
-rw-r--r--files/ko/web/html/element/sub/index.html137
1 files changed, 137 insertions, 0 deletions
diff --git a/files/ko/web/html/element/sub/index.html b/files/ko/web/html/element/sub/index.html
new file mode 100644
index 0000000000..a94f6a7f01
--- /dev/null
+++ b/files/ko/web/html/element/sub/index.html
@@ -0,0 +1,137 @@
+---
+title: '<sub>: 아래 첨자 요소'
+slug: Web/HTML/Element/sub
+tags:
+ - Element
+ - HTML
+ - HTML text-level semantics
+ - 'HTML:Flow content'
+ - 'HTML:Palpable Content'
+ - 'HTML:Phrasing content'
+ - Reference
+ - Web
+translation_of: Web/HTML/Element/sub
+---
+<div>{{HTMLRef}}</div>
+
+<p><span class="seoSummary"><strong>HTML </strong><strong><code>&lt;sub&gt;</code></strong> 요소는 활자 배치를 아래 첨자로 해야 하는 인라인 텍스트를 지정합니다.</span> 아래 첨자는 보통 더 작은 글씨 크기를 가지고, 기준선을 아래로 내려 렌더링 합니다.</p>
+
+<div>{{EmbedInteractiveExample("pages/tabbed/sub.html", "tabbed-shorter")}}</div>
+
+
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row"><a href="/ko/docs/Web/Guide/HTML/Content_categories">콘텐츠 카테고리</a></th>
+ <td><a href="/ko/docs/Web/Guide/HTML/Content_categories#플로우_콘텐츠">플로우 콘텐츠</a>, <a href="/ko/docs/Web/Guide/HTML/Content_categories#구문_콘텐츠">구문 콘텐츠</a>, 뚜렷한 콘텐츠.</td>
+ </tr>
+ <tr>
+ <th scope="row">가능한 콘텐츠</th>
+ <td><a href="/ko/docs/Web/Guide/HTML/Content_categories#구문_콘텐츠">구문 콘텐츠</a>.</td>
+ </tr>
+ <tr>
+ <th scope="row">태그 생략</th>
+ <td>{{no_tag_omission}}</td>
+ </tr>
+ <tr>
+ <th scope="row">가능한 부모 요소</th>
+ <td><a href="/ko/docs/Web/Guide/HTML/Content_categories#구문_콘텐츠">구문 콘텐츠</a>를 허용하는 모든 요소.</td>
+ </tr>
+ <tr>
+ <th scope="row">가능한 ARIA 역할</th>
+ <td>모두</td>
+ </tr>
+ <tr>
+ <th scope="row">DOM 인터페이스</th>
+ <td>{{domxref("HTMLElement")}}</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="특성">특성</h2>
+
+<p>이 요소는 <a href="/ko/docs/Web/HTML/Global_attributes">전역 특성</a>만 포함합니다.</p>
+
+<h2 id="사용_일람">사용 일람</h2>
+
+<p><code>&lt;sub&gt;</code> 요소는 타이포그래피적인 이유에 맞춰서만 사용해야 합니다. 타이포그래피적 이유란 기존의 관례나 표준이 아래 첨자로 나타내는 경우를 말하며, 단순히 작은 글자를 아래로 올려야 할 때는 사용해서는 안됩니다.</p>
+
+<p>예를 들어 비즈니스나 상품의 <a href="https://en.wikipedia.org/wiki/Wordmark">워드마크</a> 글씨 기준선을 내려야 한다면 <code>&lt;sub&gt;</code> 대신 CSS(대개 {{cssxref("vertical-align")}})를 사용해야 합니다. <code>vertical-align: sub</code>를 사용할 수도 있고, 기준선을 25% 내려야 한다면 <code>vertical-align: -25%</code>로도 쓸 수 있습니다.</p>
+
+<p><code>&lt;sub&gt;</code>의 적절한 사용처 몇 가지는 다음과 같습니다.</p>
+
+<ul>
+ <li>각주 표기. 아래의 {{anch("각주 표기")}} 예제를 참고하세요.</li>
+ <li>수학 변수의 숫자 표기. <a href="/ko/docs/Web/MathML">MathML</a>을 사용하는 방향을 고려하세요. {{anch("변수 표기")}} 예제를 참고하세요.</li>
+ <li>화학식에서 원소의 수를 나타낼 때. (개발자의 친구, C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub>, 카페인) 아래의 {{anch("화학식")}} 예제를 참고하세요.</li>
+</ul>
+
+<h2 id="예제">예제</h2>
+
+<h3 id="각주_표기">각주 표기</h3>
+
+<p>각주의 숫자를 아래 첨자로 나타내는 경우도 있으며, <code>&lt;sub&gt;</code>가 흔히 쓰이는 경우입니다.</p>
+
+<pre class="brush: html">&lt;p&gt;According to the computations by Nakamura, Johnson, and
+Mason&lt;sub&gt;1&lt;/sub&gt; this will result in the complete annihilation
+of both particles.&lt;/p&gt;</pre>
+
+<p>{{EmbedLiveSample("각주_표기", 650, 80)}}</p>
+
+<h3 id="변수_표기">변수 표기</h3>
+
+<p>수학에서는 같은 축 위의 점 여럿과 같이, 동일한 개념을 가리키는 변수의 무리는 같은 변수명을 사용하며, 뒤의 아래 첨자 숫자로 서로 구분합니다.</p>
+
+<pre class="brush: html">&lt;p&gt;The horizontal coordinates' positions along the X-axis are
+represented as &lt;var&gt;x&lt;sub&gt;1&lt;/sub&gt;&lt;/var&gt; ... &lt;var&gt;x&lt;sub&gt;n&lt;/sub&gt;&lt;/var&gt;.&lt;/p&gt;</pre>
+
+<p>{{EmbedLiveSample("변수_표기", 650, 80)}}</p>
+
+<h3 id="화학식">화학식</h3>
+
+<p>화학식에서 특정 원자의 수를 나타낼 때 아래 첨자를 사용합니다. H<sub>2</sub>0의 아래 첨자 "2"는 화학식이 나타내는 물질에 수소 원자가 2개 존재한다는 뜻입니다.:</p>
+
+<pre class="brush: html">&lt;p&gt;Almost every developer's favorite molecule is
+C&lt;sub&gt;8&lt;/sub&gt;H&lt;sub&gt;10&lt;/sub&gt;N&lt;sub&gt;4&lt;/sub&gt;O&lt;sub&gt;2&lt;/sub&gt;, which is
+commonly known as "caffeine."&lt;/p&gt;</pre>
+
+<p>{{EmbedLiveSample("화학식", 650, 120)}}</p>
+
+<h2 id="명세">명세</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-sub-and-sup-elements', '&lt;sub&gt; and &lt;sup&gt;')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'textlevel-semantics.html#the-sub-and-sup-elements', '&lt;sub&gt; and &lt;sup&gt;;')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="브라우저_호환성">브라우저 호환성</h2>
+
+<div class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div>
+
+<p>{{Compat("html.elements.sub")}}</p>
+
+<h2 id="같이_보기">같이 보기</h2>
+
+<ul>
+ <li>위 첨자를 나타내는 {{HTMLElement("sup")}} 요소. 위 첨자와 아래 첨자가 같은 공간에 공존할 수는 없습니다. 따라서 화학의 질량수/원자 번호 표기 등을 구현하려면 <a href="/ko/docs/Web/MathML">MathML</a>이 필요합니다.</li>
+ <li><a href="/ko/docs/Web/MathML/Element/msub"><code>&lt;msub&gt;</code></a>, <a href="/ko/docs/Web/MathML/Element/msup"><code>&lt;msup&gt;</code></a>, <a href="/ko/docs/Web/MathML/Element/msubsup"><code>&lt;msubsup&gt;</code></a> MathML 요소.</li>
+ <li>CSS {{cssxref("vertical-align")}} 속성.</li>
+</ul>