<sectionid="description"> Bootstrap viene con varios colores predefinidos para botones. La clase <code>btn-info</code> se utiliza para llamar la atención sobre acciones opcionales que el usuario puede realizar. Cree un nuevo botón Bootstrap a nivel de bloque debajo de su botón "Me gusta" con el texto "Información", y agregue las clases <code>btn-info</code> y <code>btn-block</code> Bootstrap. 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 "Información".
testString: 'assert(new RegExp("info","gi").test($("button").text()), "Create a new <code>button</code> element with the text "Info".");'
- text: Ambos botones de Bootstrap deberían tener las clases <code>btn</code> y <code>btn-block</code> .
testString: 'assert($("button.btn-block.btn").length > 1, "Both 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-info</code> .
testString: 'assert($("button").hasClass("btn-info"), "Your new button should have the class <code>btn-info</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.");'