--- title: <noscript> slug: Web/HTML/Element/noscript tags: - Elemento - HTML - Referencia - Web - script HTML translation_of: Web/HTML/Element/noscript --- <div>{{HTMLRef}}</div> <h2 id="Resumo">Resumo</h2> <p>O <strong>Elemento HTML <code><noscript></code></strong> define uma seção de html a ser inserida se um tipo de script não é suportado pela página ou se o script está desativado no navegador.</p> <ul class="htmlelt"> <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Categorias de conteúdo</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Metadata_content" title="HTML/Content_categories#Metadata_content">Metadata content</a>, <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">flow content</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>.</li> <li><dfn>Conteúdo permitido</dfn> Quando scripting está desabilitado e quando este é um descendente do elemento {{HTMLElement("head")}} : em qualquer ordem, de zero ou mais elementos {{HTMLElement("link")}}, zero ou mais elementos {{HTMLElement("style")}}, e zero ou mais elementos {{HTMLElement("meta")}}.<br> Quando o script está desativado e quando não é descendente do elemento {{HTMLElement("head")}} : qualquer conteúdo transparente, mas nenhum elemento <code><noscript></code> entre seus descendentes.<br> Nos outros casos: conteúdo de fluxo ou conteúdo de texto.</li> <li><dfn>Omissão da tag</dfn>Tags inicial e final obrigatórias.</li> <li><dfn>Elemento pai permitidos</dfn> Qualquer elemento que aceite '<a href="/en-US/docs/HTML/Content_categories#Phrasing_content">contúdo de texto</a>' (<a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">phrasing content</a>), se não há um elemento <code><noscript></code> anterior ou em um elemento {{HTMLElement("head")}} (mas somente em um documento HTML), e também se não existe elemento <code><noscript></code> anterior.</li> <li><dfn>Interface DOM</dfn> {{domxref("HTMLElement")}}</li> </ul> <h2 id="Atributos">Atributos</h2> <p><span style="line-height: 21px;">Este elemento só inclui os </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">atributos globais</a><span style="line-height: 21px;">.</span></p> <h2 id="Exemplo">Exemplo</h2> <pre class="brush: html"><noscript> <!-- referência a arquivo externo --> <a href="http://www.mozilla.com/">Link Externo</a> </noscript> <p>Rocks!</p> </pre> <h3 id="Resultado_com_o_script_ativado">Resultado com o script ativado</h3> <p>Rocks!</p> <h3 id="Resultado_com_o_script_desativado">Resultado com o script desativado</h3> <p><a class="external" href="http://www.mozilla.com/">Link Externo</a></p> <p>Rocks!</p> <h2 id="Specifications" name="Specifications">Especificações</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('HTML WHATWG', 'scripting-1.html#the-noscript-element', '<noscript>')}}</td> <td>{{Spec2('HTML WHATWG')}}</td> <td> </td> </tr> <tr> <td>{{SpecName('HTML5 W3C', 'scripting-1.html#the-noscript-element', '<noscript>')}}</td> <td>{{Spec2('HTML5 W3C')}}</td> <td> </td> </tr> <tr> <td>{{SpecName('HTML4.01', 'interact/scripts.html#h-18.3.1', '<noscript>')}}</td> <td>{{Spec2('HTML4.01')}}</td> <td> </td> </tr> </tbody> </table> <h2 id="Browser_compatibility">Compatibilidade com navegadores</h2> <p>{{CompatibilityTable}}</p> <div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Característica</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Suporte básico</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatGeckoDesktop("1.0")}}</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatVersionUnknown}}</td> </tr> </tbody> </table> </div> <div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Característica</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Suporte básico</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatGeckoMobile("1.0")}}</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatVersionUnknown}}</td> </tr> </tbody> </table> </div>