html <- minimal_html('
a
b
b
')
html %>% html_elements("a") %>% html_attrs()
html %>% html_elements("a") %>% html_attr("href")
html %>% html_elements("li") %>% html_attr("class")
html %>% html_elements("li") %>% html_attr("class", default = "inactive")
Run the code above in your browser using DataLab