The attr() CSS Function6:32 with Guil Hernandez
We're also able to write simple CSS functions to generate content. In this video, we'll see how the attr() function inserts an element's attribute value as page content. Before we wrap up, we'll do a quick review of the advanced selectors we just learned.
This pseudo-element rule will insert the value of an
title attribute after the link's content:
You need to sign up for Treehouse in order to download course files.Sign up