wbr Element

Description

wbr is called a Safe Line Break.

The wbr element is new to HTML5 and indicates where the browser could reasonably insert a line break to wrap content that is larger than the current browser window.

It is the browser that makes the decision as to whether or not a line break is actually used. The wbr element is a guide to suitable places to break content.

Example

The following code shows the use of the wbr element.


<!DOCTYPE HTML>
<html>
<body>
  This is a test: Super<!-- w  w w .java  2 s .c om-->
  <wbr>
  loooooooooooooooooooooooooong
  <wbr>
  word.
</body>
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed