Quote:
Originally Posted by icearch
Is it good practice to have <p> in <h>?
I have benn using this when I didn't know better.
Now I am revisiting my old project, and found this:
Code:
<div style="text-align: center;">
<h2>
<p>奥克迪尼的恐怖</p>
<p>The Horror at Oakdeene</p>
</h2>
<p>译者:张三</p>
</div>
Is this just bad practice or can cause some serious problems?
|
If you need that layout in your titles, then use <span> tags instead of <p>. And give those spans the property "display: block" (and all others styles you wish).