HTML 번역 속성
예시
일부 요소가 번역되지 않아야 함을 지정합니다.
<p translate="no">Don't translate this!</p>
<p>This can be translated to any language.</p>
정의 및 사용
속성 은 translate
요소의 내용을 번역해야 하는지 여부를 지정합니다.
테스트: Google 번역 이미지(페이지 상단의 검색 버튼 옆)를 클릭하여 다른 언어로 변경하고 아래 "아이스크림"이라는 단어가 어떻게 되는지 확인합니다.
여기에서는 translate="no"를 사용합니다.ice cream.
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
translate | Not supported | Not supported | Not supported | Not supported | Not supported |
통사론
<element translate="yes|no">
속성 값
Value | Description |
---|---|
yes | Specifies that the content of the element should be translated |
no | Specifies that the content of the element must not be translated |
관련 페이지
HTML 튜토리얼: HTML 속성