renny
Coder
Here is what I have. A html file, a css file and a js file. They all are in the same folder.
I want to make a html canvas with all 3 of the file in the folder. I getting the script from a tutorial.
I am sure I am calling the other files from the html file. I don't thing that the other files(css, js)are not being seen.
I hope that you can understand what i am saying.
here is my html file
here is my css file
Here is mt js file
I am using notepad++ as an editor on window 7
When i click on the html file firefox comes up with just a blank page.
I hope someone can help
Thank you
I want to make a html canvas with all 3 of the file in the folder. I getting the script from a tutorial.
I am sure I am calling the other files from the html file. I don't thing that the other files(css, js)are not being seen.
I hope that you can understand what i am saying.
here is my html file
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML Canvas API for Games</title>
<meta content="text.html;charset=utf-8" http-equiv="Content-type">
<meta content="utf-8" http-equiv="encoding">
<link rel="stylesheet" type="text/css" href="bundle.css">
<script scr="bundle.js"></script>
</head>
<body>
<canvas id="canvas" width="800" height="600"></canvas>
</body>
</html>
here is my css file
Code:
body{
margin:0px;
padding:0px;
}
Here is mt js file
Code:
window.onload = function(){
console.log("HTML Canvas API for Games");
let canvas = document.getElementById("canvas");
let content = canvas.getContext("2d");
context.fillStyle = "#1bafdb";
context.fillRect(0,0 canvas.width, canvas.height);
}
When i click on the html file firefox comes up with just a blank page.
I hope someone can help
Thank you