<wbr>



HTML <wbr> Tag


The <wbr> tag specifies a text break opportunity.

Sometimes the word/sentence exceeds a particular space and keep on extending, to break it <wbr> tag is used.

<br> and <wbr> tags are used for line breaking, but both are much different. Based on the situation, either one of them can be used.

While using <br> tag, the line will break instantly. But <wbr> tag breaks the line only if needed.


Example :

<p>word1 word2 word3<wbr>word1 word2 word3<wbr>word1 word2 word3<wbr>word1 word2 word3<wbr>word1 word2 word3<wbr>word1 word2 word3<wbr>word1 word2 word3<wbr>word1 word2 word3<wbr>word1 word2 word3<wbr>word1 word2 word3</p>

<p>word1 word2 word3<br>word1 word2 word3<br>word1 word2 word3<br>word1 word2 word3<br>word1 word2 word3<br>word1 word2 word3<br>word1 word2 word3<br>word1 word2 word3<br>word1 word2 word3<br>word1 word2 word3</p>

Output :