Skip to content

Instantly share code, notes, and snippets.

@gangelo
Last active January 25, 2018 11:52
Show Gist options
  • Save gangelo/5135d3ebdab943d3a92d3fcc6f5300a2 to your computer and use it in GitHub Desktop.
Save gangelo/5135d3ebdab943d3a92d3fcc6f5300a2 to your computer and use it in GitHub Desktop.
HTML5/CSS3 Template
<!doctype html>
<html lang='en'>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="My Description">
<meta name="keywords" content="keyword1, keyword2">
<meta name="author" content="Gene M. Angelo, Jr.">
<title>Title</title>
<link rel="stylesheet" type="text/css" href="css-file.css" media="screen">
<style type='text/css'>
/* Mobile first queries */
.clearfix::after {
content: "";
clear: both;
display: table;
}
.box-size {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {}
/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {}
/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {}
/*========== Non-Mobile First Method ==========*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {}
/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {}
</style>
</head>
<body>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element //-->
<header>
<div class="container">
<div class="branding">
</div>
<nav>
<ul>
<li>Menu Item</li>
</ul>
</nav>
</div>
</header>
<main>
<div class="container">
</div>
</main>
<footer>
<div class="container">
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js/scripts.js" defer></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment