I'm working on some markup for an internal site, and laying out a list of contacts in a series of rows. Right now, I'm laying this out with <div>
tags:
<div class="row">
<div class="col-md-5">
<button type="button" id="createNewContact" class="btn btn-lg btn-success">
<span class="glyphicon glyphicon-plus-sign"></span>
Create
</button>
</div>
</div>
and I get the sort of markup you'd expect. You know, exactly what I typed in to Visual Studio. I'd like a bit more breathing room between rows, and I want to switch to <p>
tags:
<p class="row">
<div class="col-md-5">
<button type="button" id="createNewContact" class="btn btn-lg btn-success">
<span class="glyphicon glyphicon-plus-sign"></span>
Create
</button>
</div>
</p>
Whenever I do that, my markup craps out in the browser:
<p class="row">
</p><div class="col-md-5">
<button class="btn btn-lg btn-success" id="createNewContact" type="button">
<span class="glyphicon glyphicon-plus-sign"></span>
Create
</button>
</div>
<p></p>
This happens no matter what browser I use. I've experimented with moving the <p>
tags around, and putting them around <div>
and <fieldset>
tags (at least) produce this markup.
Am I missing something here?
` tags. I'd rather have the formatting baked into the structure of my markup. – jwheron Jun 12 '15 at 14:58