Peter, I think you might want to change that part where you define custom
attributes. As far as XHML 1.0 strict is concerned you have to declare in
all your pages that you are using a specific doc type and all attributes and
elements are already declared in this doc type. When you specify to be using
the XHTML 1.0 strict doc type your browser automatically goes into the so
called "Strict mode". . . .
Attribute :
An attribute is a parameter to an element declared in the DTD. An
attribute's type and value range, including a possible default value, are
defined in the DTD
The above line implies that you cannot use custom attributes. An attribute
has to be declared in the DTD(Document type). "XHTML family document types
are XML based"
4.2 Element and attribute names must be in lower case
XHTML documents must use lower case for all HTML element and attribute
names. This difference is necessary because XML is case-sensitive e.g. <li>
and <LI> are different tags
For more on the differences btw HTML 4 and XHTML take a look at the
following recommendation on the w3c.
http://www.w3.org/TR/2000/REC-xhtml1-20000126/#xhtml
"""Jeffrey Tan[MSFT]""" <v-jetan (AT) online (DOT) microsoft.com> wrote
Quote:
Hi Peter,
Does my reply make sense to you?
If you still have any concern, please feel free to feedback, I will help
you.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights. |