gouri - 7:39 pm on Jul 3, 2013 (gmt 0)
Personally, I would use <br> and have not noticed any drawbacks.
I think that I'll use <br /> then.
As an aside -- I notice that you appear to be using XHTML markup. This is considered harmful unless always accompanied with the appropriate application/xhtml+xml Content-Type. You are much better off forgetting XHTML ever existed (unless you truly need XML capabilities in your document) and stick to HTML4.01 or, better yet, HTML5.
Can you tell me what is the appropriate application/xhtml+xml Content-Type?
I think that the template which I use is XHTML, and that's the reason for the web pages being in XHTML. If I am using a template, is there a way for me to decide what I want to use (e.g. HTML 4.01 or HTML 5)?
Without the words themselves there's no way to see why you need the line break, or if it's e.g a title and a subtitle. But if it indeed is just one title, then <br /> would seem to be a very good choice.
Looks like I felt that <br /> was not good to use, but after reading what you wrote, <br /> would be good to use.
If the title would make sense on one line, but you want to control where the line break goes due to / in case of a narrow rendering, then you could opt for nobreak spaces instead on regular spaces to prevent the break from creating weird effects.
Can you explain this to me more? Is nobreak space Would this go after Word 2 if you wanted to have Word 3 on the same line as Word 2, but the browser was showing it on the second line without using ?
<h2>Word 1 Word 2 Word 3
Word 4 Word 5</h2>