Skip to content

Instantly share code, notes, and snippets.

@ff6347
Created November 4, 2019 05:02
Show Gist options
  • Select an option

  • Save ff6347/b9f98d267ecae6f2ad080c0775595172 to your computer and use it in GitHub Desktop.

Select an option

Save ff6347/b9f98d267ecae6f2ad080c0775595172 to your computer and use it in GitHub Desktop.
vanilla JS, HTML & CSS Starter setup
body {
background-color:tomato;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Page Title</title>
<meta name="description" content="something" />
<meta name="author" content="me" />
<link rel="stylesheet" type="text/css" href="index.css" />
</head>
<body>
<script type="text/javascript" src="index.js"></script>
</body>
</html>
document.addEventListener('DOMContentLoaded',() => {
console.log('Hello world');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment