• Hello, could someone tell me please what the differences between these 2 title with break title ! because i tried them both and both are working .

    <p>test line1 <br> <span class="h6"> testline2<br></p>

    test line 1 <br> <span class="h6"> testline 2

Viewing 5 replies - 1 through 5 (of 5 total)
  • What is the context?
    They both have an unclosed <span> tag.

    Thread Starter mohdaljaraba

    (@mohdaljaraba)

    @joyously product title I’d like to break it 2 lines

    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.

    Thread Starter mohdaljaraba

    (@mohdaljaraba)

    @joyously yes its h2 , so u suggest me to use the 2nd way ?

    test line 1 <br> <span class="h6"> testline 2

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘title break differences’ is closed to new replies.