Joy
(@joyously)
What is the context?
They both have an unclosed <span> tag.
@joyously product title I’d like to break it 2 lines
Joy
(@joyously)
Depending on how it is output, the nested tags might not be valid HTML. But browsers are pretty lenient when rendering HTML. The other things, like RSS feeds, are not as lenient.
Usually the theme would use a heading like h2 for the title. I don’t think it’s a good idea to put a paragraph tag inside a heading.
You should consider that the title is used for other things, like search and window title, and in the RSS feed, so using as little HTML as possible is best.
@joyously yes its h2 , so u suggest me to use the 2nd way ?
test line 1 <br> <span class="h6"> testline 2
Joy
(@joyously)
If you really need it, yes, but you should close the span. If that span is working for you (does your theme have a h6 class defined?), leave it. Otherwise, take it out.