473,569 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use of meta tags

I have some questions about these meta tags:

<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

What charset should I use? Is this latin-1? I have MacOS 10.2.6.
Where should I have looked for this information.

<meta http-equiv="Content-Script-Type" content="text/javascript">

If I include this meta tag, do I need to specify content type on the
script tag?

Robert
Jul 23 '05 #1
14 1476
Robert wrote:
I have some questions about these meta tags: <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
This may be useful for pages designed to be used offline. Real HTTP headers
are preferable for pages designed for the WWW.
What charset should I use?
That depends on which characters you use. UTF-8 is good for most purposes
these days. Of course you need to make sure the file really is encoded in
that format. Claiming that a file is encoded in a format other then that
which is really is is likely to cause more problems then not specifying any
at all.
Is this latin-1?
I believe iso-8859-1 is Latin 1.
I have MacOS 10.2.6.
Where should I have looked for this information.
Somewhere other then comp.lang.javas cript. Nothing you have raised so
touches upon being on-topic.
<meta http-equiv="Content-Script-Type" content="text/javascript"> If I include this meta tag, do I need to specify content type on the
script tag?


Yes you do, the above only applies to script placed inside intrinsic event
attributes (e.g. onload and onclick).

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2
On 3 Oct 2004 10:37:24 -0700, Robert <rc*******@my-deja.com> wrote:

[snip]
What charset should I use?
It depends on your content. If you're writing in English, ISO-8859-1 will
be fine. You can always specify characters outside that set with character
entities.
Is this [ISO-8859-1] latin-1?
Yes.
I have MacOS 10.2.6.
That doesn't matter.
Where should I have looked for this information.
I don't know of any specific reference. Googling for iso-8859 produces a
lot of results. It would be a good place to start.
<meta http-equiv="Content-Script-Type" content="text/javascript">

If I include this meta tag, do I need to specify content type on the
script tag?


Yes, for two reasons:

1) The default script type, as specified by that META element, applies to
intrinsic events.
2) The type attribute for SCRIPT elements is required.

By the way, it's best to provide this information in the server response
headers. Your server may already transmit the character encoding. It would
also be better to have sent this to alt.html or
comp.infosystem s.www.authoring.html where it's on-topic.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #3
In our last episode,
<c6************ **************@ posting.google. com>, the lovely and
talented Robert broadcast on comp.lang.javas cript:
I have some questions about these meta tags: <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"> What charset should I use? Is this latin-1? I have MacOS 10.2.6.
Where should I have looked for this information.
First http-equiv is to supply information usually supplied in http
headers by the server. Unless you know your server is wakko, you
know you are doing something very unusual, or you are catering to a
particular browser that is very broken or likely to have some
unreasonable or unusual defaults, you probably should leave
http-equiv alone. Don't include such meta elements unless you know
they are needed and you know what you are trying to accomplish with
them.

This particular one is next to useless. It says the document is
html. But if the browser doesn't already know (or assume) this
already, it won't know what a meta element is. It declares
iso-8859-1 as the character set, which is what most browsers in
English-speaking countries and much of Europe will assume if they are
told nothing.

Yes, it is more or less what is known as "latin 1" in some systems.
If you are using character entities (such as &eacute;) for accented
characters, and the q element for quotations, you probably won't
notice any problems even if you are not actually using iso-8859-1.
<meta http-equiv="Content-Script-Type" content="text/javascript"> If I include this meta tag, do I need to specify content type on the
script tag?


Yes.

--
Lars Eighner -finger for geek code- ei*****@io.com http://www.io.com/~eighner/
If it wasn't for muscle spasms, I wouldn't get any exercise at all.
Jul 23 '05 #4
David Dorward wrote:
Robert wrote:
I have some questions about these meta tags:
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">


This may be useful for pages designed to be used offline. Real
HTTP headers are preferable for pages designed for the WWW.


*Any* page (better: document) may be used offline, that's why the HTML 4.01
specification recommends to include that element in any HTML document that
requires it according to the characters used therein.
PointedEars
--
Old programmers never die, they just disassemble.
Jul 23 '05 #5
Thomas 'PointedEars' Lahn wrote:

Why are you resurrecting three week old threads?
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
This may be useful for pages designed to be used offline. Real
HTTP headers are preferable for pages designed for the WWW.
*Any* page (better: document) may be used offline,
They may also be transcoded to a different character encoding by a proxy
server or http user agent - which would make the meta declaration wrong.
that's why the HTML
4.01 specification recommends to include that element in any HTML document
that requires it according to the characters used therein.


Where does it recommend this?
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #6
David Dorward wrote:
Thomas 'PointedEars' Lahn wrote:

Why are you resurrecting three week old threads?


Why don't you understand that NetNews is not an Internet chat?
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
This may be useful for pages designed to be used offline. Real
HTTP headers are preferable for pages designed for the WWW.

*Any* page (better: document) may be used offline,


They may also be transcoded to a different character encoding by a proxy
server or http user agent - which would make the meta declaration wrong.


That's not the concern of the author of the document but of the person who
misconfigured the proxy or user agent. The "meta" element should only be
used as alternative to HTTP headers.
that's why the HTML 4.01 specification recommends to include that element
in any HTML document that requires it according to the characters used
therein.


Where does it recommend this?


<http://www.w3.org/TR/html4/charset.html#h-5.2.2>
PointedEars
--
The television business is a long plastic hallway, where theives and pimps
run rampant, and good men die like dogs.
Jul 23 '05 #7
David Dorward wrote:
Thomas 'PointedEars' Lahn wrote:

