validator - more help, please

  sheila.weston 17:36 08 Sep 07
Locked

Could someone kindly look at click here and see what the two problems are with this page. It is obviously concerned with the body> tag, but I have tried putting it into different places at the top with no result.

Many thanks.

  IntoPCs 19:49 08 Sep 07

Hi Sheila
This piece of code appears twice after the body tag - giving two "mastheads":
<script type="text/javascript">//<![CDATA[
writeHeaderFP();
Will check validator

  IntoPCs 19:54 08 Sep 07

This also appears twice:
<script type="text/javascript">writeFooterFP();</script>

  IntoPCs 20:03 08 Sep 07

You need a </html> tag after the </body> tag

  Eric10 20:24 08 Sep 07

I can't access the validator just now but your main problem will be the absence of the closing html tag as pointed out by IntoPCs. You've had the duplicated header and footer problem before so I assume you can deal with that ok. Also you have a reference to your local G: drive
"file:///G:/My%20Webs/Trenbath%20Web%20Site/earlyassociations.htm"
which will need to be corrected.

  sheila.weston 21:04 08 Sep 07

This is most odd, because what is on the web page is different from what is on my computer.

Also, I do have a closing </script>
</body>
</html>
on my computer (frontpage 2003). I will republish this tomorrow, 'just in case', but I am certain that I republished just before writing to this forum.

On line 3 of the validator page it has:
<html xmlns="click here">
Is this OK for opening the html, or should line 4 have <html> typed in?

What is the //<![CDATA[
writeFooterFP();
//]]>
to do with? This comes just before the lines above.

Thanks for pointing out the wrong hyperlink, Eric, which I hadn't noticed.

I am having a good read of the help and FAQ pages and trying to understand them - I really need a help file for the help file!

  sheila.weston 21:12 08 Sep 07

Re the two or three mastheads. How can I remove them because they are not shown on the code for the file when it is on the computer.
But.......
At line 15 onwards there is:
<script type="text/javascript" src="click here">
</script>
<style type="text/css">
/*<![CDATA[*/
p.c2 {text-align: center}
h1.c1 {font-size: 120%; text-align: center}
/*]]>*/
</style>
</head>
<body>
<script type="text/javascript">
//<![CDATA[
writeHeaderFP();
//]]>
</script>
Should the second line mentioning script be deleted?
Thanks for your help.

  Eric10 21:57 08 Sep 07

On your page that is online you have

<style type="text/css">
/*<![CDATA[*/
p.c2 {text-align: center}
h1.c1 {font-size: 120%; text-align: center}
/*]]>*/
</style>

in the head section. This is commented out so isn't active and can safely be removed. Just select the text in code view and press the Delete key.

At the top of the body you have

<body><script type="text/javascript">writeHeaderFP();</script>

which is good but this is followed by

<script type="text/javascript">
//<![CDATA[
writeHeaderFP();
//]]>
</script>

which should be deleted. I think that these are being put in by Frontpage but since I don't normally use this then I can't be sure.

At the bottom of the page you have

<script type="text/javascript">
//<![CDATA[
writeFooterFP();
//]]>
</script>

which should be deleted leaving just

<script type="text/javascript">writeFooterFP();</script>
</body>

and then you should add the </html> after this.

  sheila.weston 22:45 08 Sep 07

Success! Very many thanks, IntoPCs and Eric10. Only another 70 or so files to go!! But I managed to find several errors by myself this time, so there might be hope!

  Eric10 23:12 08 Sep 07

It looks like you need to go back to your home page as there are multiple headers and footers. You have also got a spurious <body> tag inside the head section.

This thread is now locked and can not be replied to.

Intel Coffee Lake 8th-gen Core processors release date rumours

1995-2015: How technology has changed the world in 20 years

Framestore’s haunting post-WWII title sequence for new BBC series SS-GB

Best iPhone games 2017 | Best iPad games 2017: 162 fantastic iOS games that you need to play right…