HTML help

Status
Not open for further replies.

d4l

Est. Contributor
Messages
955
Role
Adult Baby, Diaper Lover, Sissy, Other
long story short im in a computer programming class now with an instructor who is sort of un qualified to teach it(when it takes you 5 minutes to find the source of a page come on)

so here my question when you are typing in color of text and finish the paragraph how do you change colors after ending the tags i start a new paragraph with a new color and it still prints in the old color any help would be greatly appreciated.

to show what i mean
this:
Code:
<html>
<title>
Cory's Practice Page
</title>
<body bgcolor=black text=red>
Hey Adisc help me out
</body>
<p>
<br>
<body text=blue>
Please!
</body>

</html>
results in this:
http://www.adisc.org/gallery/showphoto.php/photo/228/ppuser/19/big/html_practice

When "please!" should be blue but i can't seem to get it to change so please tell me what i am missing here.
 

Vladimir

Est. Contributor
Messages
1,784
Role
Private
Replace <body text=blue> by <font color="blue"> and type </font> after "Please!"

Hope it helps.
 
  • Like
Reactions: d4l

ion.blue

Est. Contributor
Messages
34
Role
Diaper Lover
I suggest heading over to W3schools to learn the basics of HTML.

The basic structure of a HTML document is
Code:
<html>
<head>
<title>Title of page</title>
</head>
<body>
Your <b>page elements</b> <i>goes in here</i>
</body>
</html>
You need to have one body tag, so replacing the body tags with font technically is still wrong. You should still add body tags "outside".
 
  • Like
Reactions: d4l

d4l

Est. Contributor
Messages
955
Role
Adult Baby, Diaper Lover, Sissy, Other
Thanks for the help dark and ion.
 

Vladimir

Est. Contributor
Messages
1,784
Role
Private
You're welcome... Cory. :3

By the way, if you ever want to add some interactive elements to your webpage, there's always JavaScript. Or if you want to make it more attractive but stick with basic HTML, you can always mess up with marquees and stuff.
 

ayanna

Est. Contributor
Messages
1,403
Role
Adult Baby, Babyfur
Simple...to look right you should do it like this...

<html>
<title>
Cory's Practice Page
</title>
<body bgcolor=black>
<font color=red>Hey Adisc help me out</font>
<p>
<br>
<font color=blue>
Please!,/font>
</body>

</html>
 

chevre

Est. Contributor
Messages
1,434
Role
Diaper Lover
I know you already got some answers, but I thought I'd post an alternate solution:

HTML:
<html>
  <head><title>Cory's Practice Pagee</title></head>
  <body style="background-color: black;">
    <p style="color: red;">Hey Adisc help me out</p>
    <p style="color: blue;">Please!</p>
  </body>
</html>
 

starshine

Est. Contributor
Messages
3,277
Role
Private
Actually, chevre's answer is the best. Shows up in all browsers, less errors.

And Ayanna, you forgot quotation marks.
 

Tigger

Banned
Messages
432
Role
Adult Baby, Diaper Lover
Using colours in the body tag and using font tags is a feature of html 4 and is deprecated. The Preffered standard to use now is XHTML. You should be using css to apply style/formatting rules to span/div/paragraph tags. That page is also invalid as well because it has no doctype declaration, you haven't got your attribute values in quotes and you haven't set a character encoding. Something like this would be better:
Code:
<?xml version="1.1" encoding="UTF-8"?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title>Cory's Practice Page</title>
	<style type="text/css">
	/* <![CDATA[ */
	p.red {
		color: red;
	}
	p.blue {
		color: blue;
	}

	/* ]]> */
	</style>
</head>
<body>
<p class="red">Hey Adisc help me out</p>
<p class="blue">Some blue text too!!!</p>
</body>
</html>
 

d4l

Est. Contributor
Messages
955
Role
Adult Baby, Diaper Lover, Sissy, Other
i appreciate all your advanced answers but as of right now the only thing we are allowed to use is html for the foreseeable future.

lol wow this thread makes me fell like a nub:(
 

Tigger

Banned
Messages
432
Role
Adult Baby, Diaper Lover
Damn, if I had a teacher that stupid I'd tell him so. My teachers often get things wrong, they tend to get pissed off when I correct them :laugh:
 

d4l

Est. Contributor
Messages
955
Role
Adult Baby, Diaper Lover, Sissy, Other
Damn, if I had a teacher that stupid I'd tell him so. My teachers often get things wrong, they tend to get pissed off when I correct them :laugh:
Don't get me wrong i still respect and semi like the guy but i think he could be more,what's the word im looking for, prepared for the class. After the html(half the trimester) we go to making video games with dark basic so that should be fun.
 

Tigger

Banned
Messages
432
Role
Adult Baby, Diaper Lover
Is that basic as in visual basic, or actual basic like "20 goto 10" loll
 

Tigger

Banned
Messages
432
Role
Adult Baby, Diaper Lover
The purpose of the language is game creation using Microsoft's DirectX[...] I closed the window right there lol...
 
  • Like
Reactions: mm3

mm3

Est. Contributor
Messages
1,795
Role
Carer, Other
hahahahahahahahaha!

Thanks for the laugh before I went to bed :D
 
Status
Not open for further replies.
Top