A collection of snippets for finding HTML elements using Floki.
Under construction.
html = """
<div>
<span>First element</span>
<span>Second element</span>
<span>Third element</span>
<span>Fourth element</span>
</div>
"""
parsed_html = Floki.parse_document!(html)
[first_element] = Floki.find(parsed_html, "span:first-of-type")
[third_element] = Floki.find(parsed_html, "span:nth-of-type(3)")
[fourth_element] = Floki.find(parsed_html, "span:last-of-type")