Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Accessing an Element | Getting Acquainted with HTML
Web Scraping with Python
course content

Contenido del Curso

Web Scraping with Python

Web Scraping with Python

1. Getting Acquainted with HTML
2. Beautiful Soup: Part I
3. Beautiful Soup: Part II

bookAccessing an Element

Now that you're aware that HTML elements utilize various tags and may incorporate classes and ids, how can you determine the tag/class/id of a specific webpage element?

Since you're acquainted with DevTools, you can easily navigate to a specific position containing the desired element in the HTML. For example, in the Chrome browser, you should left-click on the top-left button of DevTools and then hover your cursor over the area of the webpage that piques your interest.

As you hover over an element, you'll receive a brief overview. A left-click on the element will unveil the corresponding section within the HTML document.

Task

Head to the following page.

Using the `DevTools`, find the `class` name of all the images (`<img>` tag) on the page.

Using the DevTools, find the class name of all the images (<img> tag) on the page.

Selecciona la respuesta correcta

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 7
some-alt