HTML
Example
This is a simple example, highlighting some key elements to consider.
HTML
<!DOCTYPE html>
<html lang="en" xml:lang="en">
<head>
<meta charset="utf-8">
<!-- no comments above this, as charset needs to be in first block of data retrieved -->
<!-- render in highest IE compatibility mode -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- set viewport for mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- try and disable Superfish spyware - http://glipdev.github.io/disable-superfish-on-your-site.html -->
<meta name="superfish" content="nofish">
<!-- General -->
<title>An HTML 5 standard template</title>
<link rel="shortcut icon" href="favicon.ico">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="/css/default.css">
<style type="text/css">
html, body {
margin: 0;
background-color: #ffffff;
color: #41536b;
}
</style>
<!-- Javascript -->
<script type="text/javascript" src="mycode.js"></script>
<script>
alert("Welcome to JavaScript!");
</script>
</head>
<body>
<div>... Your HTML content here ...</div>
</body>
</html>