JavaScript로 작은 글꼴 텍스트를 만들려면 small() 메서드를 사용하세요. 이 메서드는 문자열이 태그에 있는 것처럼 작은 글꼴로 표시되도록 합니다.
예
다음 코드를 실행하여 JavaScript를 사용하여 작은 글꼴을 만들 수 있습니다 -
<html>
<head>
<title>JavaScript String small() Method</title>
</head>
<body>
<script>
var str = new String("Demo Text");
document.write(str.small())
alert(str.small());
</script>
</body>
</html>