Jun 16, 2016

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 text. It is useful where the division of lines is significant like writing a poem or an address. Break Element  <br/>  is not use for 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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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