Join James Williamson for an in-depth discussion in this video Responding to events, part of HTML Essential Training.
…It's time for us to finish the basic functionality of our tab panels…by responding to the event listener.…Now, we're going to do that by finishing up our display panel function.…So I've opened up the next .HTM that's on the 806 folder.…And you can see this one is a little further along.…The display panel function's got some things built into it,…and I want to talk about what those are before we finish this up.…The first thing is you'll notice that inside the parentheses now,…there is this Tab to Activate.…What is that?…Well, we made that up.…Basically, whenever the function is being called, an object is being passed into it.…That object that's being passed into it is the tab that's been clicked.…So essentially, we're saying to ourselves tab to activate.…
So we can call that whatever we, we want to.…We could have named it Fred for example.…But tab to activate is a lot more descriptive.…After that we have another for loop.…So you remember earlier from what these for loops are doing, right?…So what we're doing is every time this display panel has been called, so…
- Why is HTML important?
- Exploring an HTML document
- Formatting content
- Displaying images
- Using nav, article, and div elements
- Linking to pages and downloadable content
- Creating lists
- Controlling styling (fonts, colors, and more)
- Writing basic scripts
Skill Level Beginner
Creating a Responsive HTML Emailwith Chris Converse1h 43m Beginner
1. Introducing HTML
2. Basic Page Structure
3. Formatting Page Content
4. Structuring Content
5. Creating Links
6. Creating Lists
7. Controlling Styling
8. Basic Scripting
Next steps2m 16s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.