ForumsProgramming ForumHTML

15 2462
TheGr8est
offline
TheGr8est
706 posts
505

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
30

<br />

TheGr8est
offline
TheGr8est
706 posts
505

thnx a ton, u really helped me.

TheGr8est
offline
TheGr8est
706 posts
505

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

strouthas
offline
strouthas
24 posts
30

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
706 posts
505

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

strouthas
offline
strouthas
24 posts
30

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

TheGr8est
offline
TheGr8est
706 posts
505

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

strouthas
offline
strouthas
24 posts
30

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

strouthas
offline
strouthas
24 posts
30

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

strouthas
offline
strouthas
24 posts
30

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

ExplosionsHurt
offline
ExplosionsHurt
251 posts
40

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

Darksaber
offline
Darksaber
191 posts
230

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
230

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
230

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
251 posts
40

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