btn-info
class is used to call attention to optional actions that the user can take.
Create a new block-level Bootstrap button below your "Like" button with the text "Info", and add Bootstrap's btn-info
and btn-block
classes to it.
Note that these buttons still need the btn
and btn-block
classes.
button
element with the text "Info".
testString: assert(new RegExp("info","gi").test($("button").text()), 'Create a new button
element with the text "Info".');
- text: Both of your Bootstrap buttons should have the btn
and btn-block
classes.
testString: assert($("button.btn-block.btn").length > 1, 'Both of your Bootstrap buttons should have the btn
and btn-block
classes.');
- text: Your new button should have the class btn-info
.
testString: assert($("button").hasClass("btn-info"), 'Your new button should have the class btn-info
.');
- text: Make sure all your button
elements have a closing tag.
testString: assert(code.match(/<\/button>/g) && code.match(/Click here for cat photos.
Things cats love:
Top 3 things cats hate: