HTML <스타일> 유형 속성
예시
type 속성을 사용하여 <style> 태그의 미디어 유형을 지정합니다.
<style type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
정의 및 사용
type
속성은 태그의 인터넷 미디어 유형(이전에는 MIME 유형이라고 함)을 지정 <style>
합니다.
type
속성은 및 태그 사이의 내용을 식별
<style>
합니다 </style>
.
기본값은 "text/css"이며 콘텐츠가 CSS임을 나타냅니다.
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
통사론
<style type="media_type">
속성 값
Value | Description |
---|---|
media_type | The Internet media type of the style sheet. For now, the only supported value is "text/css". Look at IANA Media Types for a complete list of standard media types |
❮ HTML <스타일> 태그