0

Chaps, I have a question about nesting elements. I am using bootstrap for a project I am working on, and for whoever didn't know that - I am one of those - in bootstrap buttons are display:inline-block;
Now, I have this situation at the moment:
<p><button>My button</button> This button means X</p>
Is it acceptable to have the button before the text of the paragraph? Personally I think so, because p is a block element and button regardless of the value of its display property can be inside p, but I thought I'd double check.
Any objection?

3
Contributors
3
Replies
11
Views
4 Years
Discussion Span
Last Post by Violet_82
0

Hi Violet 82
I don't see anything wrong with that!
might want to let a more skilled member of the community confirm this though ;)

0

Is it acceptable to have the button before the text of the paragraph?

So from an HTML standards perspective, that will validate. So is that what you mean by acceptable?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.