HTML wbr tag

HTML wbr element offers line break opportunity. <br/> breaks a line, but <wbr> breaks the line when needed.

<!--We take an example of one long word which is combination of small words separated by '<wbr>'. This tag provides opportunity for line break.-->
<p>Thedifferencebetweenlinebreakandlinebreakopportunityisthatitgivesopportunitytowraptexttomakeitreadable.</p>
<p>The<wbr>difference<wbr>between<wbr>line<wbr>break<wbr>and<wbr>line<wbr>break<wbr>opportunity<wbr>is<wbr>that<wbr>it<wbr>gives<wbr>opportunity<wbr>to<wbr>wrap<wbr>text<wbr>to<wbr>make<wbr>it<wbr>readable.</p>
</>

Thedifferencebetweenlinebreakandlinebreakopportunityisthatitgivesopportunitytowraptexttomakeitreadable.

Thedifferencebetweenlinebreakandlinebreakopportunityisthatitgivesopportunitytowraptexttomakeitreadable.

Tag omission

There is no end tag of wbr

Global Attributes

All the global attributes are applicable on the <wbr> element.


Was this article helpful?

 

Email:

Message: