Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Messed up META-tags

In the Help text for CD2 you find this advise about Unicode:
"... Unicode which is understood by all modern web browsers, but you have to tell the web browser to expect UTF-8 so it knows how to decode it. This is done by putting the following tag in your HTML file immediately after the <head> tag: ..."

Never the less CD's own pages created with CD2 has two other meta tags BEFORE the Unicode tag – one is the now famous "CityDesk"-tag: <meta name="citydesk" content="FCBE888D/234">

Something is wrong somewhere.

Jorgen Brenting
Tuesday, May 06, 2003

actually CD inserts the "generator" and "citydesk" meta tags right before the <title>, which should make them the last meta tags. So as long as you have the charset tag as the first one in the head, it will stay there.

Joel Spolsky
Tuesday, May 06, 2003

The example was taken from City Desk News. It looks like this:
<html><head><meta name="generator" content="Fog Creek CityDesk 2.0.2">
<meta name="citydesk" content="FCBE888D/234">
<title>CityDesk News - Fog Creek Software</title>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta content="Fog Creek Software, software, consult, consulting, software consulting, functional specification, code, coding, programmers, programming, lectures, New York, New York City, Manhattan" name=keywords>
<meta content="Fog Creek Software is a small software development company in New York City." name=description>

Jorgen Brenting
Wednesday, May 07, 2003

Jorgen, this doesn't go against what joel said. It just looks like they manually added the meta tags under the title rather than above it.

Check this out.

My template:

<HTML>
<HEAD>

<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="ICBM" content="40.6066132, -73.9478073">
<meta name="DC.title" content="www.MarkTAW.com">


<TITLE>www.marktaw.com: {$.headline$}</TITLE>

<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Cache-Control" content="no-store">

...


the output:

<HTML>
<HEAD>

<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="ICBM" content="40.6066132, -73.9478073">
<meta name="DC.title" content="www.MarkTAW.com">


<meta name="generator" content="Fog Creek CityDesk 2.0.1">
<meta name="citydesk" content="FD5EE18B/6">
<title>www.marktaw.com: Welcome to MarkTAW.com</TITLE>

<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Cache-Control" content="no-store">

the meta tags are just above the title like Joel said.

www.marktaw.com
Wednesday, May 07, 2003

Sorry Mark, but you missed my point. Maybe I didn't make myself clear.

The Content-Type meta tag HAS to appear as the FIRST meta tag, and yours was there already.

What I tried to say was, that it seems (from some of Fog Creeks own pages) that the Content-Type tag does not always appear first, even if it is emphasised in the help text of CD2 that this tag has to be the first one.

I see now that Fog Creek is using version 2.0.32 for the newest pages and the "problem" seems to have disappeared there.

Jorgen Brenting
Wednesday, May 07, 2003

OK, I see what you mean. It was our own mistake in putting the charset tag after the title on that particular template. I've fixed it.

(In this case I don't think it mattered because there was no Unicode in the title.)

Joel Spolsky
Thursday, May 08, 2003

*  Recent Topics

*  Fog Creek Home