How to create a parent selector

Parent selector is a element that have at least one child node.

Code for Parent selector

Example for Parent Selector

Try the above code with our Free Online HTML Editor.