1. 学习
  2. /
  3. 课程
  4. /
  5. Web Scraping in Python

Connected

练习

Keep it Classy

In this two-part exercise, you will have a chance to show off what you've learned about attributes; in this case, we focus on the class attribute.

说明 1 / 共 2 个

undefined XP
    1
    2

问题

Given the following HTML

<html>
  <head>
    <title>Website Title</title>
    <link rel="stylesheet" type="text/css" href="style.css">
  </head>
  <body>
    <div class="class1" id="div1">
      <p class="class2">
        Visit <a href="http://datacamp.com/">DataCamp</a>!
      </p>
    </div>
    <div class="class1 class3" id="div2">
      Hello World!
    </div>
  </body>
</html>

Which elements belong to the class class1?

答案选项