티스토리 뷰

i element

pilot376 2013. 7. 16. 23:39

i 엘리먼트는 글 내에서 다른 음성 혹은 분위기의 텍스트 영역을 나타낸다. 또는 분류학적 명칭, 기술용어, 다른 언어, 생각 등 일반 글에서 다른 품질의 텍스트를 나타내는 방식으로 쓰인다.

메인 글과 다른 언어의 텍스트는 lang 속성을 함께 사용해야 한다.

i 엘리먼트의 사용예시:

<p>The <i>Felis silvestris catus</i> is cute.</p>
<p>The term <i>prose content</i> is defined above.</p>
<p>There is a certain <i lang="fr">je ne sais quoi</i> in the air.</p>

i 엘리먼트를 이용하여 꿈의 흐름을 마크업 한 예시:

<p>Raymond tried to sleep.</p>
<p><i>The ship sailed away on Thursday</i>, he dreamt. <i>The ship had many people aboard, including a beautiful princess called Carey. He watched her, day-in, day-out, hoping she would notice him, but she never did.</i></p>
<p><i>Finally one night he picked up the courage to speak with her—</i></p>
<p>Raymond woke with a start as the fire alarm rang out.</p>

참고 : http://www.w3.org/TR/2012/WD-html5-20121025/the-i-element.html#the-i-element

댓글