Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > code does not validate

Reply
Thread Tools

code does not validate

 
 
charles cashion
Guest
Posts: n/a
 
      12-27-2007
I have worked on it until I am down to one warning.
I have read (almost) all suggested pages associated
with this warning. I have made two suggested changes,
but it still have one warning.

I have compared the first few lines with at least
fifty other web pages, and copied what might have
been missing from my web page. This is my web site.

http://dunjas.com/FontTest.html

The warning says I must declare my character set.
I think the <meta... line does that.
You can click here to directly view the warning.

http://validator.w3.org/check?uri=ht...Inline&group=0

*QUESTION* How do I remove this warning? Can you
suggest something to read which will tell me how
to fix it?

Thanks,
Charles
 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      12-27-2007

"charles cashion" <tennis-> wrote in message
news:4BVcj.11856$1q4.10189@trnddc06...

>I have worked on it until I am down to one warning.


> The warning says I must declare my character set.


> *QUESTION* How do I remove this warning?


Declare a character set. It's a meta element (http-equiv, content).

The text of the warning points to "a few tips..." on how to do this. Or just
look at the source that came from the validator.

--
Richard.


 
Reply With Quote
 
 
 
 
Harlan Messinger
Guest
Posts: n/a
 
      12-27-2007
rf wrote:
> "charles cashion" <tennis-> wrote in message
> news:4BVcj.11856$1q4.10189@trnddc06...
>
>> I have worked on it until I am down to one warning.

>
>> The warning says I must declare my character set.

>
>> *QUESTION* How do I remove this warning?

>
> Declare a character set. It's a meta element (http-equiv, content).
>
> The text of the warning points to "a few tips..." on how to do this. Or just
> look at the source that came from the validator.
>


Well, actually, the *server* should be configured to send an HTTP header
with this information. Failing that, and especially if the server is
configured to send the *wrong* information, the next best approach if
one is using any kind of server-side technology like PHP or ASP(.NET) is
to set the character set programmatically. The meta tag solution is a
last resort (though it's the only resort for an HTML document being
opened locally instead of being requested from a web server).
 
Reply With Quote
 
charles cashion
Guest
Posts: n/a
 
      12-27-2007
rf wrote:
> "charles cashion" <tennis-> wrote in message
> news:4BVcj.11856$1q4.10189@trnddc06...
>
>> I have worked on it until I am down to one warning.

>
>> The warning says I must declare my character set.

>
>> *QUESTION* How do I remove this warning?

>
> Declare a character set. It's a meta element (http-equiv, content).
>
> The text of the warning points to "a few tips..." on how to do this. Or just
> look at the source that came from the validator.
>


*QUESTION* Where is the source that came from the validator?
--cc
 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      12-28-2007

"charles cashion" <tennis-> wrote in message
news:BYWcj.4182$nh7.2713@trnddc01...
> rf wrote:
>> "charles cashion" <tennis-> wrote in message
>> news:4BVcj.11856$1q4.10189@trnddc06...
>>
>>> I have worked on it until I am down to one warning.

>>
>>> The warning says I must declare my character set.

>>
>>> *QUESTION* How do I remove this warning?

>>
>> Declare a character set. It's a meta element (http-equiv, content).
>>
>> The text of the warning points to "a few tips..." on how to do this. Or
>> just look at the source that came from the validator.
>>

>
> *QUESTION* Where is the source that came from the validator?



View->Page Source.

--
Richard.


 
Reply With Quote
 
Ed Mullen
Guest
Posts: n/a
 
      12-28-2007
charles cashion wrote:
> I have worked on it until I am down to one warning.
> I have read (almost) all suggested pages associated
> with this warning. I have made two suggested changes,
> but it still have one warning.
>
> I have compared the first few lines with at least
> fifty other web pages, and copied what might have
> been missing from my web page. This is my web site.
>
> http://dunjas.com/FontTest.html
>
> The warning says I must declare my character set.
> I think the <meta... line does that.
> You can click here to directly view the warning.
>
> http://validator.w3.org/check?uri=ht...Inline&group=0
>
>
> *QUESTION* How do I remove this warning? Can you
> suggest something to read which will tell me how
> to fix it?
>
> Thanks,
> Charles


Add this under the Title meta tag:

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">


--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
Chaos, panic, & disorder -- my work here is done.
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      12-28-2007
In article <>,
Ed Mullen <> wrote:

