Is it required to keep <p><h1> together or any ONE is fine | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it required to keep <p><h1> together or any ONE is fine

i mean to write a paragragh you can use <p> but <h6> can also be used and both are almost identical just the font size changes ......my doubt is to write <h3> or any heading is <p> necessary ??

17th Aug 2018, 4:18 PM
Pilli Revant Krishna Sagar
Pilli Revant Krishna Sagar - avatar
3 Answers
+ 6
Use them appropriately, they looks identical but their semantic is totally different and trust me, it makes the difference once you start to worry about SEO.
17th Aug 2018, 5:25 PM
Maz
Maz - avatar
+ 5
Use h1 or any heading tag first, after this use p tag <h1> </h1> <p> </p>
17th Aug 2018, 4:27 PM
Bug Slayer
+ 2
You dont need <p> for headings. The 'h' tags are enough for headings.
17th Aug 2018, 5:04 PM
Mitali
Mitali - avatar