br Element

Description

There are two elements that you can use to deal with line breaks in content: the br and wbr elements.

The br element introduces a line break. The style convention is to move subsequent content onto a new line.

The br element may be used only when line breaks are part of the content.

The br element should not be used to create paragraphs or other groupings of content.

Example

The following code ueses the br Element.


<!DOCTYPE HTML>
<html>
<body>
  I like<!--from w  ww  .  j a  v a2 s.c  o m-->
  <br /> HTML,
  <br /> CSS,
  <br> Javascript.
</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