when traversing a set of data obtained from PHP in a HTML tag, the pseudo element added to the tag becomes invalid
.
I added nth-child (1):: after & first-child::after
) to show only the first one in the reference diagram, but the actual project added pseudo-class elements for each tag.
the following is the example code:
HTML