The XHTML WYSIWYG Editor For Desktop & Web Applications

br

Definition

The br element forcibly breaks (ends) the current line of text. Web browsers render these line breaks as hard returns.

Example

  1. <h1>My First Haiku</h1>
  2. <p>autumn<br />season of hard work<br />splendid harvest</p>

Best practice

Using line breaks for visual effect (such as creating additional spacing between text) is considered bad practice.

In most WYSIWYG editors, pressing SHIFT + ENTER creates a line break.

Attributes

Common core attributes

class
(NameTokens) This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or set of class names. Multiple class names must be separated by white space characters. Class names are typically used to apply CSS formatting rules to an element.
id
(ID) This attribute assigns an ID to an element. This ID must be unique in a document. This ID can be used by client-side scripts (such as JavaScript) to select elements, apply CSS formatting rules, or to build relationships between elements.
title
(Text) This attribute offers advisory information. Some Web browsers will display this information as tooltips. Assistive technologies may make this information available to users as additional information about the element.

Common style attribute

style
(Text) This attribute specifies formatting style information for the current element. The content of this attribute is called inline CSS. The style attribute is deprecated (considered outdated), because it fuses together content and formatting.

Contains

  • Nothing

See also