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)
4 Respostas
+ 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!
0
Like this
<h1> this is a heading <\h1>
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
0
<h1> header </h1>
also the same <h1> header </h1>