HTML 사전

noscript

설명

The HTML NoScript Element (<noscript>) defines a section of html to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.

브라우저에서 스크립트가 실행되지 않을 때, 표시되는 요소(Element) 이다. 브라우저에서 스크립트를 지원하지 않거나 옵션에서 스크립트의 실행을 막는 등의 이유로 스크립트가 실행되지 않을 때, <noscript></noscript> 안의 내용이 표시 된다. 정상적으로 스크립트가 실행되는 경우에는 <noscript></noscript> 태그 내용이 브라우저에 표시되지 않는다.<noscript>요소는 자바스크립트가 구동되지 않는 환경에서 방문한 사용자를 위한 배려라고 할 수 있다. 

Usage Context

Permitted content Metadata content, flow content, or Phrasing content.
Tag omission None, must have both a start tag and an end tag
Permitted parent elements Head element, any element that accepts phrasing content and does not already have a NoScript Element parent.
Normative document

HTML 5, section 4.3.2 http://www.w3.org/TR/html5/scripting-1.html#the-noscript-element

 

속성

이 엘리먼트는 전역속성을 지원한다.

예제

<noscript>
  <!-- 외부 사이트(모질라닷컴)에 링크하는 anchor 태그 -->
  <!-- 평상시에는 화면에 나오지 않지만 스크립트가 실행 불가능할때 화면에 나타난다. -->
  <a href="http://www.mozilla.com/">외부 링크</a>
</noscript>
<p>신나는데!!</p>

DOM Interface

This element does not implement a DOM interface.

이 요소는 DOM 인터페이스를 구현하지 않았다.
 

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원          
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원          

참고

댓글

댓글 본문
  1. engfordev
    잘 해주셨습니다 ^^
    긴 문장을 끊어서 써주시니 읽기에 편하네요~
버전 관리
마법부리는곰
현재 버전
선택 버전
graphittie 자세히 보기