@trying2learn,
I believe your experience is somewhat unique, trying. As Setanta has already said, most people
do learn their prejudices,including racism and other types of xenophobia, at their elders' knees. It is a culturally-generated manifestation of gross ignorance. We, somehow, all tend to distrust and dislike people who are somehow "different from us" -- different religion, different language, different skin tone. Our parents and elders somehow let us know that this is "unacceptable," that
we are the superior people. As that song from
South Pacific says, "You've got to be carefully taught."
The media --television, newspapers, etc, -- merely report what is going on in the world. It doesn't cause what's going on. You say you learned about racism and other forms of prejudice from the media. As I said, if so your experience is probably somewhat unique.