Morals are formed out of a person's values. Values are the foundation of a person's ability to judge between right and wrong. Morals build on this to form specific, context-driven rules that govern a person's behavior. They're formed from a person's life experience and are subject to opinion.
For example, someone's morals might indicate they're opposed to murder. That's a pretty general rule of thumb. But what about something more mundane? While one person's morals might tell them not to gossip, another person's morals might be quite different. They might not consider gossip to be a bad thing. Consider the following examples of morals and see how many line up with your core values and beliefs.
Is there really a standard moral code in society these days? Yes, while most people follow society's laws, they also abide by certain social mores, which are governed by morals. While morals tend to be driven by personal beliefs and values, there are certainly some common morals that most people agree on, such as:
Always tell the truth
Do not destroy property
Keep your promises
Do not cheat
Treat others as you want to be treated
Do not judge
Take responsibility for your actions
Have respect for yourself and others
Be tolerant of differences
For a deeper dive into the difference between values and morals, read What's the Difference Between Ethics, Morals, and Values?.
The Ten Commandments are often considered the basis for societies founded on Judeo-Christian principles. You'll notice some overlap with the list above, as many of these principles are still embedded in general society.
Do not have any gods before me
Do not make for yourself a graven image
Do not take the name of the Lord your God in vain
Remember the Sabbath day to keep it holy
Honor your father and mother
Do not kill
Do not commit adultery
Do not steal
Do not bear false witness against your neighbor
Do not covet your neighbor's wife or possessions
Keep in mind that examples of morals in a story are different from the moral of a story. Remember, morals are rules that govern a person's behavior. The moral of a story, however, is the overarching teaching the author is trying to present. Of course, the two can align but they are separate entities.
For example, a character might be fighting to release his wrongly-convicted wife from prison because his morals tell him a man's job is to defend his wife. In his quest to free her, he will do anything, including lying and deceiving (which we know to be in contrast to sound morals), to get her out. In this case, the moral of the story isn't, "Be honest," or, "Don't lie." Rather, it could be "Family comes first."
In Harper Lee's To Kill a Mockingbird, Atticus Finch is a white man defending a black man named Tom Robinson, accused of raping a young girl. In the Deep South in the 1930s, this was scandalous, due to pervasive racism. Nevertheless, his morals tell him to protect and serve every member of society, no matter the color of his or her skin.
When the narrator, Scout, asks her father why he's defending Robinson, he says, "You really never understand a person until you consider things from his point of view -- until you climb into his skin and walk around in it." Atticus was teaching her empathy and not to judge, both sound morals.
The Dark Witch begins a fanciful trilogy by Nora Roberts. In it, we read about an American girl named Iona who travels from Boston to Ireland to meet her cousin Branna, the renowned "Dark Witch." Together, Iona, Branna, and Branna's brother join forces to ward off an evil sorcerer who's been dogging the family for 800 years.
Branna and her brother specifically tell Iona not to cross over certain vines and enter into a part of the forest where the evil sorcerer could capture or injure her. One day, Iona hears her name being called and, in a trance-like state, starts to enter the forest. Luckily, she was able to break the trance before she entered the forest but, when she returned home, she said this to her cousin:
I should tell you something first. I don't break my word. It's important. But today, walking back from the stables, I started to go through those vines. I didn't mean to, but I thought I saw a light, and I heard my name, over and over. It was almost like the dream I had. I felt out of myself, pulled in. Like I needed to go through, to whatever waited. Kathel stopped me -- again. I don't break promises, Branna. I don't lie.
Here, we don't have to deduce her morals. They're clearly stated. She doesn't break her word; she doesn't lie. Her morals go on to build a story filled with bravery and courage. Perhaps the moral of the story is to always be brave and do the right thing, but that stems from Iona's sound morals.
The most prolific source of moral lessons in literature is Aesop's Fables. Let's see some of the teachings that lie within these popular tales:
Appearances can be deceiving. - The Wolf in Sheep's Clothing
Avoid a remedy that is worse than the disease. - The Hawk, the Kite, and the Pigeons
Don't make much ado about nothing. - The Mountain in Labor
Every man should be content to mind his own business. - The Seagull and the Kite
He is not to be trusted as a friend who mistreats his own family. - The Master and His Dogs
He is wise who is warned by the misfortunes of others. - The Sick Lion
He who once begins to tell falsehoods is obliged to tell others to make them appear true, and, sooner or later, they will get him into trouble. - The Monkey and the Dolphin
He who seeks to injure others often injures only himself. - The Horse and the Stag
It shows an evil disposition to take advantage of a friend in distress. - The Bull and the Goat
Misfortune tests the sincerity of friends. - The Bear and the Two Travelers
No one should be blamed for his infirmities. - The Old Hound
Pride goes before destruction. - The Fighting Cocks and the Eagle
The hero is brave in deeds as well as words. - The Hunter and the Woodman
There is no believing a liar, even when he speaks the truth. - The Shepherd's Boy and the Wolf
Those who assume a character which does not belong to them, only make themselves ridiculous. - The Crow and the Raven
These examples of morals and moral lessons demonstrate that, although there are certain morals followed by society as a whole, morals are also highly personal. They're based on a personal belief system. In literature, often the moral of the story stems from a central character's set of morals, but it's interesting to see how someone's morals move the story along.
If you're looking to create an interesting story with relatable morals, take a look at these character trait examples. From them, you might be able to develop the central character's morals, thus creating a fanciful tale.