From the course: Design the Web: Add a Twitter Timeline

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Adding multiple timelines to a single page

Adding multiple timelines to a single page - Twitter Tutorial

From the course: Design the Web: Add a Twitter Timeline

Adding multiple timelines to a single page

- [Voiceover] Now we're going to add a second timeline to the same HTML page. Now the code we got from Twitter when we created our widget, was we got this anchor tag and a script tag. Now the script tag is the same, regardless of the widget that it activates, because as we talked about before, this goes into this particular anchor tag and it looks for the ID of the widget. So we can take this script, let's come down here, select it and cut it, and we can move it to the bottom of our HTML page. So I'll put it down here before the ending body tag. Now if you're using a Content Management System, or you're using a server-side language that supports includes, you can put this script there and have it automatically applied to your pages. You can also add this JavaScript to your JavaScript library as well. But for this course, I'll just leave this here at the bottom of the page. Now I've separated the JavaScript from the content. So inside of the aside, we have the anchor link here for the…

Contents