HTML <링크> 유형 속성
예시
다음 예에서 type 속성은 연결된 문서가 외부 스타일 시트임을 나타냅니다.
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
정의 및 사용
속성 은 type
연결된 문서/리소스의 미디어 유형을 지정합니다.
type의 가장 일반적인 값은 "text/css"입니다. 속성 을 생략하면
type
브라우저는 rel
속성을 확인하여 올바른 유형을 추측합니다. 따라서 rel="stylesheet"인 경우 브라우저는 유형이 "text/css"라고 가정합니다.
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
통사론
<link type="media_type">
속성 값
Value | Description |
---|---|
media_type | The media type of the linked document. Look at IANA Media Types for a complete list of standard media types |
❮ HTML <링크> 태그