What's wrong with this code??

B

Bob Mathewson

It's true: I don't know much about HTML; but am trying to learn. The code
below is from a page on my personal site. It was originally done with
PageMill v.3. I know, I know, but I've had no major problems with it
before, even if it is obsolete.

The problem is, when I load this page, the word "Indiana" above the Bobbitt
family should display following the word "Elnora," as above the first
graphic. I've looked at this code so long and so many times that I know I'm
missing something simple.

Can you...will you...help me here?

Thanks in advance.

---------------------------------------------------------------------------------------

<HTML>
<HEAD>
<TITLE>grandparents1</TITLE>
</HEAD>
<BODY BACKGROUND="bkgrnd_prchmnt_green.jpg" TEXT="#004000">

<P><CENTER><BR>
<TABLE WIDTH="95%" BORDER="0" CELLSPACING="2" CELLPADDING="0">
<tbody>
<TR>
<TD WIDTH="50%">
<P><CENTER><B>Tom and Mary Mathewson family, ca. 1905<BR>
Elnora, Indiana, </B><IMG SRC="tomandmary_family.jpg" WIDTH="339"
HEIGHT="419" ALIGN="BOTTOM" BORDER="3" NATURALSIZEFLAG="3"> <B>Rear:
Curtis, his wife Inez, Lev, Grace, Grover<BR>
Center: Guy, Opal, Norman<BR>
Seated: Grandma Mary, Lelah, Grandpa Tom&nbsp;</B></CENTER></TD>
<TD WIDTH="50%">
<P><CENTER><B>Joe and Dora Bobbitt family, ca. 1900<BR>
Elnora, Indiana,</B><IMG SRC="joe_and_dora_bobbitt_family.jpg"
WIDTH="334" HEIGHT="418" ALIGN="BOTTOM" BORDER="3" NATURALSIZEFLAG="3">
<B>Rear: Joseph, Jessie, Gussie, Georgia<BR>
Front: Hugh (&quot;Peck&quot;), Grandpa Joe, Avey, Grandma
Dora</B></CENTER></TD>
</TR></tbody>
</TABLE></CENTER></P>

<P><CENTER><HR><B><A HREF="index.htm">Back to Start</A><FONT COLOR="#004000"
SIZE="+1"> </FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A
HREF="momanddad2.htm"
grandparents2.htm="">More from Mom and Dad</A></B></CENTER>

</BODY>
</HTML>
 
S

scripts.contact

It's true: I don't know much about HTML; but am trying to learn. The code
below is from a page on my personal site. It was originally done with
PageMill v.3. I know, I know, but I've had no major problems with it
before, even if it is obsolete.

The problem is, when I load this page, the word "Indiana" above the Bobbitt
family should display following the word "Elnora," as above the first
graphic. I've looked at this code so long and so many times that I know I'm
missing something simple.

Can you...will you...help me here?

google css vertical-align

if you want the image below text then add br before image after Elnora
 
J

Jonathan N. Little

Bob said:
It's true: I don't know much about HTML; but am trying to learn. The code
below is from a page on my personal site. It was originally done with
PageMill v.3. I know, I know, but I've had no major problems with it
before, even if it is obsolete.

The problem is, when I load this page, the word "Indiana" above the Bobbitt
family should display following the word "Elnora," as above the first
graphic. I've looked at this code so long and so many times that I know I'm
missing something simple.

Can you...will you...help me here?

Thanks in advance.

---------------------------------------------------------------------------------------

<HTML>
<HEAD>
<TITLE>grandparents1</TITLE>
</HEAD>
<BODY BACKGROUND="bkgrnd_prchmnt_green.jpg" TEXT="#004000">

