Need some help with an HTML code

Logan
by Logan · 11 posts
14 years ago in IMVU Homepage Codes
Posted 14 years ago · Author
im having trouble with adding background colour and changing font colours though help me out?
<html>
<head>
<title>Lets use headers </title>
</head>
<body>
<h1> This is header 1 </h1>
<h2> This is header 2 </h2>
<h3> This is header 3 </h3>
<h4> This is header 4 </h4>
<h5> This is header 5 </h5>
<h6> This is header 6 </h6>

<hr>
<p> im learning html </p>
<p colour="#777777"> im going to learn it quickly <br>
you'll see that </p>
<big> this is gonna be big </big><br>
<em> i insist </em><br>
<small> this is soo small </small><br>
<strong> this is gunna look strong rawr </strong>
<p> <sub>Here</sub> is what <sup>Logan</sup> wrote </P><hr>
<code> Logan ish da bomb </code>
<pre>
Logan Knows how to rock!
</pre>
<p align="center"> LoGaN </p>
<hr width="20%" height="20" align="left">
<p align="centre"> This is my stuff
<hr width="75%">
</p>
<p align="centre"> This is my too
<hr width="75%" align="right">
<p align="right"> logan knows how to program now </p>
</p>
</body>
</html>


well thats my code help me locating and correcting the errors?
Posted 14 years ago
For background color, change:

Code
body


to

Code
body bgcolor="blue"


For font:

Code
<font size="3" color="red">This is some text!</font>
<font size="2" color="blue">This is some text!</font>
<font face="verdana" color="green">This is some text!</font>


<font size="3" color="red">This is some text!</font>
<font size="2" color="blue">This is some text!</font>
<font face="verdana" color="green">This is some text!</font>
Posted 14 years ago · Author
got that don but why cant i use the colour chart codes?
Posted 14 years ago
There are many ways to change the color of a text :lol:

What do you mean by color chart? Colors must be written in HEX code starting by # [as <body text="#FFFFFF"> would put the default page text in white]

But there are some colors with their own text names, and you can call that one text="white" as well. Here you can find the standrat names for many colors :wink:
Posted 14 years ago · Author
okay ty for the chart xD

but what about the background colout because i did try out these codes but they didnt really work for me
Posted 14 years ago
When you put <body>, don't leave it as it is, but add it parameters.
<body bgcolor="black">

Got it? Also, when you're posting here your codes, disable HTML. Even with the code tag it makes strange things O_o

Try this code I just made up:

Code
<html>
<body bgcolor="black" text="darkgreen" style="text-align:center">
<p>This page has black background and green text. It's cool and it saves energy for your monitor =P</p><br>
<p>This
will be displayed
in only one line</p><br>
<p>And this text</p><p>will be splitted.</p><br>
<p>Get used to write in the paragraph (p) tag. It's useful</p><br>
<font face="comic sans ms" color="white">
<p>Now I'll write in a white comic sans just to annoy you!!</p>
</body>
</html>
Posted 14 years ago · Author
lmao how dare choo irritetes meh with comic sans xD

ty Da
Posted 14 years ago
so cool :P
Posted 14 years ago
nice :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT