<sectionid="description"> Bootstrap viene con varios colores predefinidos para botones. La clase <code>btn-danger</code> es el color del botón que usarás para notificar a los usuarios que el botón realiza una acción destructiva, como eliminar una foto de gato. Crea un botón con el texto "Eliminar" y dale la clase <code>btn-danger</code> . Tenga en cuenta que estos botones aún necesitan las clases <code>btn</code> y <code>btn-block</code> . </section>
- text: Crea un nuevo elemento de <code>button</code> con el texto "Eliminar".
testString: 'assert(new RegExp("Delete","gi").test($("button").text()), "Create a new <code>button</code> element with the text "Delete".");'
- text: Todos los botones de Bootstrap deben tener las clases <code>btn</code> y <code>btn-block</code> .
testString: 'assert($("button.btn-block.btn").length > 2, "All of your Bootstrap buttons should have the <code>btn</code> and <code>btn-block</code> classes.");'
- text: Tu nuevo botón debe tener la clase <code>btn-danger</code> .
testString: 'assert($("button").hasClass("btn-danger"), "Your new button should have the class <code>btn-danger</code>.");'
- text: Asegúrese de que todos los elementos de sus <code>button</code> tengan una etiqueta de cierre.
testString: 'assert(code.match(/<\/button>/g) && code.match(/<button/g)&&code.match(/<\/button>/g).length === code.match(/<button/g).length,"Makesureallyour<code>button</code> elements have a closing tag.");'