Re: out of hibernation, XHTML

by "Tim Rivera" <lists(at)timrivera.com>

 Date:  Fri, 7 Jan 2005 15:57:36 -0500
 To:  <hwg-basics(at)mail.hwg.org>
 References:  r3c1k5
  todo: View Thread, Original
Hello Ber,

> Took a break for a while. Now back again. Interested
> in mastering this xhtml

There's really not much to XHTML. Just use all lowercase letters for
the elements and attributes, close all tags, don't use any short-form
attributes, and use quotation marks around all attributes values. I
always use the Strict DTD, but you may use the Transitional DTD if you
use deprecated elements. This is how I start every web page:

<?xml version="1.0" encoding="us-ascii"?>
<!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-US"
lang="en-US">


The W3C Recommendation:
http://www.w3.org/TR/xhtml1/


Have fun!

Tim

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA