meta for two languages

J

Jean Pierre Daviau

Hi,

How do I specify meta for english and french?

<meta http-equiv="content-language" content="fr">

Thanks
--

X trême newbe
.......
masm32
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
 
S

Spartanicus

Jean Pierre Daviau said:
How do I specify meta for english and french?

<meta http-equiv="content-language" content="fr">

The principle language for a page should be specified like this:
<html lang="en">

Markup sections that are in another language for example like so:

<p lang="fr">...</p>

Use existing elements where possible, as a last resort you can insert
divs or spans specifically for the purpose of providing language info if
no existing element is available.

Afaik at the moment few if any UAs do something with language info.
 
J

Jukka K. Korpela

Jean Pierre Daviau said:
How do I specify meta for english and french?

<meta http-equiv="content-language" content="fr">

Well, that's for French; for English, it would be
<meta http-equiv="content-language" content="fr">

Should you write
<meta http-equiv="content-language" content="en,fr">
you would say, as per HTTP specifications, that the document is intended
for people who know English _or_ French (or both).

However, no browser is known to pay the least attention to such meta tags,
or to the corresponding actual HTTP headers. They are just tags that some
authoring software spits out to please itself.

Some browsers are known to recognize lang attributes (which Spartacus wrote
about) to a limited extent. Those attributes can also be useful when using
some authoring programs: the attributes help in performing the correct
spelling checks.

The meta tags for content-language are just an exercise in futility.
 
N

Neredbojias

With neither quill nor qualm, Jean Pierre Daviau quothed:
Hi,

How do I specify meta for english and french?

In English it's "meta" and in French it's "metamusil".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

document.images 8
location.replace in a function 10
running an ex on eMac 8
changing the barckground image 2
document.images[0].X 6
javascript corrupted? 8
circle tracing 10
strange TR behavior 2

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top