ForumsProgramming ForumHTML

15 6484
TheGr8est
offline
TheGr8est
704 posts
Nomad

I used to be VERY good at it but now I 4got most of what I knew.
How do you start a new line (basic enter button) using HTML?

Thnx.

  • 15 Replies
strouthas
offline
strouthas
24 posts
Nomad

<br />

TheGr8est
offline
TheGr8est
704 posts
Nomad

thnx a ton, u really helped me.

TheGr8est
offline
TheGr8est
704 posts
Nomad

actuall, I tried it out and it didnt work good? what should I do???

strouthas
offline
strouthas
24 posts
Nomad

Hello
<br />
<br />
world

copy/paste that in a file called a.html, save it and open it with any browser.
There is not a chance in a million it won't work.

TheGr8est
offline
TheGr8est
704 posts
Nomad

it doesnt work!
look at the first paragraph in my profile!

strouthas
offline
strouthas
24 posts
Nomad

Well... Read carfefully what it says under the biography box in control panel: "No HTML allowed"...

TheGr8est
offline
TheGr8est
704 posts
Nomad

but my links work? what am i supposed to do?

strouthas
offline
strouthas
24 posts
Nomad

It seems that accepts escape sequences, so use \
\
instead of <br /> and it will change line succesfully.

strouthas
offline
strouthas
24 posts
Nomad

oops it didn't show correctly. Use \\ r \\ n (without spaces) instead of <br />

strouthas
offline
strouthas
24 posts
Nomad

single backslash 'r' single backslash 'n'. It has some issues here also

ExplosionsHurt
offline
ExplosionsHurt
249 posts
Nomad

The biography uses a WYSIWYG editor. No HTML is required.

Darksaber
offline
Darksaber
191 posts
Nomad

what do you think of this?
<html>
<body>
<center>
<h1>Traffic Light</h1>
<form name="light">
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><red>
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><yellow>
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><green>

<input TYPE="button" value="GO"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:green;width:140; height:140';">

<input TYPE="button" value="SLOW"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:yellow;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:white;width:140; height:140';">

<input TYPE="button" value="STOP"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:red;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:white;width:140; height:140';">
</form>
</body>
</html>

Darksaber
offline
Darksaber
191 posts
Nomad

not shure what happend?
<code><html>
<body>
<center>
<h1>Traffic Light</h1>
<form name="light">
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><red>
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><yellow>
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><green>

<input TYPE="button" value="GO"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:green;width:140; height:140';">

<input TYPE="button" value="SLOW"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:yellow;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:white;width:140; height:140';">

<input TYPE="button" value="STOP"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:red;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:white;width:140; height:140';">
</form>
</body>
</html></code>

Darksaber
offline
Darksaber
191 posts
Nomad

hmmm
ok try this

<html>
<body>
<center>
<h1>Traffic Light</h1>
<form name="light">
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><red>
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><yellow>
<input type="text"style="background-color:#FFFFFF;width:140; height:140">&lt><green>

<input TYPE="button" value="GO"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:green;width:140; height:140';">

<input TYPE="button" value="SLOW"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:yellow;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:white;width:140; height:140';">

<input TYPE="button" value="STOP"

onClick="this.form.elements[0].value='';this.form.elements[1].value='';this.form.elements[2].value='';
this.form.elements[0].setAttribute('style', 'background-color:red;width:140; height:140';
this.form.elements[1].setAttribute('style', 'background-color:white;width:140; height:140';
this.form.elements[2].setAttribute('style', 'background-color:white;width:140; height:140';">
</form>
</body>
</html>
ExplosionsHurt
offline
ExplosionsHurt
249 posts
Nomad

The forums only allow certain tags of HTML to be parsed. This prevents people from hacking or disrupting the servers by using <script> tags.

Showing 1-15 of 15