|
Posted by Jonathan N. Little on 12/28/07 22:06
charles cashion wrote:
> Jonathan N. Little wrote:
>> charles cashion wrote:
>>
>>>>> charles cashion wrote:
>>
>>>>>> http://dunjas.com/FontTest.html
>>
>>> OK.
>>> I have read the thread.
>>> Since I am not firing blanks, and I am not messing with XHTML,
>>> and I am not using & ... may I buy a vowel?
>>>
>>> I am using <: and >. 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.
>>
>>
>> The only URL you provide in the thread it above and has no such meta
>> tags.
>>
>> Try as your template:
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/html4/strict.dtd">
>> <html>
>> <head>
>> <meta http-equiv="content-type" content="text/html;
>> charset=iso-8859-1">
>> <meta http-equiv="content-language" content="en-us">
>> <title>template</title>
>> </head>
>> <body>
>> <!-- put your markup here -->
>>
>> </body>
>> </html>
>
> Jonathan,
> FIRST, You are right. My code contains/contained no meta
> tags. I know what went wrong *but* I repeated the error.
> I was doing something wrong when I ran ftp.
>
> My code contains font declarations and a strict doctype
> does not accept font declarations.
Then *don't* use the deprecated FONT element.
> The first time I ran
> the validator using strict doctype, it gave me *many*
> errors.
So fix them.
> If you respond to this message, please tell me
> how to access and examine the strict DTD. (thank you)
>
Try reviewing
http://www.w3.org/TR/html4/index/elements.html
Note the *Depr.* column and follow the suggested alternative.
Also:
http://www.w3.org/TR/html4/appendix/changes.html#h-A.3.1.2
And:
http://www.w3.org/TR/html4/appendix/changes.html#h-A.3.1.3
> I went back to the transitional doctype and installed
> your two suggested meta tags and now I have *NO* errors
> or warnings.
But this is a *new* page, you are not transitioning from anything. Why
not spend a little time and review the tutorials on www.htmldog.com and
learn about HTML and CSS. If you were thinking about rebuilding your car
engine, would you not consider at least looking at a Chilton's book
before you start?
How to avoid the FONT element. Use style. Either define a class or style
an element directly
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>Demo</title>
<style type="text/css">
h1 { font-family: "times new roman", times, serif; }
p { font-family: arial, helvetica, sans-serif; }
.blush { color: red; }
.frustration { color: blue; }
</style>
</head>
<body>
<h1>I'm all pointy and Roman</h1>
<p>
But my paragraphs do not have any serifs, and I can
<span class="blush">blush red</span> in the middle
of a sentence with a span element and a class. We
keep offering these suggestions until we are
<span class="frustration">blue in the face</span>,
but people keep using the font element.
</p>
</body>
</html>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|