I put a p (paragraph) tag inside a button tag but its not showing properly. And p (paragraph) tag is going out of button tag. What's wrong I am doing.
CodePudding user response:
If I understand your question correctly I think this is what your looking for.
<div >
<p><em>if you click button</em></p>
<button>test</button
</div>
CodePudding user response:
You can't use the <P></p>
tag inside <button></button>
instead you can use <span>
<button type="submit" >
<span > Save <span>
</button>
And you can put the style as you want inside the span tag