1 <section id="cg__howto_xhtml">
2 <title>How to obtain XHTML compliance for FusionForge</title>
4 The complete XHTML specification is available at <ulink url="http://www.w3.org/TR/xhtml1/">XHTML specification</ulink> at <ulink url="http://www.w3.org">www.w3c.org</ulink>.
7 Here is listed a summary of what is needed to be XHTML compliant:
11 <term>XML declaration</term>
13 <para>All pages should have the following xml declaration:</para>
14 <programlisting><![CDATA[
15 <?xml version="1.0" encoding="UTF-8"?>
17 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
18 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
19 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
24 <term>Document must be well-formed</term>
26 <para>All open tags must be closed, all tags must stay between < and >.</para>
30 <term>All tags must be lowercase</term>
32 <para><markup><HTML></markup> must be converted to <markup><html></markup>.</para>
36 <term>Empty tags must be closed</term>
38 <para>No standalone <markup><br></markup> tag is allowed; <markup><br/></markup> must be used.</para>
42 <term>Attributes must always be quoted</term>
44 <para><markup><td rowspan=3></markup> must be converted to <markup><rowspan="3"></markup>.</para>
49 The differences listed here are the most significant differences between HTML and XHTML, there are other, minor differences. For a complete list, refer to the XHTML specification.