You can do follow this steps below to create product attribute for your shop.
Go to Product > Attribute > Add new attribute
– Add Name for attribute which you want to use. then click “Add Attribute” button. (Example: Color & Size)
– With Color attribute, click on “Configure terms” to add more color which you want to use.
– Insert the name of color then click on “Add new color“.
– With Size attribute, you can do the same with Color, and it will display like the image below.
– After all, your product attribute will display like this image.