HTML Br Tag - W3Schools
Có thể bạn quan tâm
Example
Insert single line breaks in a text:
<p>To force<br> line breaks<br> in a text,<br> use the br<br> element.</p> Try it Yourself »More "Try it Yourself" examples below.
Definition and Usage
The <br> tag inserts a single line break.
The <br> tag is useful for writing addresses or poems.
The <br> tag is an empty tag which means that it has no end tag.
Tips and Notes
Note: Use the <br> tag to enter line breaks, not to add space between paragraphs.
Browser Support
Element | |||||
---|---|---|---|---|---|
<br> | Yes | Yes | Yes | Yes | Yes |
Global Attributes
The <br> tag also supports the Global Attributes in HTML.
Event Attributes
The <br> tag also supports the Event Attributes in HTML.
More Examples
Example
Use <br> in a poem:
<p>Be not afraid of greatness.<br>Some are born great,<br>some achieve greatness,<br>and others have greatness thrust upon them.</p> <p><em>-William Shakespeare</em></p> Try it Yourself »Related Pages
HTML tutorial: HTML Paragraphs
HTML DOM reference: BR Object
Default CSS Settings
None.
❮ Previous Complete HTML Reference Next ❯ ★ +1 W3schools Pathfinder Track your progress - it's free! Log in Sign UpTừ khóa » Html Br Options
-
The
HTML Element Produces A Line Break In Text (carriage-return). It Is Useful For Writing A Poem Or An Address, Where The Division Of Lines Is Significant. ... Technical Summary. -
Add A Line Break In HTML - Tutorial - TeachUcomp, Inc.
-
Using Br To Insert Line Breaks In HTML: Here's How »
-
HTML
Tag -
Line Break In HTML Select Option? - Stack Overflow
-
HTML
Tag - W3docs -
Br | Dash For Python Documentation | Plotly
-
HTML
Tag - GeeksforGeeks -
Main Tips On HTML Line Break - BitDegree
-
HTML Line Break – How To Break A Line With The HTML
Tag -
What Is The Best Alternative To Repetitive Typing Of
Tags In HTML ... -
Alignment, Font Styles, And Horizontal Rules In HTML Documents
-
HTML Standard
-
Br Tag In HTML - Scaler Topics