dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasgoMobi

Always Use the Correct Encoding & Doctype

Character Encoding

Ensuring the use of the correct character encoding and doctype makes sure that the page renders as expected. The XML character encoding directive tells the browser how characters on the page should display. It appears on the first line of each XHTML Basic page as the following example shows:

 <?xml version="1.0" encoding="UTF-8" ?>

Doctype

The document type (doctype) tells the browser how the page needs to be rendered, including the rules and how strictly to follow these rules.
Here is an example of a doctype declaration for XHTML Basic 1.1:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"    "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">