Template.html: Difference between revisions

From XPUB & Lens-Based wiki
(New page: A simple page, with character encoding. <source lang="html"> <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/T...)
 
No edit summary
Line 1: Line 1:
A simple page, with character encoding.
A simple page, with character encoding.


<source lang="html">
<source lang="html4">
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

Revision as of 16:47, 5 January 2009

A simple page, with character encoding.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Untitled</title>
</head>

<body>
<p>Hello world</p>
</body>

</html>


"The works"

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>untitled</title>
<!-- external style sheet -->
<link rel="stylesheet" type="text/css" href="styles.css" /> 
<!-- external javascript -->
<script language="JavaScript" type="text/javascript" src="prototype.js">
</script>
<!-- inline stylesheet -->
<style type="text/css">
body {
	font-family: Arial,Verdana,Helvetica,sans-serif;
}
</style>
<!-- inline javascript -->
<script type="text/javascript">
	function init() {
 			alert("javascript says hello as well");
	}
</script>
</head>
<!-- body with javascript hook (call function when page is finished loading -->
<body onload="init()">
<p style="font-size: 14px">Hello</p>
</ul>
</body>
</html>