Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Count Number of Images | Getting Acquainted with HTML
Web Scraping with Python

Swipe to show menu

book
Challenge: Count Number of Images

Task

Swipe to start coding

You have successfully opened, read, and decoded the page. Your tasks are:

  1. Count the number of div tags within the web_page.
  2. Count the number of images (img) within the web_page.

To identify these elements, search for the strings "<div" and "<img", as elements may include attributes.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 11
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 4.35

book
Challenge: Count Number of Images

Task

Swipe to start coding

You have successfully opened, read, and decoded the page. Your tasks are:

  1. Count the number of div tags within the web_page.
  2. Count the number of images (img) within the web_page.

To identify these elements, search for the strings "<div" and "<img", as elements may include attributes.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 4.35

Swipe to show menu

some-alt