How to assign Heading to a Text

Hi, How do I assign a heading Example H1 to a Headline or text element?

Through the “Setup tag” and assign H1… or through the “Edit text” and select Heading 1???

Why there are two options and what is the difference??

Thanks!!

Hello @Iban,

Thanks for writing in!

Please be inform that text element is a text container. Any content you insert, the line breaks and new lines will be automatically converted into a <p> and <br> tag.

A headline element on the other hand is a container intended for heading tags. By default, it uses <h1> using a default styling.

Please be aware that in a text element, you can insert a custom html with a heading tag like this for example:

<h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer scelerisque eros eu pulvinar dictum.</h1> 

<p>Nunc egestas massa at elit bibendum, cursus fringilla nunc faucibus. Proin dignissim efficitur nunc a cursus. In luctus mi in nisi condimentum, sed ornare enim tempor. Praesent semper ultricies tellus, rutrum fermentum leo viverra at. Sed a venenatis ante, non aliquam tortor. Aliquam erat volutpat. Curabitur felis elit, rhoncus et molestie in, auctor euismod lorem. Etiam viverra hendrerit metus, vitae ullamcorper metus ultricies ut. Ut eu ex id ligula viverra auctor at quis urna.</p>

Meanwhile in a headline element, you cannot because if you do, then the output will be a nested heading tags which is not correct and valid. You will rely on the selection option which heading tag you will use.

Hope this explains it briefly.

I think so. let me try it again

Thanks!!

Let us know if that works!

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.