"How To" Guides for XML

Sample XHTML file

The XHTML file contains the page-specific content that is delivered to all types of browsers. No site-wide common elements are included, since those are put into separate templates.

Sample XHTML file

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/sample.xsl"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Copyright (c) 2006 Accilent Corp. (http://www.Accilent.com/) for How To Guides (http://www.HowToGuides.com/). Provided AS IS; no warranties are expressed or implied. Permission is hereby granted to use and/or modify. -->
<head>
<link rel="stylesheet" type="text/css" href="/screen.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="/handheld.css" media="handheld"/>
<title>Sample .mobi site</title>
</head>
<body>
<h1></h1>
<h2>Home Page</h2>
<p>This is the actual content that shows up on small mobile devices. The content can include <a href="http://www.Acronyms.net/terms/h/Hypertext-Transfer-Protocol/" title="Hypertext Transfer Protocol"><abbr>HTTP</abbr></a> links to other web pages, such as:</p>
<p><a href="/detect.cgi?test" accesskey="d">Detect browser type</a></p>
<p>as well as specialized links for mobile devices with phone functions, such as:</p>
<p><a href="wtai://wp/mc;14123373113" accesskey="w">Call the webmaster</a></p>
</body>
</html>

See .mobi sites in Internet Explorer for issues displaying ".mobi" web sites in an IE browser.

Prev: Page 1 Next: sample.xsl 

Home > Internet > Web > Web Design > Markup Languages > XML > XSL Templates > sample.xml

Viewing mobile website page. Switch to WML or Full HTML