ContentType Attribute Type


 

The ContentType Attribute Type is a data type defined by XHTML Modularisation 1.1, declared in the DTD as XML 1.0 type CDATA.
Reference: *W3C - XHTML Modularisation 1.1 - Attribute Types

Specific Attributes with Type ContentType

  1. codetype:
    This is declared on the element: object
  2. enctype - default="application/x-www-form-urlencoded":
    This is declared on the element: form
  3. type - #REQUIRED:
    This is declared on the elements: style, script
  4. type:
    This is declared on the elements: link, a, object, param

Common Attributes with Type ContentType

There are no Common Attributes with type ContentType.


Attribute Value for Type ContentType

An RFC2045 MIME Media Type, e.g. "application/xhtml+xml", "application/xml", "text/xml", "text/html", "text/plain", "text/css", "text/javascript", "application/javascript", "application/octet-stream", "image/jpeg", "audio/mpeg", "multipart/form-data"

Ref: *RFC2045

The IANA provide a *list of registered MIME Media Types for reference. Note that some commonly used types (for example: application/java-archive) do not appear on the registered list and so are not strictly valid although they may still have widespread support.


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 01 Oct 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > Data Types in XHTML 1.1 > Attribute Types (XHTML 1.1) > ContentType Attribute Type