I put the following into textedit on mac and saved as an html doc. When I tried to open, it is a blank screen. It is supposed to draw a car and have it move across.

HTML Code:
<!DOCTYPE html>
<html>
<script>

noStroke();

// position of the car
var x = 11;

var draw = function() {
    background(252, 255, 214);

    // draw the car body
    fill(255, 0, 115);
    rect(x, 200, 100, 20);
    rect(x + 15, 178, 70, 40);
    
    // draw the wheels
    fill(77, 66, 66);
    ellipse(x + 25, 221, 24, 24);
    ellipse(x + 75, 221, 24, 24);
    
    x = x + 10;
};</script>
</html>
Thank you!