HTML - tags - w....

revision:


"wbr" tag : specifies where to add a line-break in a text

The <wbr> (Word Break Opportunity) tag specifies where in a text it would be ok to add a line-break. When a word is too long, the browser might break it at the wrong place. You can use the <wbr> element to add word break opportunities.

A word break opportunity is a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.

Attributes: the <wbr> element supports the global attributes and events attributes.

Syntax : <wbr> . . . </wbr>

some examples

example

This is a veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongwordthatwillbreakatspecificplaceswhenthebrowserwindowisresized.

Codes:

                    <p class="spec">This is a veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryvery<
                        wbr>longwordthatwillbreakatspecific<wbr>placeswhenthebrowserwindowis
                        resized.</p>
                

example

http://this.is.a.really.long.example.com/With/deeper/level/pages/deeper/level/pages/deeper/level/pages/deeper/level/pages/deeper/level/pages

Codes:

                    

http://this<wbr>.is<wbr>.a<wbr>.really<wbr>.long<wbr>.example<wbr>. com/With<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages /deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/ deeper<wbr>/level<wbr>/pages</p>