<P><CENTER><BR>
<TABLE WIDTH="95%" BORDER="0" CELLSPACING="2" CELLPADDING="0">
<tbody>
<TR>
<TD WIDTH="50%">
<P><CENTER><B>Tom and Mary Mathewson family, ca. 1905<BR>
Elnora, Indiana, </B><IMG SRC="tomandmary_family.jpg" WIDTH="339"
HEIGHT="419" ALIGN="BOTTOM" BORDER="3" NATURALSIZEFLAG="3"> <B>Rear:
Curtis, his wife Inez, Lev, Grace, Grover<BR>
Center: Guy, Opal, Norman<BR>
Seated: Grandma Mary, Lelah, Grandpa Tom&nbsp;</B></CENTER></TD>
<TD WIDTH="50%">
<P><CENTER><B>Joe and Dora Bobbitt family, ca. 1900<BR>
Elnora, Indiana,</B><IMG SRC="joe_and_dora_bobbitt_family.jpg"
WIDTH="334" HEIGHT="418" ALIGN="BOTTOM" BORDER="3" NATURALSIZEFLAG="3">
<B>Rear: Joseph, Jessie, Gussie, Georgia<BR>
Front: Hugh (&quot;Peck&quot;), Grandpa Joe, Avey, Grandma
Dora</B></CENTER></TD>
</TR></tbody>
</TABLE></CENTER></P>

<P><CENTER><HR><B><A HREF="index.htm">Back to Start</A><FONT COLOR="#004000"
SIZE="+1"> </FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A
HREF="momanddad2.htm"
grandparents2.htm="">More from Mom and Dad</A></B></CENTER>
^^^^^^^^^^^^^^^^^^^^^

Assign of HTML 3.2 error markup there looks like a errant bit of pasted
markup...cut and past error?
 
J

Jukka K. Korpela

Scripsit Bob Mathewson:
The code below is from a page on my personal site. It was originally
done with PageMill v.3. I know, I know, but I've had no major
problems with it before, even if it is obsolete.

Yes, we can see that it comes from PageMill, because the NATURALSIZEFLAG
attribute is its creation and ignored by all other software. And yes, it's
really messy. If you plan to create several such pages according to the same
template, I'd suggest designing a better template.
The problem is, when I load this page, the word "Indiana" above the
Bobbitt family should display following the word "Elnora," as above
the first graphic.

Strange things happen to your page when the browser window width is varied -
the texts appear oddly placed.

The immediate fix is to put <br> right before and after the <img> tags. This
makes the images appear on "lines" of their own. Without that, the browser
treats the images as huge letters that may be placed on the same line as
text characters.

<TITLE>grandparents1</TITLE>

Whose? A <title> element should specify the external title of a page, to be
used in many contexts so that it alone gives an idea of what the page is
about. It should be understandable as such, without seeing the page at all.
 
B

Bob Mathewson

Thank you for your helpful suggestion...I was wondering how long it would be
before some cretin asked such a question!
You would get the prize, except for the fact that you spelled it wrong.
--------------------------------------------------------------
 
N

Neredbojias

Thank you for your helpful suggestion...I was wondering how long it
would be before some cretin asked such a question!

Er, I didn't see any suggestion, helpful or otherwise. Furthermore, we've
got much better cretins than Travy, to be sure.
You would get the prize, except for the fact that you spelled it
wrong.

So who are you, bloomin' Henry Higgins? Btw, it is customary and
considered politic to place replied-to text _before_ any original drivel
one may spew.
 
A

Alucard Calquemare

Well first of all, you've got to learn at least html 4.0 if you want to
survive, your code isn't wrong it's just deprecated ( well there is a bunch
of errors too...), here: I've corrected it:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<!--//Head-->
<head>

<!--//Meta Tags-->
<!--Fill in the blanks-->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="Levastre David Alexandre" />
<meta name="revised" content="" />
<meta name="generator" content="Notepad" />

<!--//Title-->
<title>grandparents1</title>

<!--//Browser Icon-->
<!--Fill in the blanks-->
<link rel="shortcut icon" href="" />

<!--//Style-->
<style type="text/css">

