| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/String/big | [Back] [Original] |
Get to know MDN better
Esta pgina foi traduzida do ingls pela comunidade. Saiba mais e junte-se comunidade MDN Web Docs.
Avoid using this feature in new projects. HTML wrapper methods exist only for backwards compatibility. Use DOM APIs to create elements instead. This feature may be a candidate for removal from web standards or browsers.
Consider using the following features instead: DOM.
O mtodo 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 e no deve mais ser usado. Em vez disso, web developers devem usar a propriedade CSS correspondente.
str.big()
Uma string contendo um elemento HTML.
O mtodo big() cria uma string dentro de uma tag <big>:
"<big>str</big>".
big()Os exemplos abaixo usam mtodos do objeto String para alterar o tamanho de uma string:
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 genrica, por exemplo:
document.getElementById("#oIdDoElemento").style.fontSize = "2em";
| Specification |
|---|
| ECMAScript 2027 LanguageSpecification # sec-string.prototype.big |
This page was last modified on 10 de abr. de 2026 by MDN contributors.
StringString.prototype.anchor()at()String.prototype.big()String.prototype.blink()String.prototype.bold()String.prototype.charAt()String.prototype.charCodeAt()String.prototype.codePointAt()String.prototype.concat()String.prototype.endsWith()String.prototype.fixed()String.prototype.fontcolor()String.prototype.fontsize()String.prototype.includes()String.prototype.indexOf()isWellFormed()String.prototype.italics()String.prototype.lastIndexOf()String.prototype.link()String.prototype.localeCompare()String.prototype.match()String.prototype.matchAll()String.prototype.normalize()String.prototype.padEnd()String.prototype.padStart()String.prototype.repeat()String.prototype.replace()String.prototype.replaceAll()String.prototype.search()String.prototype.slice()String.prototype.small()String.prototype.split()String.prototype.startsWith()String.prototype.strike()String.prototype.sub()String.prototype.substr()String.prototype.substring()String.prototype.sup()String.prototype.toLocaleLowerCase()String.prototype.toLocaleUpperCase()String.prototype.toLowerCase()String.prototype.toString()String.prototype.toUpperCase()toWellFormed()String.prototype.trim()String.prototype.trimEnd()String.prototype.trimStart()String.prototype.valueOf()String.prototype[@@iterator]()Object/FunctionObject.prototype.__defineGetter__()Object.prototype.__defineSetter__()Object.prototype.__lookupGetter__()Object.prototype.__lookupSetter__()Object.prototype.hasOwnProperty()Object.prototype.isPrototypeOf()Object.prototype.propertyIsEnumerable()Object.prototype.toLocaleString()Object.prototype.toString()Object.prototype.valueOf()Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |