@alisha-- They are both carbohydrates, but glycolipids are attached to a lipid and glycoproteins are attached to a protein.
Glycoproteins and glycolipids are important for cells to recognize each other. They receive and send messages to other cells so that they can identify one another. They are like the antennae of the cells.
Glycolipids are found in plasma membranes. They are found in all animals, but they can also be found in some bacteria and plant cells.
Mycobacterium, for example, are bacteria that have glycolipids in their cell. There are some other bacteria types that also carry glycolipids in their plasma membranes, as well as some plants.