Linking CSS and JavaScript files to your HTML file


show more Linking CSS and JavaScript files to your HTML file provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create an Interactive Animated Timeline with jQuery show less
please wait ...

Linking CSS and JavaScript files to your HTML file

Next, we need to hook these CSS and JavaScript files up into our index.html file. So, let's take the index.html file and open it up in your chosen text editor. After that title tag, let's hit Return. And let's start by typing beginning tag, type link, rel for relationship equals style sheet, type equals text/css. Another attribute href equals includes/timeline.css. Next, let's create a script tag. Type equals text/javascript.

Source attribute equals includes/jquery-1.8.3.min.js. Then end the script tag. Next, let's link in our custom JavaScript file. So, script type equals text/javascript. Source equals includes/timeline.js, and then end that script tag. Now, with those in place, we're going to add a comment, so, we can put some conditional scripts in place for IE 7 and 8. So, we'll start with a standard HTML comment, and inside here, we'll put the IE conditional statement. If less than IE 9 inside of brackets.

And then before the closing comment, another set of squa...

Linking CSS and JavaScript files to your HTML file
Video duration: 2m 14s 1h 7m Intermediate

Viewers:

Linking CSS and JavaScript files to your HTML file provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create an Interactive Animated Timeline with jQuery

Subjects:
Developer Web
Software:
jQuery
Author:
please wait ...