DEV Community

Cover image for HTML tags | wbr
Carlos Espada
Carlos Espada

Posted on • Updated on

HTML tags | wbr

It is used to specify where in the text there can be a line break. When a text is too long, the browser will cut it where it deems appropriate. With <wbr> opportunities are indicated for it to do it where we want.

It has an opening tag but not a closing tag, despite being an empty element.

It does not introduce a hyphen at the cut point of the text. If you want to achieve this effect, you have to use the entity &shy;.

  • Type: inline
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Top comments (1)

Collapse
 
eminaltan profile image
Emin Altan

Here I have a question

We'll can break paragraph with wbr element and CSS but which one?