Can I use other tags into h1 tag, (or h2, h3, h4 .. etc ) ?
For example:
span {
color: red;
}
strong {
text-decoration: underline;
}
<h1>My <span>example</span> text</h1>
<h2>Can I <strong>use</strong> it?</h2>
<h3>Why I you </br> think so ... ? </h3>
Will it be these code valid and looks ok in SEO ?
2
Answers
To answer this type of question, you should look at the HTML specification.
The section on heading elements says:
which links to:
You can also test your code with a validation tool.
Note that
</br>
is never valid in HTML. It is an element where the start tag is mandatory and the end tag is forbidden.SEO questions of this nature are off-topic. You might try Webmasters instead.
Heading tags are beneficial for presenting content in an organized manner. In SEO perspective, it is always good to present data in a way that is easy for crawlers to crawl and get your website/web pages indexed. Using these tags makes easier for search engine crawlers to crawl your web pages effectively.
Using other tags can enhance readability and user experience for the webpage but using heading tags inside heading tags might harm your SEO. For SEO purpose, it is important to follow up SEO Guidelines for your website/webpage.
Hope these will help you understand more:
https://www.searchenginejournal.com/important-tags-seo/156440/
https://www.seoblog.com/2017/06/changing-tags-hurt-seo/