- Download or clone this Gist to your workspace.
- Rename the project folder to something not
cb96cdb...
. - Open the project folder in VS Code.
- Pick a Codepen of your choice that uses vanilla HTML, CSS (not SCSS) and JS.
- Examples from Tony’s Codepen
- For each of the three Codepen panels (HTML, CSS, JS), copy and paste the contents into the proper locations in the HTML page.
- HTML: Paste between the
<body>
and</body>
tags, but before the<script>
tag. - CSS: Paste between the
<style>
and</style>
tags. - JS: Paste between the
<script>
and</script>
tags.
- HTML: Paste between the
- Save your work and open
index.html
using Live Server or open it manually in your browser.
Last active
May 5, 2022 15:35
-
-
Save acidtone/cb96cdbc3edb982d77b158c1b0f94d46 to your computer and use it in GitHub Desktop.
Activity: Build an index.html file from a Codepen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Page Title Here!</title> | |
<style> | |
/* CSS goes here */ | |
</style> | |
</head> | |
<body> | |
<!-- HTML goes here, above the <script> --> | |
<script> | |
// Javascript goes here | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment