Session Ready
Exercise

Extracting names

The first thing we'll grab is a name, from the first element of the previously extracted table (now stored as table_element). We can do this with html_name(). As you may recall from when you printed it, the element has the tag <table>...</table>, so we'd expect the name to be, well, table.

Instructions
100 XP
  • Extract the name of table_element using the function html_name(). Save it as element_name.
  • Print element_name.