Inserting line break in html text
How can I insert a line break in formatting html paragraph?
I am confuse in using the <BR>, <PRE>, and &Â nbps tagline in html.
Can you help me differentiate their function?
Thanks
How can I insert a line break in formatting html paragraph?
I am confuse in using the <BR>, <PRE>, and &Â nbps tagline in html.
Can you help me differentiate their function?
Thanks
<br> tag uses for a single line break. <br> tag is an empty tag where have no end tag. But in XHTML, <br> tag have ending tag which is </br>. There needed to close <br> tag by use </br> as a ending tag. <br> forces a line to break where it’s put.
Example 1 :
Techyv.com <br>
I love you <br>
Example 2
<br>Techyv.com</br>
<br> I love you </br>
Nbsp; means Non breaking space. We can use that code for use as tab button in keyboard.
Example :
I Love You TechyV.com,<br>
<pre> tag means Pre Formatting Tag. <pre> tag used for special circumstances where we want to display the text as it is typed. That’s why it called pre formatting tag.
Example :
<pre>
I love You,
    I love You,
I love You,
    I love You!
</pre>
For instance, without break tags, the following:
<BR> tag in HTML is used to provide single line break, and it do not require a closing tag.
Â