..corecolor {color:#004000}
..navcolor {color:#004000; size:+1}
</style>

<!--//Scripts-->
<script language="javascript" type="text/javascript">

<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->

</script>

</head>

<!--//Body-->
<body background="bkgrnd_prchmnt_green.jpg">

<br />
<table width="95%" border="0" cellspacing="2" cellpadding="0"
class="corecolor">
<tbody>
<tr>
<td><div align="center"><b>Tom and Mary Mathewson family, ca.
1905</b></div></td>
<td><div align="center"><b>Joe and Dora Bobbitt family, ca.
1900</b></div></td>
</tr>
<tr>
<td width="50%"><div align="center"><p>
<p><b>Elnora, Indiana,</b><br />
<img src="tomandmary_family.jpg" width="339" height="419"
align="bottom" border="3"></p>
<p><b>Rear:
Curtis, his wife Inez, Lev, Grace, Grover<br />
Center: Guy, Opal, Norman<br />
Seated: Grandma Mary, Lelah, Grandpa Tom&nbsp;</b></div></p>
</td>
<td width="50%"><div align="center">
<p><b>Elnora, Indiana,</b><br />
<img src="joe_and_dora_bobbitt_family.jpg" width="334" height="418"
align="bottom" border="3"></p>
<p><b>Rear: Joseph, Jessie, Gussie, Georgia<br />
Front: Hugh (&quot;Peck&quot;), Grandpa Joe, Avey, Grandma
Dora</b>
</p>
</div>
<P></td>
</tr></tbody>
</table>
</p>

<hr />
<p align="center" class="navcolor"><b><a href="index.htm">Back to
Start</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="momanddad2.htm">More
from Mom and Dad</a></b></p>

</body>
</html>

Copy and paste it into notepad save it as as a *.htm and you're done: but
take a good look at it and compare it with the code you gave me.

Have a nice day.

Alucard
GAT d-@ s:- a-? C++ UL++ P+ L+ E++ W++>$ N K w++++>$ O- M- V- PS+ PE Y PGP t
5 X+ R+ ()R++ tv- b++ DI++ D+ G++ e h- r+ y++>$
www.calquemare.com
 
J

Jukka K. Korpela

Scripsit Alucard Calquemare:
Well first of all,

First of all, if you are commenting on something, you should quote or
paraphrase a key sentence or too, to give context. Deviating from this is
taken as a cluelessness indicator on Usenet, much the same way as quoting an
entire posting is.
you've got to learn at least html 4.0 if you want
to survive,

Hardly, and surely not from you.

Surely the OP might benefit from a somewhat more systematic and modern
approach to HTML authoring, but nobody will get killed or even seriously
hurt for tag soup HTML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

XHTML on web pages is pointless. We've discussed this several times, but you
decided to jump into the group and start preaching without checking the
audience.

Using Transitional when you present something as an improved rewrite of
something is clueless, unless you can explain and do explain some acceptable
reason for using Transitional features for some real purpose.
<!--//Head-->
<head>

That's idiotic. Figuratively speaking. I don't want to insult idiots; idiots
don't create web pages and don't write such foolish "comments".
<meta name="description" content="" />

You just copied some template and threw it at us without thinking much, did
you?
<title>grandparents1</title>

I made a remark about this, a practically relevant one. You apparently
didn't even read the answers given so far before posting your
"contribution".
.navcolor {color:#004000; size:+1}

As if the common mistake of setting color without setting background were
not enough, you add some grossly malformed CSS code.
function MM_reloadPage(init) { //reloads the window if Nav4 resized

Copying code that purported does something for "Nav4" is very foolish. Do
you have any idea of how "much" Netscape 4 is currently used?

Using line break to create vertical spacing? Looks like you never really
tried to learn CSS seriously.
<img src="tomandmary_family.jpg" width="339" height="419"
align="bottom" border="3"></p>

You don't even write valid markup.
<p align="center" class="navcolor"><b><a href="index.htm">Back to
Start</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
href="momanddad2.htm">More from Mom and Dad</a></b></p>

That's about 1997 vintage HTML. I don't blame anyone for using it on old
pages of their own, but I do laugh at people who present it as recommended
markup in public.
GAT d-@ s:- a-? C++ UL++ P+ L+ E++ W++>$ N K w++++>$ O- M- V- PS+ PE
Y PGP t 5 X+ R+ ()R++ tv- b++ DI++ D+ G++ e h- r+ y++>$

Well, that describes the value of your posting, and it is noteworthy that
you present it as message content proper, not in a Usenet-style signature.
 
A

Alucard Calquemare

Moï,
As much as I love suomi, I'm not that fond of being insulted by a
suomalainen or anyone else (except by Elina perhaps, but her rear make it
much more bearable). As I said I'm a noob, I don't mind critics and
recommendations on the way I post or on the content of what I post. But the
way you put it is rather unpleasant to say the least, so I'll explain you
how I felt about it: in the first place I was more like: "Minua vituttaa!"
But I'm in another mood now. A suomalinen friend of mine (Anna) told me one
day that Finnish people are much more composed and modest than the
ranskanlainen I was, and she taught me a saying: "Modesty makes beautiful".
I still believe in what she said, I just think that being a bit popular in
the IT area makes you feel a bit too overconfident and critical. "Koulutus:
filosofian kandidaatti, pääaineena matematiikka..." As you may have
forgotten Berkeley claimed that philosophy was nothing other than the study
of wisdom and truth. I'll give you an A for truth and an F minus for wisdom.
"Docendo disco, scribendo cogito" is your motto isn't it? The more I learn
about you, the more I laugh. Do you ever apply what you preach? or do you
just throw some nice cryptical phrases thinking it'll sound good? Ah, you
are indeed literate, I was afraid you were just some old fashioned math
geezer. I hope all of the FK are not like you. Another time, another place,
I would have been very excited about having a little chat with you but well,
considering whom you really are now, I'll pass. I've got much more
intellectually stimulating things to do right now like sorting my socks. As
well as I am probably an idiot you are most certainly an old fart and I'm
not going to give you the pleasure to bow down before your sorry ass because
you wrote some books about XHTML and other shits. I could have wrote this
little reply in Finnish, in order to prove you that I'm not as stupid as I
seem to be, but it will have taken away the pleasure of knowing that others
non Finnish speaker would read it.

Moï moï juntti, and don't forget: suksi vittuun!

Alucard
GAT d-@ s:- a-? C++ UL++ P+ L+ E++ W++>$ N K w++++>$ O- M- V- PS+ PE Y PGP t
5 X+ R+ ()R++ tv- b++ DI++ D+ G++ e h- r+ y++>$
www.calquemare.com
 
J

Jonathan N. Little

Alucard said:
Moï,
As much as I love suomi, I'm not that fond of being insulted by a
suomalainen or anyone else (except by Elina perhaps, but her rear make it
much more bearable). As I said I'm a noob, I don't mind critics and
recommendations on the way I post or on the content of what I post. But the
way you put it is rather unpleasant to say the least, so I'll explain you
<snip the rest>

Hmmm let's see, real newbie mistakes... post inaccurate information,
post without quoting, top-post, get hurt and pick a fight with Jukka...

Advice: Lurk awhile to get familiar with the process ans protocol. Review

http://www.html-faq.com/etiquette/
alt.html FAQ: Usenet Etiquette

http://en.wikipedia.org/wiki/Netiquette
Netiquette - Wikipedia, the free encyclopedia

And search first before posting.

Do the above and I will assure you that your experience will be more
pleasurable and informative.
 
B

Bergamot

Alucard said:
<meta name="generator" content="Notepad" />

That seems very unlikely. My bet goes on
<meta name="generator" content="Macromedia Dreamweaver 8.2" />

You really should take Mr Little's advice and lurk here a bit before
posting. At least then you'll know who the regular players are and what
kind of response your postings are likely to get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top