From the course: Vanilla JavaScript: Animations

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating an HTML document

Creating an HTML document - JavaScript Tutorial

From the course: Vanilla JavaScript: Animations

Start my 1-month free trial

Creating an HTML document

- [Instructor] The simplest way to demonstrate JavaScript is through an HTML document. In this lesson we'll create an initial HTML document through which we will demonstrate all the concepts and techniques for this course. Inside of Visual Studio Code I have the ability to create a file right here, directly within my project folder, by clicking on the New File icon and giving it a name. I'm gonna go ahead and name this index.html. Visual Studio Code then opens up the blank file for me, and I have a starter document that I'm going to paste in from the Snippets file. And it basically sets up my doctype as HTML. I then open up the HTML document with a language of English. Next, my head. And, within the head, we have the meta character set to utf-8. And we give it a title. I'm just calling this JavaScript Animations because we're creating JavaScript animations. We then close out the head tag. Open up the body tag. So, inside the body, of course, will be any sort of visual elements. So…

Contents