473,396 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

I can't validate my site - aarrrgghhh

Jim
Can someone PLEASE tell me where I'm going wrong. I've stared at this
page for 2 hours and still can't get it to validate on
http://validator.w3.org/check.

Page URL : http://www.coffeemachine.com.au

Offending Header section:
=============================

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html dir="LTR" lang="en">
<head>
<title>Coffee Machines</title>
<meta name="description" content="Sales of coffee machines and
accessories. Top quality coffee machine brands including Saeco and
Jura. Free delivery of coffee machines to most of Australia." />
<meta name="keywords" content="coffee machine, coffee machines,
espresso machine, coffee" />
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
<!-- EOF: Generated Meta Tags -->

<META name="netinsert" content="0.0.1.12.20.1.1" />
<base href="http://coffeemachine.com.au/" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
=============================

I can't see missing quotes or unclosed tags. Am I going mad?????

Thanks,

Jim.

Mar 4 '06 #1
5 1844
saz
In article <11**********************@e56g2000cwe.googlegroups .com>,
jr******@hotmail.com says...
Can someone PLEASE tell me where I'm going wrong. I've stared at this
page for 2 hours and still can't get it to validate on
http://validator.w3.org/check.

Page URL : http://www.coffeemachine.com.au

Offending Header section:
=============================

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html dir="LTR" lang="en">
<head>
<title>Coffee Machines</title>
<meta name="description" content="Sales of coffee machines and
accessories. Top quality coffee machine brands including Saeco and
Jura. Free delivery of coffee machines to most of Australia." />
<meta name="keywords" content="coffee machine, coffee machines,
espresso machine, coffee" />
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
<!-- EOF: Generated Meta Tags -->

<META name="netinsert" content="0.0.1.12.20.1.1" />
<base href="http://coffeemachine.com.au/" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
=============================

I can't see missing quotes or unclosed tags. Am I going mad?????

Thanks,

Jim.

You have 14 errors, not just your problems at the top. You are not
using XHTML, so do not close your tags with"/"

That's your problem. Stop using XHTML syntax with an HTML document.

And fix all the other errors.
Mar 4 '06 #2
In our last episode,
<11**********************@e56g2000cwe.googlegroups .com>,
the lovely and talented Jim
broadcast on comp.infosystems.www.authoring.html:
Can someone PLEASE tell me where I'm going wrong. I've stared at this
page for 2 hours and still can't get it to validate on
http://validator.w3.org/check. Page URL : http://www.coffeemachine.com.au Offending Header section:
============================= <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html dir="LTR" lang="en">
<head>
<title>Coffee Machines</title>
<meta name="description" content="Sales of coffee machines and
accessories. Top quality coffee machine brands including Saeco and
Jura. Free delivery of coffee machines to most of Australia." />
You used /> to close META, but you have declared HTML 4.01.
If you had read what the validator said in verbose mode, you would know this
causes the inference that you have closed the head section. Thus the next
META is in the body, etc.

There is a kind of HTML that is intended to be XML compatible. It is XHTML.
If that is what you want to do, then declare XHMTL and stick to it.

<meta name="keywords" content="coffee machine, coffee machines,
espresso machine, coffee" />
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
<!-- EOF: Generated Meta Tags --> <META name="netinsert" content="0.0.1.12.20.1.1" />
<base href="http://coffeemachine.com.au/" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
============================= I can't see missing quotes or unclosed tags. Am I going mad????? Thanks, Jim.


--
Lars Eighner us****@larseighner.com http://www.larseighner.com/
Nine out of ten doctors agree that one out of ten doctors is an idiot.
Mar 4 '06 #3
Jim wrote:
Can someone PLEASE tell me where I'm going wrong. I've stared at this
page for 2 hours and still can't get it to validate on
http://validator.w3.org/check.

Page URL : http://www.coffeemachine.com.au

Offending Header section:
=============================

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html dir="LTR" lang="en">
<head>
<title>Coffee Machines</title>
<meta name="description" content="Sales of coffee machines and
accessories. Top quality coffee machine brands including Saeco and
Jura. Free delivery of coffee machines to most of Australia." />


The first line of your document says that it's an HTML document. Then
you use syntax that isn't valid in HTML documents, only in XHTML
documents. The validator explains the exact problem to you. It would
have been nice if you'd included it (a) to save us the trouble of
running the validation ourselves and (b) to indicate that you'd at least
read it and to enable to you tell us what part you didn't understand.

For your page, the validator says, after flagging the META tag *and
highlighting the slash at the end*,

«...One common cause for this error is the use of XHTML syntax in HTML
documents. Due to HTML's rules of implicitly closed elements, this error
can create cascading effects. For instance, using XHTML's "self-closing"
tags for "meta" and "link" in the "head" section of a HTML document may
cause the parser to infer the end of the "head" section and the
beginning of the "body" section (where "link" and "meta" are not
allowed; hence the reported error).×

In other words: lose the slash.
Mar 4 '06 #4
Harlan Messinger wrote:

«...One common cause for this error is the use of XHTML syntax in HTML
documents. Due to HTML's rules of implicitly closed elements, this error
can create cascading effects. For instance, using XHTML's "self-closing"
tags for "meta" and "link" in the "head" section of a HTML document may
cause the parser to infer the end of the "head" section and the
beginning of the "body" section (where "link" and "meta" are not
allowed; hence the reported error).×

In other words: lose the slash.


Or keep the slash if your file is being generated automatically by an
XML-based application, but then just accept that your file won't
validate unless you override the DOCTYPE and tell the validator to use
the XHTML rules.
Mar 4 '06 #5
Jim
Thank you all for clearing up this confusion over the difference in
closing tags in HTML and XHTML.

Mar 4 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
9
by: Viken Karaguesian | last post by:
Hello all, I just discovered this NG, so you'll probably be getting some questions that have been brewing inside me for a while :>) I'm just an amateur who enjoys making websites. I use...
4
by: Steve | last post by:
Hi, I have the below line in every page of a site, to set up the top section of the page: <table width="100%" cellspacing="0" cellpadding="0" background="images/index_topstrip.gif">
21
by: MLH | last post by:
A97 procedure to open http://www.arch.com/message/ enter an 800 number, press "Continue", enter a text msg string from a memo field and press "Send" This is a calendaring and appointment A97...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
11
by: David Thielen | last post by:
Hi; In a page, when the user clicks on a button, I want to validate all the controls (in the code behind) and then if they are good, leave that page alone and launch a new window with a new url...
10
by: kelvin | last post by:
Hi, A difficult question. I have a form that I used to submit to https://www. paypal.com/cgi-bin/ webscr <form action="https://www. paypal.com/cgi-bin/webscr" method="post"> Now I need to...
1
by: mbarnhizer | last post by:
Hello All, Trying to figure out how to validate a series of questions on an online test. I am thinking that VB or Javascript is the best route, but your input may make a difference. The site i...
13
by: tommymo | last post by:
Hi everyone I'm new to this site and the world of ASP.Net C# programming. I have been learning controls and integrating them with a SQL database. So far I have been able to move along and understand...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.