HTML Confusion

puglover

Disturber of Worldviews
Joined
Nov 26, 2002
Messages
9,643
Location
Kansas
Okay. I typed this...

<HTML>
<HEAD>
<TITLE>Boring Main Page</TITLE>
</HEAD>
<BODY BGCOLOR="#OOOOFF">

<H2>Yo!</H2>

<P>And welcome to Demented Cartoons. Feel free to explore, watch, enjoy, laugh, and dance.

<P><FONT COLOR="#OOFFOO> Have fun!</FONT COLOR="#OOFFOO>

<IMG SRC="Mr. No Teeth Bus Driver.swf">

</BODY>
</HTML>


and it came out....

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 \par \par \par \par \par \par
Yo!
\par \par
And welcome to Demented Cartoons. Feel free to explore, watch, enjoy, laugh, and dance.\par \par

\par \par \par \par \par \par }


The heading, background color, and text functioned okay, but what's with all the extra text? :confused:

What did I do wrong? :confused:
 
puglover said:
<P><FONT COLOR="#OOFFOO> Have fun!</FONT COLOR="#OOFFOO>
the font color need to have " at the end of it.
<P><FONT COLOR="#OOFFOO"> Have fun!</FONT COLOR="#OOFFOO">

which browser are you using to view this page?
 
And it wouldn't be #OOFFOO, it would be #00FF00.

Hex code goes 0123456789ABCDEF.
 
I cleaned up your code. Still not the way you want to be writing a website though.

Code:
<html>
<head>
	<title>Boring Main Page</title>
</head>
<body bgcolor="#0000FF">
	<H2>Yo!</H2>

	And welcome to Demented Cartoons. Feel free to explore, watch, enjoy, laugh, and dance.

	<p><spant style="color:#00FF00"> Have fun!</font>

	<p><img src="busdriver.swf" alt="Bus Driver" />

</body>
</html>

Look at the XHTML and CSS sections of http://www.w3.org/.

Also, not having any experience with them myself, I'm not sure, but I remember reading somewhere that shockwave files are called up differently than images. You may want to double check this.
 
.swf files should be used like this:

Code:
<embed SRC="YOUR URL" WIDTH="XX" HEIGHT="X" PLAY="true/false" LOOP="true/false" QUALITY="best" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">

Change the "YOUR URL", "XX", and true/false values to what you want.
 
Gogf said:
I cleaned up your code. Still not the way you want to be writing a website though.

Code:
<html>
<head>
	<title>Boring Main Page</title>
</head>
<body bgcolor="#0000FF">
	<H2>Yo!</H2>

	And welcome to Demented Cartoons. Feel free to explore, watch, enjoy, laugh, and dance.

	<p><spant style="color:#00FF00"> Have fun!</font>

	<p><img src="busdriver.swf" alt="Bus Driver" />

</body>
</html>

Look at the XHTML and CSS sections of http://www.w3.org/.

Also, not having any experience with them myself, I'm not sure, but I remember reading somewhere that shockwave files are called up differently than images. You may want to double check this.


Still didn't work out, even with the cleaned-up code.

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fcharset0 Times New Roman;}{\f1\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\sb100\sa100\f0\fs24
Yo!
And welcome to Demented Cartoons. Feel free to explore, watch, enjoy, laugh, and dance.
Have fun!

\f1\fs20\par }

See?

This wouldn't be how'd I'd actually make the website. I'm just experimenting to get a good handle on the code.


@Gumby: I'm using Internet Explorer.
 
The font tag is obsolete, you should use <span style="color:#00ff00"></span> instead. Edit: I see someone has already used <p> instead.

What are you using to save the file? You should use notepad to be sure nothing is being added.
 
I was using Wordpad. Is that the problem?

EDIT: That was it. :lol: Thanks guys, you've been a great help.
 
Obviously it is ;)

If you save as TXT (plain text) then it should be OK, but Notepad supports only TXT so it's a safer bet - especially when troubleshooting.
 
Back
Top Bottom