Why are you resurrecting three week old threads?


Three things come to mind:

1) He is too stupid to wipe his ass so he replies to three week old
threads in the hopes that noone will bother to correct his stupid self.

2) He lacks the intelligence to answer in a timely manner and keep up
with the conversation.

3) Both of the above.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Jul 23 '05 #8
On Sun, 24 Oct 2004 13:28:59 +0200, Thomas 'PointedEars' Lahn
<Po*********@we b.de> wrote:
David Dorward wrote:
They may also be transcoded to a different character encoding by a proxy
server or http user agent - which would make the meta declaration wrong.


That's not the concern of the author of the document but of the person who
misconfigure d the proxy or user agent. The "meta" element should only be
used as alternative to HTTP headers.


It's not a misconfigured proxy, charset transcoding is a legitimate
job of a proxy. You'll notice user agents like IE also do transcoding
when you save the files.
Where does it recommend this?


<http://www.w3.org/TR/html4/charset.html#h-5.2.2>


More precisely? It only says CAN in that section that I can see, not
even a SHOULD, I see no recommendation.

Jim.
Jul 23 '05 #9
Jim Ley wrote:
[...] Thomas 'PointedEars' Lahn [...] wrote:
David Dorward wrote:
They may also be transcoded to a different character encoding by a proxy
server or http user agent - which would make the meta declaration wrong. That's not the concern of the author of the document but of the person
who misconfigured the proxy or user agent. The "meta" element should
only be used as alternative to HTTP headers.


It's not a misconfigured proxy, charset transcoding is a legitimate
job of a proxy. You'll notice user agents like IE also do transcoding
when you save the files.


And your point is ...?
Where does it recommend this?

<http://www.w3.org/TR/html4/charset.html#h-5.2.2>


More precisely? It only says CAN in that section that I can see, not
even a SHOULD,


My "should" was not a "SHOULD" in the IETF sense, more in common sense.
I see no recommendation.


The entire HTML 4.01 Specification is a Recommendation and includes:

| 5.2.2 Specifying the character encoding
| [...]
| The HTTP protocol ([RFC2616], section 3.7.1) mentions ISO-8859-1 as a
| default character encoding when the "charset" parameter is absent from
| the "Content-Type" header field. In practice, this recommendation has
| proved useless because some servers don't allow a "charset" parameter
| to be sent, and others may not be configured to send the parameter.
| Therefore, user agents must not assume any default value for the
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^
| "charset" parameter.
^^^^^^^^^^^^^^^ ^^^^^
|
| To address server or configuration limitations, HTML documents may include
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
| explicit information about the document's character encoding; the META
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^
| element can be used to provide user agents with this information.
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^
PointedEars
Jul 23 '05 #10

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

Similar topics

1
4001
by: Cezary | last post by:
Hello. I was read PHP manual, but i'm not sure yet. Here is my meta tags in html: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2"> <META HTTP-EQUIV="Expires" CONTENT="0"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"> <META HTTP-EQUIV="Pragma"...
4
3714
by: Brian | last post by:
Hi, I'm trying to use standard meta tags in an xsl doc and using cocoon as my processor. The problem is that cocoon changes for example: <meta name="keywords" content="test, test, test" /> to <meta content="test, test, test" name="keywords"> I hope that makes sense. The problem is that I am running some adds on my
1
2592
by: Darren Blackley | last post by:
Hi there I have documents that I want to automatically add additional meta tags to. The documents already have some meta tags and I want to keep them all together, so I want to add my new meta tags to the end of the existing ones... can someone help me out with a script to do this... example below. <head> <title>The Document Title</title>...
19
3838
by: Christian Hvid | last post by:
Hello groups. I have a series of applet computer games on my homepage: http://vredungmand.dk/games/erik-spillet/index.html http://vredungmand.dk/games/nohats/index.html http://vredungmand.dk/games/platfoot/index.html http://vredungmand.dk/games/minorbug/index.html http://vredungmand.dk/games/timbuktu/index.html...
24
3524
by: Day Bird Loft | last post by:
Web Authoring | Meta-Tags The first thing to understand in regard to Meta Tags is the three most important tags placed in the head of your html documents. They are the title, description, and keyword meta-tags. If you are missing any of these meta-tags you are missing the boat. If you use the following meta-tag formula, and you are not...
23
2140
by: Fast Eddie | last post by:
What's the benefit to coding <meta name="author"...> and such? Thanks.
4
2295
by: clintonG | last post by:
Anybody know how to dynamically write the meta tags using code so they are formatted on a separate line in the HTML source? Preferred or optimal framework classes that may be used in this regard? <meta... /> <meta... /> <meta... /> <%= Clinton Gallagher
16
2493
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as they should, and do in Dotnet. The page is really, really simple, and it has a CSS and with NO masterpage. I have tried using the following as...
3
2100
by: Jordan S. | last post by:
I'm looking to localize an ASP.NET Web application for English, Spanish, and French (fr-CA), and was just considering the possibility of localizing the meta tags (e.g., keywords, title, and description). My assumption was that they should be localized like all of the other content. But in reviewing a couple of popular Web sites that are...
4
1856
by: King Coffee | last post by:
Hi, If I use master pages with META tags in the head section... can I still use META tag on the child pages (child pages reference the master page). I ask this question because I heard the more pages with META tags containing search engine key words, the higher the search engine ranking. Thanks, King
0
7700
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, 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...
1
7676
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...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
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...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
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
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.