> charles cashion wrote:
> > I have worked on it until I am down to one warning.
> > I have read (almost) all suggested pages associated
> > with this warning. I have made two suggested changes,
> > but it still have one warning.
> >
> > I have compared the first few lines with at least
> > fifty other web pages, and copied what might have
> > been missing from my web page. This is my web site.
> >
> > http://dunjas.com/FontTest.html
> >
> > The warning says I must declare my character set.
> > I think the <meta... line does that.
> > You can click here to directly view the warning.
> >
> > http://validator.w3.org/check?uri=ht...ntTest.html&ch
> > arset=%28detect+automatically%29&doctype=Inline&gr oup=0
> >
> >
> > *QUESTION* How do I remove this warning? Can you
> > suggest something to read which will tell me how
> > to fix it?
> >
> > Thanks,
> > Charles

>
> Add this under the Title meta tag:
>
> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">


Read the thread:

http://tinyurl.com/2dvwye

--
dorayme
 
Reply With Quote
 
Ed Mullen
Guest
Posts: n/a
 
      12-28-2007
dorayme wrote:
> In article <>,
> Ed Mullen <> wrote:
>
>> charles cashion wrote:
>>> I have worked on it until I am down to one warning.
>>> I have read (almost) all suggested pages associated
>>> with this warning. I have made two suggested changes,
>>> but it still have one warning.
>>>
>>> I have compared the first few lines with at least
>>> fifty other web pages, and copied what might have
>>> been missing from my web page. This is my web site.
>>>
>>> http://dunjas.com/FontTest.html
>>>
>>> The warning says I must declare my character set.
>>> I think the <meta... line does that.
>>> You can click here to directly view the warning.
>>>
>>> http://validator.w3.org/check?uri=ht...ntTest.html&ch
>>> arset=%28detect+automatically%29&doctype=Inline&gr oup=0
>>>
>>>
>>> *QUESTION* How do I remove this warning? Can you
>>> suggest something to read which will tell me how
>>> to fix it?
>>>
>>> Thanks,
>>> Charles

>> Add this under the Title meta tag:
>>
>> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

>
> Read the thread:
>
> http://tinyurl.com/2dvwye
>

I can't. The text is too small and when I enlarge it enough to read I
have to scroll horizontally. Waaay too much trouble. Was there some
specific point you wanted to make?

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
What is a free gift? Aren't all gifts free?
 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      12-28-2007

"dorayme" <> wrote in message
news:doraymeRidThis-...
> In article <>,
> Ed Mullen <> wrote:


>> Add this under the Title meta tag:
>>
>> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">


> Read the thread:
>
> http://tinyurl.com/2dvwye


Why? Will it help with character sets?

--
Richard.


 
Reply With Quote
 
charles cashion
Guest
Posts: n/a
 
      12-28-2007
dorayme wrote:
> In article <>,
> Ed Mullen <> wrote:
>
>> charles cashion wrote:
>>> I have worked on it until I am down to one warning.
>>> I have read (almost) all suggested pages associated
>>> with this warning. I have made two suggested changes,
>>> but it still have one warning.
>>>
>>> I have compared the first few lines with at least
>>> fifty other web pages, and copied what might have
>>> been missing from my web page. This is my web site.
>>>
>>> http://dunjas.com/FontTest.html
>>>
>>> The warning says I must declare my character set.
>>> I think the <meta... line does that.
>>> You can click here to directly view the warning.
>>>
>>> http://validator.w3.org/check?uri=ht...ntTest.html&ch
>>> arset=%28detect+automatically%29&doctype=Inline&gr oup=0
>>>
>>>
>>> *QUESTION* How do I remove this warning? Can you
>>> suggest something to read which will tell me how
>>> to fix it?
>>>
>>> Thanks,
>>> Charles

>> Add this under the Title meta tag:
>>
>> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

>
> Read the thread:
>
> http://tinyurl.com/2dvwye
>


OK.
I have read the thread.
Since I am not firing blanks, and I am not messing with XHTML,
and I am not using &amp; ... may I buy a vowel?

I am using &lt: and &gt;. I suppose I could remove all entities
and see if the validator likes that better. ... I will get back
to you on this one.

I have tried both (one at a time)...
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
but the warning remains.
Thanks,
Charles
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Page does not validate Thomas Mlynarczyk HTML 3 02-22-2012 08:14 PM
Re: Page does not validate Jukka K. Korpela HTML 7 02-22-2012 06:47 PM
Tidy using unicode does not validate groups2@reenie.org HTML 16 03-19-2007 02:33 PM
RequiredFieldValidator does not Validate control sn@artsolution.net ASP .Net Web Controls 4 10-26-2005 06:37 AM
asp.net creates html that does not validate? sviau ASP .Net 5 02-10-2004 09:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57