<br>

  • Revision slug: HTML/Element/br
  • Revision title: br
  • Revision id: 17704
  • Created:
  • Creator: PablO
  • Is current revision? No
  • Comment

Revision Content

Summary

Line break element produces a line break in text (carriage-return). It is usefull for writing poem or address, where it is important to write everything in new line.

Example

Mozilla Foundation<br>
1981 Landings Drive<br>
Building K<br>
Mountain View, CA 94043-0801<br>
USA

Above HTML will output:

Mozilla Foundation
1981 Landings Drive
Building K
Mountain View, CA 94043-0801
USA

Notes

Do not use <br> to increase gap between text, use CSS margin property.

See also

{{wiki.template('HTML:Element_Navigation')}}

{{ wiki.languages( { "pl": "pl/HTML/Element/br" } ) }}

Revision Source

<h3 name="Summary"> Summary </h3>
<p><b>Line break</b> element produces a line break in text (carriage-return). It is usefull for writing poem or address, where it is important to write everything in new line.
</p>
<h3 name="Example"> Example </h3>
<pre>Mozilla Foundation&lt;br&gt;
1981 Landings Drive&lt;br&gt;
Building K&lt;br&gt;
Mountain View, CA 94043-0801&lt;br&gt;
USA
</pre>
<p>Above HTML will output:
</p><p>Mozilla Foundation<br>
1981 Landings Drive<br>
Building K<br>
Mountain View, CA 94043-0801<br>
USA
</p>
<h3 name="Notes"> Notes </h3>
<p><b>Do not</b> use <code>&lt;br&gt;</code> to increase gap between text, use <a href="en/CSS">CSS</a> <a href="en/CSS/margin">margin</a> property.
</p>
<h3 name="See_also"> See also </h3>
<ul><li> <a href="en/HTML/Element/address">HTML Address element</a>
</li><li> <a href="en/HTML/Element/p">HTML Paragraph element</a>
</li></ul>
<p>{{wiki.template('HTML:Element_Navigation')}}
</p>{{ wiki.languages( { "pl": "pl/HTML/Element/br" } ) }}
Revert to this revision