If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Using inspect element for HTML

Learn how to use inspect element for HTML tags. Learn more HTML/CSS in our full course on Khan Academy: https://www.khanacademy.org/computing/computer-programming/html-css.

Want to join the conversation?

No posts yet.

Video transcript

- [Voiceover] Here I am, looking at the webpage for the HTML/CSS course. I'm wondering, what HTML tag made this element. I think it's an <h1> but I'm not sure, it could be an <h2>. Let's find out. The easy way to do that is to use 'Inspect Element' To do that, you go near the element you're interested in, and you right-click, click 'Inspect Element', and wait for this thing down here to pop up. You'll see that it immediately selects whatever you right-clicked on, and I can see that, yep. This is an <h1>, it's got a class name, and then it's got the text inside that I can see. Now this pane contains all the HTML of the page, and I can keep just mousing around and checking out other parts of the page too, and finding out everything that makes up this page. It's pretty darn cool. Also, this is something that you can use on any web page, anywhere on the web. So I encourage you to go out to your favorite webpages, and do a little inspection work. Find out what tags they're made of.