--- title: String.prototype.big() slug: Web/JavaScript/Reference/Global_Objects/String/big tags: - Descontinuado - JavaScript - Prototipo - Referencia - String - metodo translation_of: Web/JavaScript/Reference/Global_Objects/String/big --- <div>{{JSRef}} {{deprecated_header}}</div> <p>O método <strong>big()</strong> cria um elemento HTML <a href="/en-US/docs/Web/HTML/Element/big"><big></a> fazendo com que o texto dentro dele seja exibido uma uma fonte maior.</p> <div class="note"> <p><strong>Nota de uso:</strong> O elemento <big> foi removido no <a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a> e não deve mais ser usado. Em vez disso, web developers devem usar a <a href="/pt-BR/docs/Web/CSS/font-size">propriedade CSS correspondente</a>.</p> </div> <h2 id="Sintaxe">Sintaxe</h2> <pre class="syntaxbox notranslate"><code><var>str</var>.big()</code></pre> <h3 id="Valor_retornado">Valor retornado</h3> <p>Uma string contendo um elemento HTML.</p> <h2 id="Descrição">Descrição</h2> <p>O método <code>big()</code> cria uma string dentro de uma tag <code><big></code>:<br> <code>"<big>str</big>"</code>.</p> <h2 id="Exemplos">Exemplos</h2> <h3 id="Usando_big">Usando <code>big()</code></h3> <p>Os exemplos abaixo usam métodos do objeto <a href="https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/String#M%C3%A9todos_gen%C3%A9ricos_de_Strings" title="https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/String#M%C3%A9todos_gen%C3%A9ricos_de_Strings">String </a>para alterar o tamanho de uma string:</p> <pre class="brush: js notranslate">var worldString = 'Olá, mundo'; console.log(worldString.small()); // <small>Olá, mundo</small> console.log(worldString.big()); // <big>Olá, mundo</big> console.log(worldString.fontsize(7)); // <fontsize=7>Olá, Mundo</fontsize> </pre> <p>Com o objeto <code>element.style</code> você pode selecionar o atributo <code>style</code> do elemento e manipulá-lo de forma mais genérica, por exemplo:</p> <pre class="brush: js notranslate">document.getElementById('#oIdDoElemento').style.fontSize = '2em'; </pre> <h2 id="Especificações">Especificações</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">Specification</th> </tr> <tr> <td>{{SpecName('ESDraft', '#sec-string.prototype.big', 'String.prototype.big')}}</td> </tr> </tbody> </table> <h2 id="Browser_compatibility">Compatibilidade com navegadores</h2> <p>{{Compat("javascript.builtins.String.big")}}</p> <h2 id="Veja_também">Veja também</h2> <ul> <li>{{jsxref("String.prototype.fontsize()")}}</li> <li>{{jsxref("String.prototype.small()")}}</li> </ul>