Normally, your <code>button</code> elements with the <code>btn</code> and <code>btn-default</code> classes are only as wide as the text that they contain. For example:
This button would only be as wide as the word "Submit".
<buttonclass='btn btn-default'>Submit</button>
By making them block elements with the additional class of <code>btn-block</code>, your button will stretch to fill your page's entire horizontal space and any elements following it will flow onto a "new line" below the block.
- text: Your button should still have the <code>btn</code> and <code>btn-default</code> classes.
testString: 'assert($("button").hasClass("btn") && $("button").hasClass("btn-default"), ''Your button should still have the <code>btn</code> and <code>btn-default</code> classes.'');'
- text: Your button should have the class <code>btn-block</code>.
testString: 'assert($("button").hasClass("btn-block"), ''Your button should have the class <code>btn-block</code>.'');'
- text: Make sure all your <code>button</code> elements have a closing tag.
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.'');'