Solution: Add a Class List to a Specific Paragraph

Learn how to add a class list only to the first paragraph element.

We'll cover the following

Problem statement

The following code sample will add the classes leading-8 and text-gray-900 to all paragraph elements within the input template:

Get hands-on with 1400+ tech skills courses.