HTML 사전

sup

설명

The HTML Superscript Element (<sup>) defines a span of text that should be displayed, for typographic reasons, higher, and often smaller, than the main span of text.

<sub>요소는 문자를 본문보다 더 작게, 그리고 더 높은 위치에 윗첨자료 표기할 때 사용한다.

Usage note:
 •This element should be used for typographical reasons only, i.e. changing the position of the text changing its meaning like in mathematical (like f4, though the use of a MathML formula should be considered) or in french abbreviations (like Mlle, Mme or Cie).
 •This element must not be used for styling purpose like the styling of the product name Latex. In that case CSS style should be used: the vertical-align property with the sup value will achieve the same effect.

사용 참고 : 
 * 윗첨자로 작게 표기하는 것이 특정한 의미를 가질 때에만 이 요소를 사용해야 한다. 예를 들어 문자의 위치가 의미를 가지는 수식이나 프랑스식 약어(Mlle, Mme, Cie)등의 경우에 사용해야 한다. 단 수학에서 f4(??)의 경우에는 MathML 공식을 사용해야 한다. 
 * 의미 없이 글자 모양새를 위한 용도로 사용되어서는 안된다.  그때는 CSS 스타일에서 vertical-align속성과 sup 값을 사용하여 이런 모양을 표현할 수 있다.

Usage Context

Permitted content Phrasing content
Tag omission None as both the start and end tag are mandatory
Permitted parent elements Any element that can contain phrasing content
Normative document HTML5, section 4.6.14 (HTML4.01, section 9.2.3)

속성

이 엘리먼트는 전역속성을 지원한다.

예제

<p>This text is <sup>superscripted</sup></p>
<p>이 글은 <sup> 위쪽에 표시한 글</sup>입니다.</p>

DOM Interface

This element implements the HTMLElement interface.

이 요소는 HTMLElement 인터페이스를 구현하였다. 

Implementation note: up to Gecko 1.9.2 inclusive, Firefox implements the HTMLSpanElement interface for this element.

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원          
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원          

참고

  • https://developer.mozilla.org/en/HTML/Element/sup
  • The <sub> HTML element that produce superscript. Note that you cannot use them both at the same time and you need to use MathML to produce both a superscript and a subscript next to the chemical symbol of an element, representing its atomic number and its nuclear number.
  • suporscript를 만들어내는 <sub>요소. <sub>와 <sup>요소를 동시에 사용할 수 없으므로, 화학기호 옆에 원자번호나 nuclear number를 표기하기 위해 superscript와 subscript를 사용할 때에는 MathML을 사용하라. 
  • The <msub>, <msup> and <msubsup> MathML elements.

댓글

댓글 본문
  1. Albert.q.park
    한자를 음으로 풀어쓸때 sub을 사용해야 하는지, sup을 사용해야 하는지 혹은, CSS를 사용하는지에 대한 의견 필요합니다~
버전 관리
김나솔
현재 버전
선택 버전
graphittie 자세히 보기