Skip to content

Instantly share code, notes, and snippets.

@corburn
Last active February 25, 2024 16:25
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save corburn/8288810 to your computer and use it in GitHub Desktop.
Save corburn/8288810 to your computer and use it in GitHub Desktop.
Minimal HTML5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>title</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<!-- page content -->
</body>
</html>
// approximate number of device pixels for every "formatting pixel"
//window.devicePixelRatio
/* Display URL of hyperlinks when printing */
@media print {
a:after {
content: " (" attr(href) ")";
}
}
/* Example media query expression for Responsive Web Design */
@media (orientation: portrait) and (min-width:980px) {
html {
display: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment