View Full Version : New Line Tips in HTML

17 Dec 2012, 07:07 AM
Sometimes you want on a web page to be a large number of empty lines. If you do, you will have to use <br>
Simply insert <br> wherever you want there to be a new line.
For example, if you want 5 lines to be skipped, use this HTML code:
It will create this:

You can put the br tag nearly anywhere in your html document. Make sure that it is in the body, however.

19 Dec 2012, 02:02 AM
I agree my friend <br> is a nice tag for creating a new line.

22 Dec 2012, 03:33 AM
<br> tag:

- Generally, It is supported in all major browsers
- It inserts a single line break
- It is an empty tag with no end tag

Pixel Eden
22 Dec 2012, 01:54 PM
However because it is a "Empty Tag" or has no ending tag it is known as a self closing tag so instead of using "<br>" we use "<br />" with the advancement of HTML 5 and XHTML4.0 etc.

All though might I suggest adding a div for multiple lines.

<div style="height: 100px; with: 100%;"></div>

With the use of CSS you can simplify this even more so.

<style type="text/css">div.break {width: 100%; height: 100%; overflow: hidden;}</style>

<p>This is some text...</p>
<div class="break"></div>
<p>After a 100 px break, this is some more text...</p>
<div class="break"></div>
<p>After another 100 px break here is even more text.</p>

This is not only more acceptable but also more flexible. If you decide that 100px (4/5 x <br>) is to many then just change the CSS.

25 Dec 2012, 07:35 AM
document.write("Hello World!")

26 Dec 2012, 03:12 AM
Thanks friends ,
This is really great information thread .
Please tell me what is BB Code ? why we are use this code ?

Pixel Eden
06 Jan 2013, 04:01 AM
BBCODE is a way of controlling what HTML code users can put into a form. It's also got to do with MYSQL injections. Have a look at how the proccess is done on google. Can be a massive tool in your arsonry.

11 Jan 2013, 06:41 AM
Agree with you friend.. I think <br> tag is very essential for lines..

12 Jan 2013, 12:19 AM
Hi Pixel,
Thanks for the reply , I think this ans is help me

15 Jan 2013, 01:39 AM
<input type="text"> defines a one-line input field that a user can enter text into:
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">

16 Jan 2013, 07:43 AM
Thanks to all of you who made this thread more informative.

08 Feb 2013, 02:46 AM
HTML is use to create webpages and on page optimize site. It's unique.