HTML Tutorial

HTML Tag: <wbr>

Usage of <wbr>:

The <wbr> tag is used to specify where a line break may occur in text. It does not guarantee a line break but provides a suggested break point when the text is too wide for the display area.

Attributes of <wbr>:

  • None

Examples with <wbr>:

  • With line break:
<p>This is a very long sentence that may be too wide for the display area. &lt;wbr&gt; So a line break may occur here.</p>
  • Without line break:
<p>This sentence is not too long for the display area, so no line break will occur at the &lt;wbr&gt; tag.</p>

Exploring the <wbr> tag:

<html>
<head>
  <title>Exploring the &lt;wbr&gt; Tag</title>
</head>
<body>
  <h1>Example of &lt;wbr&gt; Tag</h1>
  <p>This sentence is very long and may require a line break. &lt;wbr&gt; If the display area is narrow enough, a line break will occur at the &lt;wbr&gt; tag.</p>
</body>
</html>