HTML <dfn> 태그


예시

<dfn>으로 용어를 마크업:

<p><dfn>HTML</dfn> is the standard markup language for creating web pages.</p>

아래에서 더 많은 "직접 사용해 보기" 예를 살펴보세요.


정의 및 사용

태그 는 <dfn>"정의 요소"를 나타내며 콘텐츠 내에서 정의될 용어를 지정합니다.

태그 의 가장 가까운 부모 <dfn>에는 해당 용어에 대한 정의/설명도 포함되어야 합니다.

태그 내부의 용어 <dfn>는 다음 중 하나일 수 있습니다.

1. 요소의 내용과 마찬가지로 :<dfn>

예시

<p><dfn>HTML</dfn> is the standard markup language for creating web pages.</p>

2. 또는 title 속성이 추가된 경우:

예시

<p><dfn title="HyperText Markup Language">HTML</dfn> is the standard markup language for creating web pages.</p>

3. 또는 요소 내부에 <abbr> 태그가 있는 경우 :<dfn>

예시

<p><dfn><abbr title="HyperText Markup Language">HTML</abbr></dfn> is the standard markup language for creating web pages.</p>

4. 또는 id 속성이 추가되었습니다. 그런 다음 용어가 사용될 때마다 <a> 태그로 정의를 다시 참조할 수 있습니다.

예시

<p><dfn id="html-def">HTML</dfn> is the standard markup language for creating web pages.</p>

<p>This is some text...</p>
<p>This is some text...</p>
<p>Learn <a href="#html-def">HTML</a> now.</p>


브라우저 지원

Element
<dfn> Yes Yes Yes Yes Yes

전역 속성

<dfn>태그는 HTML의 전역 속성도 지원 합니다 .


이벤트 속성

<dfn>태그는 HTML의 이벤트 속성 도 지원합니다 .


관련 페이지

HTML 튜토리얼: HTML 인용 요소

HTML DOM 참조: DFN 개체


기본 CSS 설정

대부분의 브라우저는 <dfn>다음 기본값으로 요소를 표시합니다.

예시

dfn {
  font-style: italic;
}