Help:Line-break handling: Difference between revisions

Content deleted Content added
 
(8 intermediate revisions by 3 users not shown)
Line 39:
{{shortcut|H:BR}}{{anchor|<br> or <br />|br|br/|br /}}
 
<code><nowiki><br></nowiki></code>, <code><nowiki><br ></nowiki></code>, <code><nowiki><br/></nowiki></code>, <code><nowiki><br /></nowiki></code>
 
The [[MediaWiki]] software uses any of them for a single forced line break. All of them are converted to {{tag|br|s}} in the HTML that browsers read.
Line 52:
}}
 
The example below includes fivefour forms, including the invalid <code><nowiki></br></nowiki></code>, that are rendered as line breaks and two that display as plain text.
<div style="display:inline-table; border: 2px solid limevar(--border-color-content-added); padding: 0.5em;">
'''Wiki source'''
 
<nowiki>One <br>Two <br >Three </br/>Four <br />Five < br />Six </ br>Seven </ br>Eight</nowiki>
</div>
 
<div style="display:inline-table; border: 2px solid limevar(--border-color-content-added); padding: 0.5em;">
'''Rendered result'''
 
One <br>Two <br >Three </br/>Four <br />Five < br />Six </ br>Seven </ br>Eight
</div>
 
Line 399:
 
== See also ==
* [[metamw:HelpManual:Newlines and spaces]]
* {{tl|break}}
* {{tl|clear}}