HTML, CSS, and JavaScript

Getting Started

  1. create an account for = https://codesandbox.io/

  2. create a new HTML+CSS project

  3. add an index.js file

HTML Boilerplate (explained)

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>MUS1331</title>
    <link rel="stylesheet" href="styles.css" />
    <script defer src="index.js"></script>
  </head>
  <body>
    <p id='dog'>This is a paragraph.</p>
  </body>
</html>

Understanding HTML, CSS, and JavaScript

style.css

font size explained

index.js Example 1 (popup box)

index.js Example 2 (changing content of a paragraph)

index.js Example 3 (guessing a number between 1 and 10)


Great Resource

Last updated

Was this helpful?