473,396 Members | 2,059 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.

Error I got from w3c validator makes no sense.

tpgames
785 512MB
Line 1, Column 63: "EXPIRES:" is not a reserved name.…W3C//DTD HTML 4.01 Transitional//EN" Expires: Thur, 1 March 2007 13:00:00 G…

What do they mean? I got the code off of a site that teaches how to code such things.
How do I fix this so it validates? Thanks!
Aug 14 '07 #1
10 1469
epots9
1,351 Expert 1GB
your doctype should look like this:
[html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
[/html]
Aug 14 '07 #2
pbmods
5,821 Expert 4TB
Heya, tpgames.

I'm going to go ahead and move this thread to the HTML forum, where our resident Experts will be better able to help you out.
Aug 14 '07 #3
drhowarddrfine
7,435 Expert 4TB
You can't set the time in the past either. Without seeing the full header it's hard to say.
Aug 14 '07 #4
tpgames
785 512MB
I thought I was in the HTML forum posting this. Oops! Someone can't read.

What I was trying to accomplish was a sure fire way to make sure that clients got the most current version of the page, every day in Firefox. This code I used was the only one that actually worked. All the other codes would give me the same old page no matter what day it was, the same day programming the page, or the following day. I always had to manually refresh to see the changes. The code below, would give me a new page even on the same day. Thanks!

[HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" Expires: Thur, 1 March 2007 13:00:00 GMT>
<html>
<head>
<title> Home of TPGames </title>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link type="text/css" rel="stylesheet" href="http://www.tpgames.net/a/a.css">
<link rel="shortcut icon" href="http://www.tpgames.net/tpgamesicon.gif">
</head>[/HTML]
Aug 18 '07 #5
tpgames
785 512MB
ps. I was referring to Me not being able to read. Just in case anyone thought differently. LOL
Aug 18 '07 #6
tpgames
785 512MB
You can't set the time in the past either. Without seeing the full header it's hard to say.
That means it will never validate as the time will never be present. It also means that I am very ignorant and missing some knowledge. :D
Aug 18 '07 #7
drhowarddrfine
7,435 Expert 4TB
When you send the page out you can set the expire time to some time in the future.

EDIT: Oh, wait. you set the expire time in the doctype. That's the wrong place. You need to set a <meta> to do that.
Aug 18 '07 #8
tpgames
785 512MB
When you send the page out you can set the expire time to some time in the future.

EDIT: Oh, wait. you set the expire time in the doctype. That's the wrong place. You need to set a <meta> to do that.
Excuse the ignorance, but what exactly would the proper tag look like in a meta tag? I used to...
[HTML]<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">[/HTML]

l've not learned any others yet. And, that one I got from someone elses site. The site I got the Expire tag from, was not clear in where to put it.

Would this work?
[HTML]<meta content= "Expires: Thur, 1 March 2007 13:00:00 GMT">[/HTML]

Also, if date is in the future, how would that make sure the browser only gave client the freshest page?
Thanks! :D
Aug 19 '07 #9
tpgames
785 512MB
I wish I wasn't so confused. However, I'm wondering if I should even bother being that I'm going to have to change hundreds of pages over to XML eventually, anyhow. I did finally find where in the HTML 4 book, the answer was, and how that META tag should look.

However, my question about future and dates, the book does not answer.
Aug 27 '07 #10
drhowarddrfine
7,435 Expert 4TB
In the example you gave above, you have the expiration date set to a past time. The time to expire cannot expire in the past. You must set it to some future date or time.
Aug 27 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Antho | last post by:
Hello NG Sorry if this is the wrong NG to post this in. I have installed Apache2 and PHP on my Mdk 9.2 box. I have made an info.php page to test if php is working. It appears that it is as my...
1
by: lawrence | last post by:
I can't get this page to show in Internet Explorer, so I assume the error is quite grave. I'm using a PHP script to write the RSS file. In Netscape the page shows up as plain text. "Item" is...
22
by: Lee K. Seitz | last post by:
What are this group's members' ideas about including W3C validator (http://validator.w3.org) graphics on web pages? Specifically, should they be on every page? I can see including an HTML/XHTML...
6
by: Matt Bostock | last post by:
Hi, When I validate this page: http://www.drfunkenstein.net/using http://jigsaw.w3.org/css-validator/, I get the following results: ...
22
by: Trevor Orton | last post by:
Hello, I'm having a slight problem using the W3C html validator and I've reviewed the FAQ's with no luck so hopefully someone here would be kind enough to point me in the right direction. I...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
5
by: Bob Cox | last post by:
I am getting the error: Invalid number : color fuchsia is not a color value : fuchsia from the W3C CSS validator, yet I am sure the same CSS validated ok previously. The offending CSS is: ...
5
by: hamsterchaos | last post by:
<asp:RegularExpressionValidator id="valRegEx" runat="server" ControlToValidate="textbox1" ValidationExpression=" " ErrorMessage="* Please only enter alphanumeric values and make sure...
37
by: Prisoner at War | last post by:
Actually, it doesn't have to be a blockquote...but I'm at my wits' end: I want to make bold several lines of text which have a pair of <br /tags between them...seems like the <b></bdo not "carry...
0
by: Jukka K. Korpela | last post by:
Guy Macon wrote: Evaluating program quality is actually much harder than people think. Being honest and fair is even more difficult, and all we can do, as humans, is to make our best effort at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.