The HTML tag is an inline element that allows a browser to insert a line break in a block of text. It is useful for creating breaks in long words or addresses when a window is resized. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

If you shrink the window enough, you see the following line break into smaller sections.

Thisisasupersuperlongwordthatwillbreakifyou justkeeponshrinkingthebrowserwindowuntilitgets smallerandsmallerandsmallerandsmaller.

Example result

If you shrink the window enough, you see the following line break into smaller sections.

The element is usually nested within opening and closing tags.

  • Example of code
  • Example result
  • Attributes
  • Compatibility
  • Related information

Thisisasupersuperlongwordthatwillbreakifyoujustkeeponshrinkingthebrowserwindowuntilitgetssmallerandsmallerandsmallerandsmaller.

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the tag does not have any unique attributes, it does utilize all of the standard attributes.

Compatibility

Address,
, Browser, Compatibility, Line break, Web design terms

  • HTML and web design help and support.