Loading...
HTML <wbr> Tag

HTML <wbr> Tag

In this tutorial, we will learn about wbr tag in HTML with the help of examples.


<wbr> Tag

Wbr tag <wbr> (Word Break Opportunity) tag is used to define a line break point if needed.

Note : The <wbr> tag will automatically break the word if it is too long to fit in the given area.

Syntax

<wbr>......... </wbr>

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Wbr Element</title>
  </head>
  <body>
    <p width = "200px"><wbr>This is the sentence in wbr tag.
    </wbr></p>
  </body>
</html>

Output

This is the sentence in wbr tag.


Global Attribute

Wbr Tag support all the global attributes of HTML.


Event Attribute

Wbr Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of <wbr> tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML Global Attributes.

- Related Topics