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.

Example:


<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.

Example


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>line break</title>
</head>

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

</body>
</html>


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...