HTML line Break

When  we write a paragraph and we want to a line break but without starting a new paragraph then we use the <br/> element.


<p>your<br/>audi is <br/>invaluables</p>

HTML Line Break Element produces a line break in the text. It is useful where the division of lines is significant like writing a poem or an address. Break Element  <br/> is not used to increase the gap between lines of text.
Use <br/> if you want a line break (a new line) without starting a new paragraph:
The <br/> element is an empty HTML element. It has no end tag.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>line break</title>

<p>Half Care is Diabetes <br />
can lead to Complications.</p>


Result above HTML page

Half Care is Diabetes
can lead to Complications

No comments:

Post a Comment

Please do not enter any spam link in the comment box.

Related Posts

What is the Use of isNaN Function in JavaScript? A Comprehensive Explanation for Effective Input Validation

In the world of JavaScript, input validation is a critical aspect of ensuring that user-provided data is processed correctly. One indispensa...