| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/small | [Back] [Original] |
Get to know MDN better
HTML wrapper methods exist only for backwards compatibility. Use DOM APIs to create elements instead.
small()
<small> str </small>
HTML
const contentString = "Hello, world";
document.body.innerHTML = contentString.small();
HTML
<small>Hello, world</small>
small() HTML document.createElement() DOM API
const contentString = "Hello, world";
const elem = document.createElement("small");
elem.innerText = contentString;
document.body.appendChild(elem);
| ECMAScript 2027 LanguageSpecification # sec-string.prototype.small |
Stringanchor()at()big()blink()bold()charAt()charCodeAt()codePointAt()concat()endsWith()fixed()fontcolor()fontsize()includes()indexOf()isWellFormed()italics()lastIndexOf()link()localeCompare()match()matchAll()normalize()padEnd()padStart()repeat()replace()replaceAll()search()slice()small()split()startsWith()strike()sub()substr()substring()sup()toLocaleLowerCase()toLocaleUpperCase()toLowerCase()toString()toUpperCase()toWellFormed()trim()trimEnd()trimStart()valueOf()[Symbol.iterator]()Object/Function| Web Proxy Viewer | New URL | Original Page |