In this article, we will show you how to make a website using HTML & CSS. We will also show you how to animate it with CSS & JavaScript.
First, you will need to create a file called “index.html”. This will be your website’s home page.
Next, you will need to add the following code to “index.html”:
This code tells your web browser that the document is written in HTML.
Next, you will need to add the following code to “index.html”:
This code sets the style for the body of your website and the headings and paragraphs.
Next, you will need to add the following code to “index.html”:
My Website
This is my website. I made it using HTML & CSS.
Next, you will need to add the following code to “index.html”:
var myAnimation = function() {
var el = document.getElementById("h1");
el.style.animation = "fadeInUp";
}
window.onload = myAnimation;
This code sets up an animation that will fade in the text “My Website” when the page loads.
Finally, you will need to add the following code to “index.html”: