
- HTML Home
- HTML Roadmap
- HTML Introduction
- HTML History & Evolution
- HTML Editors
- HTML Basic Tags
- HTML Elements
- HTML Attributes
- HTML Headings
- HTML Paragraphs
- HTML Fonts
- HTML Blocks
- HTML Style Sheet
- HTML Formatting
- HTML Quotations
- HTML - Comments
- HTML - Colors
- HTML - Images
- HTML - Image Map
- HTML - Frames
- HTML - Iframes
- HTML - Phrase Elements
- HTML - Code Elements
- HTML - Meta Tags
- HTML - Classes
- HTML - IDs
- HTML - Backgrounds
- HTML Tables
- HTML - Tables
- HTML - Table Headers & Captions
- HTML - Table Styling
- HTML - Table Colgroup
- HTML - Nested Tables
- HTML Lists
- HTML - Lists
- HTML - Unordered Lists
- HTML - Ordered Lists
- HTML - Definition Lists
- HTML Links
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML Color Names & Values
- HTML - Color Names
- HTML - RGB & RGBA Colors
- HTML - HEX Colors
- HTML - HSL & HSLA Colors
- HTML - HSL Color Picker
- HTML Forms
- HTML - Forms
- HTML - Form Attributes
- HTML - Form Control
- HTML - Input Attributes
- HTML Media
- HTML - Video Element
- HTML - Audio Element
- HTML - Embed Multimedia
- HTML Header
- HTML - Head Element
- HTML - Adding Favicon
- HTML - Javascript
- HTML Layouts
- HTML - Layouts
- HTML - Layout Elements
- HTML - Layout using CSS
- HTML - Responsiveness
- HTML - Symbols
- HTML - Emojis
- HTML - Style Guide
- HTML Graphics
- HTML - SVG
- HTML - Canvas
- HTML APIs
- HTML - Geolocation API
- HTML - Drag & Drop API
- HTML - Web Workers API
- HTML - WebSocket
- HTML - Web Storage
- HTML - Server Sent Events
- HTML Miscellaneous
- HTML - Document Object Model (DOM)
- HTML - MathML
- HTML - Microdata
- HTML - IndexedDB
- HTML - Web Messaging
- HTML - Web CORS
- HTML - Web RTC
- HTML Demo
- HTML - Audio Player
- HTML - Video Player
- HTML - Web slide Desk
- HTML Tools
- HTML - Velocity Draw
- HTML - QR Code
- HTML - Modernizer
- HTML - Validation
- HTML - Color Picker
- HTML References
- HTML - Cheat Sheet
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Character Entities
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
HTML - <br> Tag
Introduction to <br> Tag
The HTML <br> (line break) tag is used to insert a line break within the text or content on the webpage. Unlike the block-level elements like <p> or <div> the <br> tag does not create a new block of content, instead it moves the text to a new line while remaining within the same block of content. It is a self closing tag and does not depend on the end tag.
This tag is particularly used when formatting content requires breaks but does not permit the new paragraph or block, such as in poems, address.
Syntax
Following is the syntax of HTML <br> tag −.
<br>
Attributes
HTML br tag supports Global and Event attributes of HTML. A specific attribute accepted as well which is listed below.
Attribute | Values | Description |
---|---|---|
clear | No Value | This ensure that line breaks "cleared" floated or aligned elements above them. |
Example : Basic Usage
Let's consider the following example, where we are going to consider the basci usage of the <br> tag.
<!DOCTYPE html> <html> <body> <p> Geckos are a group of usually small, usually nocturnal lizards. <br> They are found on every continent except Antarctica. </p> </body> </html>
Example : Poem Formatting
Consider the following example, where we are going to format each line of the code using the <br> tag.
<!DOCTYPE html> <html> <body style="text-align:center"> <p><b>I'm A Little Spider</b><br>I'm a little spider,<br>watch me spin.<br>If you'll be my dinner.<br>I'll let you come in.</p> </body> </html>
Example : Address Formatting
In the following example, we are going to use the <br> tag for formatting the address.
<!DOCTYPE html> <html> <body style="text-align:center"> <p>Kavuri incore9<br>4th Floor TutorialsPoint<br>Madhapur, Hyderabad</p> </body> </html>
Supported Browsers
Tag | ![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|---|
br | Yes | Yes | Yes | Yes | Yes |