Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does hyphenation work?

hyphenation
0
Posted

How does hyphenation work?

0

HTML defines a spe­cial char­ac­ter for hyphen­ation. The soft- hyphen (­) is an invis­i­ble char­ac­ter that com­mu­ni­cates to web browsers allow­able line breaks within words. When a web browser wraps a line at a soft- hyphen, a hyphen is shown at line’s end. HTML also defines a zero- space char­ac­ter (​). Sim­i­lar to the soft- hyphen, the zero- space char­ac­ter com­mu­ni­cates allow­able line breaks within strings of text. But unlike the soft- hyphen, it does not show a hyphen at line’s end. This is ideal for forc­ing con­sis­tent wrap­ping of long URLs. It also can be used to force line breaks in unco­op­er­a­tive web browsers after hard- hyphens in words like “zero- space” and “soft- hyphen”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123