HTML br Tag
-
HTML
<br/>
tag is use for break single line. -
<br/>
tag use for break the current line than after next text display on next line. -
<br/>
tag self-closing and does not support any specific attributes.
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML br tag</title>
</head>
<body>
<p>I am writing first line. <br /> I am still write on first line.</p>
</body>
</html>
<br /> Tag Attributes
HTML <br /> tag does not support any specific attributes.
Global Attributes
HTML <br /> tag support following global attributes.
Attributes | Value | Description |
---|---|---|
id | unique_name | Declared unique id for an element. |
class | class_name | Declared one or more classnames for an element. |
style | styles | CSS inline styles specify an element. |
title | title | Specify extra details of element contain, this will display as a "tooltip" for an elements. |
Event Attributes
HTML <br /> tag does not support any event attributes.
Browser Compatibility
- Google Chrome
Yes - Mozilla Firefox
Yes - Microsoft Edge
Yes - Opera
Yes - Safari
Yes