I'm trying to validate a page that begins with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.did>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
....
which fails at this line with:
"CONTENT-TYPE" is not a reserved name
Can anyone help me? TIA.
D.
Dennis M. Straussfogel, Ph.D.
Aerospace Engineering Consultant 13 5191
Dennis M. Straussfogel wrote: I'm trying to validate a page that begins with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.did>
a typo: loose.dtd (not loose.did)
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
The syntax is wrong. You should not have /> at the end (that' xhtml
syntax, but your document is html). More importantly, you should set
the content type and charset using real http headers. A search on
Google produced the following document authored by Alan Flavell: http://ppewww.ph.gla.ac.uk/~flavell/...t/ns-burp.html
--
Brian
follow the directions in my address to email me dm*@bcgroup.net (Dennis M. Straussfogel) wrote: I'm trying to validate a page that begins with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.did>
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
which fails at this line with:
"CONTENT-TYPE" is not a reserved name
You're missing a " at the end of the URL in the doctype. Hence the
validator sees something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"long string" Content-Type" content="text/html; charset=iso-8859-1" />
The next problem will be the XHTML <meta /> in an HTML document. Never
use that last / in empty elements in HTML, only in XHTML.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
In article <dm************ ******@news.abc com.bc.ca>, one of infinite monkeys
at the keyboard of dm*@bcgroup.net (Dennis M. Straussfogel) wrote: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
which fails at this line with:
"CONTENT-TYPE" is not a reserved name
Huh? Whatever tool reported that as a "fail" is talking nonsense.
But Brian's followup makes some valid points you should note.
--
Nick Kew
On Sat, 17 Jan 2004 20:15:44 GMT, Brian
<us*****@juliet remblay.com.inv alid-remove-this-part> wrote: Dennis M. Straussfogel wrote: I'm trying to validate a page that begins with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.did> a typo: loose.dtd (not loose.did)
I think that causes the later error.
The syntax is wrong. You should not have /> at the end (that' xhtml syntax, but your document is html).
AFAIK, it should still validate as HTML 4 with the _/>.
Neal wrote: AFAIK, it should still validate as HTML 4 with the _/>.
No, it shouldn't.
<link ... /> is equiv to <link ... >>
While you can have characters in the <body> section of the document (thus
<br /> being valid HTML 4.01 that looks horrible if it does what is
_should_ do), you can't in the <head> section.
--
David Dorward <http://dorward.me.uk/>
On Sat, 17 Jan 2004, Neal wrote: The syntax is wrong. You should not have /> at the end (that' xhtml syntax, but your document is html).
Indeed.
AFAIK, it should still validate as HTML 4 with the _/>.
Please explain.
Many thanks to all of you. I've embarrassed enough people finding their
stupid typos, that it's only fair turn about for my face to be duely
reddened. Sorry.
BTW, the " />" at the end was added as a "grasping at straws" attempt of
solution. I guess I also overfocused on the statement flagged as the error
and didn't look closely enough at the one(s) preceding it. (Really. I do
know better!)
Another question: In attempting to solve the problem, I did add an
..htaccess file to my root directory with the directive
AddType "text/html; charset=iso-8859-1" html
which should specify the charset for files with the .html extension. Will
this also specify for .shtml extensions as well, or do I need a second
directive line with "shtml" at the end? TIA--again.
D.
Dennis M. Straussfogel, Ph.D.
Aerospace Engineering Consultant dm*@bcgroup.net (Dennis M. Straussfogel) wrote: Another question: In attempting to solve the problem, I did add an .htaccess file to my root directory with the directive
AddType "text/html; charset=iso-8859-1" html
which should specify the charset for files with the .html extension. Will this also specify for .shtml extensions as well,
No.
or do I need a second directive line with "shtml" at the end?
Or more simply just add shtml to the end of the line above.
AddType "text/html; charset=iso-8859-1" html shtml
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
In article <84************ *************** *****@4ax.com>, Steve Pugh
<st***@pugh.net > wrote: dm*@bcgroup.net (Dennis M. Straussfogel) wrote:
Another question: In attempting to solve the problem, I did add an .htaccess file to my root directory with the directive
AddType "text/html; charset=iso-8859-1" html
which should specify the charset for files with the .html extension. Will this also specify for .shtml extensions as well,
No.
or do I need a second directive line with "shtml" at the end?
Or more simply just add shtml to the end of the line above. AddType "text/html; charset=iso-8859-1" html shtml
Steve
Thanks, Steve. And finally (I promise) can I delete the META tag
altogether if the charset is specified in the .htaccess file?
Dennis M. Straussfogel, Ph.D.
Aerospace Engineering Consultant This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Headless |
last post by:
Should linking generated content work? Example:
span:before{content:"foobar"}
<a href="foobar.htm"><span></span></a>
I stumbled across this bit in the CSS2 spec:
>Generated content does not alter the document tree. In particular, it is
>not fed back to the document language processor (e.g., for reparsing).
|
by: Jimmy Cerra |
last post by:
I recently came up with a cool little stylesheet for definition
lists. There is a small demostration for the impatient . I hope
this helps someone.
Here's how I did it. Definition lists are usually styled something
like:
] Term
] A tab of white space followed by the definition
] By
|
by: Scott Abel |
last post by:
For immediate release:
The Rockley Group Content Management Workshop Series
Coming to Atlanta, Seattle, Vancouver, Chicago, Washington, DC,
Toronto, and Research Triangle Park
Learn more: http://www.rockley.com/workshops.htm
The Rockley Group Content Management Workshop Series is designed to
|
by: j1c |
last post by:
How can I remove the content in between tags? I have a page that has
several custom tags: <!--tag:1--> Content 1 <!--/tag:1--> <br>
<!--tag:2--> Content 2 <!--/tag:2--> <br> <!--tag:3--> Content 3
<!--/tag:3--> If I only wanted to see the contents of tag 2 for
example, how could I strip out 1 and 3?
|
by: Richard |
last post by:
http://dynamicdrive.com/dynamicindex5/linkinfo.htm
Using the above script, I have a plan whereby when the main link is active,
two different content swaps take place.
Column A shows the main menu which is working just fine.
In column b I have two subdivisions.
Top is for thumbnails, bottom is for description.
What I am looking at doing, if possible, is to have the thumbnails and
| |
by: Water Cooler v2 |
last post by:
I know what it is, and yet the knowledge of what a CMS is, is so vague
that I find myself asking this question every now and then. I've
googled and read the resources too. However, the knowledge is still not
clear. It is so vague.
Me: Just what is a content management system?
Myself: A place where content can be stored.
|
by: Managed Code |
last post by:
Hello All,
Here is my issue and thanks in advance for any assistance.
I have a base page with a dropdownlist that fires an event with
the selected index. The content page catches the event and sets
a connection string to the database. The content page has a
simple gridview that should show records from the selected
database. Initial content page displays data from correct place.
first change of dropdownlist correctly updates content...
|
by: dave8421 |
last post by:
Hi,
I'm trying to make sense of the definition for "Rendered Content" in
current CR for CSS 2.1
Is rendered content what is displayed on the particular media or
device? from the definitions, I got the impression that the rendered
content is referring to the source document and not the particular
|
by: pbd22 |
last post by:
Hi.
This is just a disaster management question.
I am using XMLHTTP for the dynamic loading of content in a very
crucial area of my web site. Same as an IFrame, but using XMLHTTP and
a DIV. I got the core of the javascript from here:
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
I noticed in the demo that sometimes the content takes a long
|
by: jessy |
last post by:
hi,
i have an FreeRTE editor used in my site but whenever i enter something in the TextArea of the editor is not showing in the DB , can anyone tell me what's wrong with my that Piece of Code
function freeRTE_Preload($content) {
// // Strip newline characters.
$content = str_replace(chr(10), " ", $content);
$content = str_replace(chr(13), " ", $content);
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |