PDA

View Full Version : New Line Tips in HTML



jacksamwhite
17 Dec 2012, 06: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:
<br><br><br><br><br>
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.

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

James_Smith
22 Dec 2012, 02: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, 12: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.

Morningwalker
25 Dec 2012, 06:35 AM
<script>
document.write("Hello World!")
</script>

robotforce
26 Dec 2012, 02: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, 03: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.

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

robotforce
11 Jan 2013, 11:19 PM
Hi Pixel,
Thanks for the reply , I think this ans is help me

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

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

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