Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: charset=utf-8 - bbedit



On Jul 17, 2006, at 12:54 PM, Walter Lee Davis wrote:

You need to close the first meta tag and the doctype with a trailing slash, just like all the other single-ended tags in your example. What you are seeing from your errors is that the validator doesn't realize that the doctype is ended, and is plowing in as though it was still open, waiting for a </doctype> tag which will never come.

You do need to close <meta> tags (specifically the first one), but you don't close DOCTYPE declarations like you do HTML tags. I believe the DOCTYPE here is good and closing it as you would HTML tags would actually be (more) invalid.


Peace,
Scott

On Jul 17, 2006, at 1:16 PM, Craig Hoffman wrote:

I'm using BBEdit to create a new web page
	File => New HTML Document...

When I go and view the index page I get errors from Safari Tidy (http://www.zappatic.net/safaritidy/). Some of the warnings:
- plain text isn't allowed in <head> elements
- <meta> isn't allowed in <body> elements
- so on...


It seems there is something wrong with the "content-type" and "charset", but it looks fine to me. What am I missing?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="copyright" content="" />
<title>Rutledge Jewerly</title>
<meta name='generator' content='BBEdit 8.2' />
<link rel='stylesheet' href='css/style.css' type='text/css' media='screen' />
</head>
<body>
</body>
</head>


Thanks - Craig



_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden
References: 
 >charset=utf-8 - bbedit (From: Craig Hoffman <email@hidden>)
 >Re: charset=utf-8 - bbedit (From: Walter Lee Davis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.