/

HTML / CSS / JavaScript Tutorial

HTML Element: <wbr>

[this page | pdf | back links]

The HTML <wbr> element indicates a possible line-break (i.e. ‘word break opportunity’). It is new in HTML 5. When a word is long and the browser might break text lines in wrong places then <wbr> elements offer scope to add word break opportunities.

 

The attributes it can take are HTML global attributes and HTML event attributes.

 

To create or access such an element in JavaScript see here. The corresponding HTML DOM object supports standard DOM properties and methods. The default style applicable to this element is shown here.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Elements


Desktop view | Switch to Mobile