Skip to content

Instantly share code, notes, and snippets.

@mendeza
Created February 8, 2026 17:08
Show Gist options
  • Select an option

  • Save mendeza/1fe2dd8ca12fd0c5e38d34e3d12e317c to your computer and use it in GitHub Desktop.

Select an option

Save mendeza/1fe2dd8ca12fd0c5e38d34e3d12e317c to your computer and use it in GitHub Desktop.
Basic HTML5 page template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
<meta name="description" content="A description.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="">
<style>
/* earlier layers win */
@layer primary, secondary;
/* import order doesn't matter when assigned to layers */
@import url('./secondary.css') layer(secondary);
@import url('./primary.css') layer(primary);
</style>
</head>
<body>
<!-- content start -->
<!-- content end -->
<script type="module" src="./scripts.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment