course content

Course Content

Web Scraping with Python

HTML StructureHTML Structure

Let's recall the last chapter. There we considered a simple html page with a respective code.

Unlike Python, indentation is not compulsory in HTML but strictly recommended. In the code above, you can see multiple levels of tag nesting. For example, <h2> and <p> elements are nested in the <body> element. <h2> and <p> tags there are considered children of the <body> element, and <body> element is considered the parent. We can represent the structure of this document in the following way.

question-icon

You are given a simple HTML page. Choose the correct statements.

Select a few correct answers

Section 1.

Chapter 3