Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

<br>

<br
class=type
clear=none|left|right|all
id=value
style=style
title=text </br>

Inserts a line break. The amount of space depends on the browser but is usually the same as between lines in a paragraph. You do not need line breaks within a <pre> tag.

There is no end tag.

Attributes

class=type

Indicates the class to which the tag belongs. You can use the class attribute in a style sheet to create different styles that you want apply to a single HTML tag. For example, you might create three different styles for a heading <hn> tag. See Using the class attribute as a selector for more details.

clear=none|left|right|all

Use this attribute if you want to wrap text around a graphic. It makes the new line start below a graphic. The line break expands vertically until a clear left or right margin or until both margins are clear of the picture. The default is none.

Value…

Description…

none

Text appears immediately after the picture

left

Text appears below the picture at the next full left margin

right

Text appears below the picture at the next full right margin

all

Text appears below the picture at the next full left and right margins

id=value

Specifies a unique name for the tag. No two tags can have the same id on a single page. The value must begin with a letter followed by any alphanumeric character, a hyphen, an underscore, a colon or a full stop. You use it to reference a unique style for a tag or to manipulate the tag with a script.

style=style

Specifies style information. See Style sheets for more information.

title=text

For information only. Some browsers display the title when you move the mouse over the tag (like a tool tip).