Answer the question
In order to leave comments, you need to log in
Is it possible to use h1. ?
Good day, please tell me if I have an h1 tag and I want the whole sentence to be on the desktop and hide some word on the mobile phone (how it doesn’t fit in the block) - is it possible?
---
And the second question is if you use a tag in the h1 tag
- will it somehow affect search engine optimization? Is it possible to do so?
Answer the question
In order to leave comments, you need to log in
The h1 tag should only be used as a header, it cannot be used as a container. There are other tags for this, such as . But in this case, use span. Then we get:
@media(max-height:990px){
.top__title span{
display:none;
}
}
and on a mobile phone to hide some word (how it doesn’t fit in a block) - is it possible so?
And the second question is if you use a tag in the h1 tag
- will it somehow affect search engine optimization? Is it possible to do so?
H1 doesn't like any nested tags.
Dig in the direction of CSS overflow ellipsis, it hides the "extra" content itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question