How to put two <h1> elements together? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to put two <h1> elements together?

How do you put two heading tags side by side? ex. <h1>hi</h1> <h1>there</h1> I want the second <h1> element to be in the same level as the first <h1>(side by side)

28th Nov 2016, 7:56 AM
KidCoder
KidCoder - avatar
4 Answers
+ 1
Semantically, to use two h1 like you wrote isn't correct. You can do like that: <section> <article> <h1>heading</h1> <h2>...</h2> ... </article> <article> <h1>heading</h1> ... </article> </section> Google semantic tags in html5. Good luck!
28th Nov 2016, 7:21 PM
Thiago Santos
Thiago Santos - avatar
0
Like this <h1> this is a heading <\h1>
28th Nov 2016, 9:29 AM
Richard
0
What @Richard said. if you want your text to be all in line (like this sentence is) then you'd do exactly as @Richard said. I don't understand why'd want to do a different way??? If you have a sound reason, then please explain further
28th Nov 2016, 2:53 PM
Pink Lemonade
0
<h1> header </h1> also the same <h1> header </h1>
28th Nov 2016, 6:46 PM
SADISU DAHIRU HASKE
SADISU DAHIRU HASKE - avatar