Solution: Add a Class List to a Specific Paragraph

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

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 1300+ tech skills courses.