Why do you need to set a property to an empty string?

Hi 1st post on here. I have just completed the Applied Visual Design: Create a More Complex Shape Using CSS and HTML. My question is not about how you need to code it but Why do you need to add an empty string? I have tried to google it but cant seem to find an answer.

What purpose does an empty string serve to make a heart shape … or any other shape?

Thanks in advance.
Apologies if this is a basic question.
Steve

Hi and welcome to the forum. :smile:

The reason is because it is pseudo-element and the content property is required.

Have a fiddle with deleting or putting text in the string to see what happens- you can always reset the code if you delete something you shouldn’t.

Hope this helps :slight_smile:

Many thanks for your reply… think I have a long way to go before I can create my own sites