To achieve the equivalent in HTML, see The <wbr> tag.
Considering the fact that URLs are most often lengthy, you might find yourself in a situation where you want to “wrap” them over more than one line. Up until recently, I have been using a soft-enter (SHIFT + ENTER) to start a new line in a paragraph before the end of the line is reached. The HTML equivalent of a soft-enter is the line-break: <br />
.
Where
When it is necessary to wrap a URL over 2 or more lines we make the break in the following places:
After a single forward slash usually produces the best results..
- After a : (colon) or a // (double forward-slash)
- After a / (single slash), a ~ (tilde), a . (full stop), a , (comma), a - (hyphen), an _ (underscore), a ? (question mark), a number sign, or a % (percent symbol)
- Before or after an = (equals sign) or an & (ampersand)
How
The correct way to address this is to use a special character called a No-Width Optional Break. This ingenious little character specifies at which point the text could wrap to the next line should it be necessary.


- Activate the Insert menu, click the Symbol option & select More Symbols…
- Activate the Special Characters tab
- Scroll down and select the No-Width Optional Break
- Click the Insert command button then close the dialog window
References:
- https://guides.lib.uw.edu/law/wordtips/links
- https://www.techrepublic.com/article/use-words-no-width-optional-break-character-to-facilitate-wrapping/