Reply to Re: What's wrong with this HTML (fails validation) ?

Your name:

Reply:


Posted by robert maas, see http://tinyurl.com/uh3t on 02/17/07 19:25

> From: "Chaddy2222" <spamlovermailbox-sicur...@yahoo.com.au>
> > After you tell me how to make the validator happy with no content >
> A short answer is, you can't, you need to at least have some content
> in the <body> eloment,

I think you made a suggestion about that later, so I'll set it aside.

> you also need to have character encodeing and other things, a
> charset for one.

I already have a line that says:
<meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
What else do I need for charset??

As for character encoding, what's needed for that?
<http://www.w3.org/TR/html4/sgml/dtd.html> doesn't say anything
directly about that, but does refer me to RFC2045:
Multipurpose Internet Mail Extensions
(MIME) Part One:
Format of Internet Message Bodies
RFC 822 header fields
entity-headers := [ content CRLF ]
[ encoding CRLF ]
which doesn't seem appropriate to use in Web pages.

http://www.w3.org/International/O-charset
* Send the 'charset' parameter in the Content-Type header of HTTP.
Example:
Content-Type: text/html; charset=utf-8
Hmm, in my CGI applications I do just the first part of that, for example:
print "Content-type: text/plain\n\n";
Should I include the charset part too?

As for regular (static) HTML Web pages, I have no idea what my
ISP's server is including as the Content-Type header, and no idea
how to easily find out what it might be. Any suggestions? Do you
have a tool for checking what Content-Type header is presented when
you get the page at this URL?
<http://www.rawbw.com/~rem/HelloPlus/loose.html>

* For HTML or XHTML served as HTML, you should always use the <meta>
tag inside <head>. Example:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
I do that already. For example:
<head>
<meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
<title>Recent HTML problems</title>
</head>

But somebody here said that is a cheap trick to fool something, I
forget the exact wording.

Values for the encoding attribute can be found in the IANA registry.
Note that these are called charset names, although in reality they
refer to the encodings, not the character sets.
Great!! More confusion.

> You should go and read some good HTML tutorials.
> http://www.htmldog.com/guides/htmladvanced/recap/

I took a quick look. I'll study more later and maybe get back to you.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация