Adding a call link
is as simple as a mailto link! Here's the code to do a single-click call:
+1-800-POTRNOWThere is a simpler method as well:
+1-800-POTRNOWEither of these will work on most devices. Some phones do not support it, and some
others work with one method. You may need to use device-based adaptation to
determine the best way (and we will learn to do that in the fourth chapter). If you
want to keep things simple, just go ahead with the tel method.
Understanding the Homepage
You may have noticed the similarities between HTML and XHTML MP code by now!
The homepage also shows up as the same in both mobile and desktop browsers. Let
us examine different parts of the code now.
Document Structure
The first two lines of the code are the XHTML prolog. They declare the XML version
and the DOCTYPE of the document. The DOCTYPE specifies the DTD (Document
Type Definition) for the XML document??”defining the grammatical rules for the
XML that follows. A validating browser may download the DTD and check that
against the XML to ensure it's in proper format.
Pages:
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68