In HTML, what is tha purpose of <wbr> tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

In HTML, what is tha purpose of <wbr> tag?

I never used such a tag, because not a possible way of purpose.

18th Feb 2020, 6:07 PM
Hari
Hari - avatar
9 Answers
+ 3
The <wbr> (Word Break Opportunity) tag specifies where in a text it would be ok to add a line-break. Tip: When a word is too long, or you are afraid that the browser will break your lines at the wrong place, you can use the <wbr> element to add word break opportunities.
18th Feb 2020, 10:37 PM
Kevin Krüger
Kevin Krüger - avatar
+ 2
18th Feb 2020, 6:40 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
<br> forces a line break at a specified position. <wbr> may insert a line break if the browser decides that it is necessary.
19th Feb 2020, 3:37 AM
JAYANTHI SAI GOPAL
JAYANTHI SAI GOPAL - avatar
0
Thanksdevanille
19th Feb 2020, 4:52 AM
Hari
Hari - avatar
0
JAYANTHI SAI GOPAL <wbr> tag work is a line break.!? It's correct. Please clarify.
19th Feb 2020, 4:55 AM
Hari
Hari - avatar
0
Ya it is a line break tag
19th Feb 2020, 2:27 PM
JAYANTHI SAI GOPAL
JAYANTHI SAI GOPAL - avatar
0
JAYANTHI SAI GOPAL this is word break or line break?
19th Feb 2020, 2:59 PM
Hari
Hari - avatar
0
hariharan it is a line break see may mention just above the your comment
19th Feb 2020, 3:02 PM
JAYANTHI SAI GOPAL
JAYANTHI SAI GOPAL - avatar
0
Ok
19th Feb 2020, 3:04 PM
Hari
Hari - avatar