From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- .../global_objects/string/bold/index.html | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 files/pt-br/web/javascript/reference/global_objects/string/bold/index.html (limited to 'files/pt-br/web/javascript/reference/global_objects/string/bold/index.html') diff --git a/files/pt-br/web/javascript/reference/global_objects/string/bold/index.html b/files/pt-br/web/javascript/reference/global_objects/string/bold/index.html new file mode 100644 index 0000000000..bc34403734 --- /dev/null +++ b/files/pt-br/web/javascript/reference/global_objects/string/bold/index.html @@ -0,0 +1,68 @@ +--- +title: String.prototype.bold() +slug: Web/JavaScript/Reference/Global_Objects/String/bold +tags: + - Descontinuado + - JavaScript + - Prototipo + - Referencia + - String + - metodo +translation_of: Web/JavaScript/Reference/Global_Objects/String/bold +--- +
{{JSRef}} {{deprecated_header}}
+ +

O método bold() cria um elemento HTML <b> que faz com que uma string seja exibida em negrito.

+ +

Sintaxe

+ +
str.bold()
+ +

Valor retornado

+ +

Uma string contendo um elemento HTML <b> .

+ +

Descrição

+ +

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

+ +

Exemplos

+ +

Usando bold()

+ +

Os exemplos abaixo usam métodos do objeto String para alterar a formatação de uma string:

+ +
var worldString = 'Olá, mundo';
+
+console.log(worldString.blink());   // <blink>Olá, mundo</blink>
+console.log(worldString.bold());    // <b>Olá, mundo</b>
+console.log(worldString.italics()); // <i>Olá, mundo</i>
+console.log(worldString.strike());  // <strike>Olá, mundo</strike>
+ +

Especificações

+ + + + + + + + + + +
Specification
{{SpecName('ESDraft', '#sec-string.prototype.bold', 'String.prototype.bold')}}
+ + + + + +

{{Compat("javascript.builtins.String.bold")}}

+ +

Veja também

+ + -- cgit v1.2.3-54-g00ecf