html_name {rvest} | R Documentation |
Get element name
html_name(x)
x |
A document (from |
A character vector the same length as x
url <- "https://rvest.tidyverse.org/articles/starwars.html" html <- read_html(url) html %>% html_element("div") %>% html_children() %>% html_name()