Skip to content

Instantly share code, notes, and snippets.

@mike-schultz
Last active January 19, 2021 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike-schultz/5e6334bf6195c979bb32de85354876c2 to your computer and use it in GitHub Desktop.
Save mike-schultz/5e6334bf6195c979bb32de85354876c2 to your computer and use it in GitHub Desktop.
A simple html page
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<link href="./styles.css" rel="stylesheet"/>
<link href="./styles2.css" rel="stylesheet"/>
</head>
<body>
<div id="container"></div>
<h1>Hello World</h1>
<img src="cat.png" style="width: 400px; height: 400px;"/>
<img src="arrow.svg" style="width: 400px; height: 400px;"/>
<script src="main.js"></script>
</body>
</html>
const h2 = document.createElement('h2');
h2.innerHTML = 'This is a heading';
document.getElementById('container').appendChild(h2);
h1 {
color: red;
}
h2 {
color: blue;
}
<!DOCTYPE html>
<html>
<head>
</head>
<body>
Testing mime types here
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment