View Single Post
Old 01-16-2026, 01:29 PM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,915
Karma: 9553087
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by icearch View Post
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).
RbnJrg is offline   Reply With Quote