String.prototype.big()

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

O método big() cria um elemento HTML <big> fazendo com que o texto dentro dele seja exibido uma uma fonte maior.

Nota: O elemento <big> foi removido no HTML5 (en-US) e não deve mais ser usado. Em vez disso, web developers devem usar a propriedade CSS correspondente.

Sintaxe

str.big()

Valor retornado

Uma string contendo um elemento HTML.

Descrição

O método big() cria uma string dentro de uma tag <big>: "<big>str</big>".

Exemplos

Usando big()

Os exemplos abaixo usam métodos do objeto String para alterar o tamanho de uma string:

js
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>

Com o objeto element.style você pode selecionar o atributo style do elemento e manipulá-lo de forma mais genérica, por exemplo:

js
document.getElementById("#oIdDoElemento").style.fontSize = "2em";

Especificações

Specification
ECMAScript Language Specification
# sec-string.prototype.big

Compatibilidade com navegadores

BCD tables only load in the browser

Veja também