Skip to content

Instantly share code, notes, and snippets.

@meltedlilacs
Forked from rtuin/HTML5 Skeleton template.html
Last active February 22, 2017 17:28
Show Gist options
  • Save meltedlilacs/9012977 to your computer and use it in GitHub Desktop.
Save meltedlilacs/9012977 to your computer and use it in GitHub Desktop.
My basic html5 document, every time. with starting css
@mixin input-placeholder {
&.placeholder { @content; }
&:-moz-placeholder { @content; }
&::-moz-placeholder { @content; }
&:-ms-input-placeholder { @content; }
&::-webkit-input-placeholder { @content; }
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<title></title>
<link href="style.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="script.js"></script>
</head>
<body>
</body>
</html>
/* apply a natural box layout model to all elements */
html {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
*, *:before, *:after {
-moz-box-sizing: inherit; -webkit-box-sizing: inherit; box-sizing: inherit;
}
/* reset some common browser styles */
html, body {
margin: 0;
padding: 0;
}
img {
max-width: 100%;
height: auto;
display: block;
}
pre {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
@nmaxcom
Copy link

nmaxcom commented Oct 1, 2015

There's no need to specify “text/css” every time you link to a CSS file:
<link rel="stylesheet" type="text/css" href="style.css">

HTML5 valid:
<link rel="stylesheet" href="style.css">

@Johnmojo
Copy link

lel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment