From owner-freebsd-doc@FreeBSD.ORG Sat Apr 5 11:53:58 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED84E37B401; Sat, 5 Apr 2003 11:53:58 -0800 (PST) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FEDA43F85; Sat, 5 Apr 2003 11:53:58 -0800 (PST) (envelope-from swear@attbi.com) Received: from localhost.localdomain (unknown[12.242.158.67]) by rwcrmhc53.attbi.com (rwcrmhc53) with ESMTP id <20030405195357053002ldkve>; Sat, 5 Apr 2003 19:53:57 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.6/8.12.5) with ESMTP id h35Jq45F029306; Sat, 5 Apr 2003 11:52:05 -0800 (PST) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.6/8.12.5/Submit) id h35Jpwa5029303; Sat, 5 Apr 2003 11:51:58 -0800 (PST) (envelope-from swear@attbi.com) X-Authentication-Warning: localhost.localdomain: jojo set sender to swear@attbi.com using -f To: Ceri Davies References: <20030405151719.GA75703@submonkey.net> <20030405102827.551d2023.trhodes@FreeBSD.org> <20030405162126.GA76469@submonkey.net> From: swear@attbi.com (Gary W. Swearingen) Date: 05 Apr 2003 11:51:58 -0800 In-Reply-To: <20030405162126.GA76469@submonkey.net> Message-ID: Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: Tom Rhodes cc: doc@FreeBSD.org cc: www@FreeBSD.org Subject: Re: XHTML and the website X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 19:53:59 -0000 Ceri Davies writes: > I just want to get some consensus before I start making sweeping changes > to the tree, plus I could do with a bit of input on whether I'm doing this > The Right Way. You seem to be talking about a higher-level Right Way than the following, but I thought I'd mention it for those who don't already know about it. http://www.w3.org/TR/xhtml1/#guidelines is titled "HTML Compatibility Guidelines" and it begins with "This appendix summarizes design guidelines for authors who wish their XHTML documents to render on existing HTML user agents." I wrote these notes while reading it about a year ago: -- use both the encoding attribute specification on the xml declaration (e.g. ) and a meta http-equiv statement (e.g. ). The value of the encoding attribute of the xml processing instruction takes precedence. -- Always use "&" for "&", esp. in attr. vals. -- Use
, not
and same for other empty elements. -- Use

, not

and same for other usually non-empty elements. -- Avoid line breaks and wider-than-one-char whitespace in attr. vals. -- Use both "lang" and xml:lang attr in elements (probably just in head & body (or html)). -- Use seemingly redundant ... -- Use lower case in tags.