<sectionid="description"> Bootstrap tiene sus propios estilos para elementos de <code>button</code> , que se ven mucho mejores que los de HTML simple. Crea un nuevo elemento de <code>button</code> debajo de tu foto de gatito grande. Asígnele las clases <code>btn</code> y <code>btn-default</code> , así como el texto de "Me gusta". </section>
- text: Crea un nuevo elemento de <code>button</code> con el texto "Me gusta".
testString: 'assert(new RegExp("like","gi").test($("button").text()) && ($("img.img-responsive + button.btn").length > 0), "Create a new <code>button</code> element with the text "Like".");'
testString: 'assert($("button").hasClass("btn") && $("button").hasClass("btn-default"), "Your new button should have two classes: <code>btn</code> and <code>btn-default</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.");'