XHTML » Tags » br

Syntax:
<br />

The br tag is used to create a line break and is analogous to a carriage return. The flow of the display of the text and any images is halted on the current line, and the flow resumes on the next line starting at the left margin.

This is a self-closing tag. The blank space before the slash (/) is recommended for maximum browser compatibility.
 

Examples

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>DevGuru XHTML br tag</title>
</head>
<body>
My pseudotrophus "Acei" cichlid came from Lake Malawi in Africa.
<br />
The Showa Koi in my pond came from Japan.
</body>
</html>
Output:
My pseudotropheus "Acei" cichlid came from Lake Malawi in Africa.
The Showa Koi in my pond came from Japan.
Language(s): XHTML

See Also: