Associate
- Joined
- 11 Oct 2008
- Posts
- 268
There are so many different ways to structure html documents and I was just wondering how people go about it. For example I've seen websites recommend about 4 slightly different ways to include the css file (media, type, version etc).
I was just wondering if there was actually a definitive way of doing it. After a bit of research I have started using the following.
I was just wondering if there was actually a definitive way of doing it. After a bit of research I have started using the following.
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>title</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="css/styles.css?v=1.0" media="all">
<script src="js/script.js?v=1.0"></script>
</head>
<body>
<!-- page content -->
</body>
</html>