1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <title>XHTML Example</title>
6 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
7 <link rel="stylesheet" href="style.css" type="text/css" />
8 <script src="../lib/OpenLayers.js" type="text/javascript"></script>
10 <body style="width:100%">
11 <h1 id="title">XHTML Example</h1>
16 Shows openlayers running in a XHTML 1.0 Strict Doctype
19 <div id="map" class="smallmap"></div>
20 <script defer="defer" type="text/javascript">
21 var map = new OpenLayers.Map('map');
22 var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
23 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
25 map.zoomToMaxExtent();
27 <div id="docs">This example shows openlayers using a XHTML 1.0 Strict Doctype click on the below image to validate.
29 <a href="http://validator.w3.org/check/referer"><img
30 src="http://www.w3.org/Icons/valid-xhtml10"
31 alt="Valid XHTML 1.0!" height="31" width="88" /></a>