Is it a good practice to put <p> or <h> tags inside <li> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it a good practice to put <p> or <h> tags inside <li> ?

So, will it be good for SEO, if I put <heading>(h1-h6) tags inside <li> ?

8th Feb 2021, 4:02 PM
DK John
DK John - avatar
5 Answers
+ 2
something as: <ul> <li><h3>brand model 1</h3></li> ... <li><h3>brand model n</h3></li> </ul> or: <ul> <li> <h3>brand model 1</h3> <p>description</p> </li> ... <li> <h3>brand model n</h3> <p>description</p> </li> </ul> ? in first case, SEO may not correctly recognize meaning of heading ^^
8th Feb 2021, 4:23 PM
visph
visph - avatar
+ 1
not good, not bad... however why do you want to put <h1-6> tags inside <li>? ... if you want to put only one...
8th Feb 2021, 4:08 PM
visph
visph - avatar
+ 1
For example, my article is about five best Laptops. Obviously, I will set the Brand and Model name as the heading, before explain. So, this case if I want the browser understand that this heading is about one of the 5 laptop.
8th Feb 2021, 4:17 PM
DK John
DK John - avatar
0
Yes, your second model.
8th Feb 2021, 4:25 PM
DK John
DK John - avatar
0
Visph sir thank you
8th Feb 2021, 4:26 PM
DK John
DK John - avatar