Title: title break differences
Last modified: October 30, 2020

---

# title break differences

 *  [mohdaljaraba](https://wordpress.org/support/users/mohdaljaraba/)
 * (@mohdaljaraba)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/title-break-differences/)
 * 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)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/title-break-differences/#post-13603322)
 * What is the context?
    They both have an unclosed `<span>` tag.
 *  Thread Starter [mohdaljaraba](https://wordpress.org/support/users/mohdaljaraba/)
 * (@mohdaljaraba)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/title-break-differences/#post-13603379)
 * [@joyously](https://wordpress.org/support/users/joyously/) product title I’d 
   like to break it 2 lines
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/title-break-differences/#post-13603480)
 * 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](https://wordpress.org/support/users/mohdaljaraba/)
 * (@mohdaljaraba)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/title-break-differences/#post-13604396)
 * [@joyously](https://wordpress.org/support/users/joyously/) yes its h2 , so u 
   suggest me to use the 2nd way ?
 * `test line 1 <br> <span class="h6"> testline 2`
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/title-break-differences/#post-13605005)
 * 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.

## Tags

 * [html in title](https://wordpress.org/support/topic-tag/html-in-title/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/title-break-differences/#post-13605005)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
