I'm completely new, so I'm learning the very basics, and I've encountered a problem.

I put div tags around an h1, paragraph, and image element group. when i go to css, i type div{margin:50px; background:a9a9a9;}

absolutely no effect is taken. however, when i do each element individual in the same css file, it works! so i know the file is properly linked to the html.

the html portion:

<h1>Hello World</h1>
<p><b>This</b> is a test for the <em>Learning</em> of about divs.
<a href="index.html">Click here to go back to homepage</a></p>
<img src="images/new-goldplatedemblems-ser-i.jpg" width="225px" height="125px" alt="gold plated emblems" />

in the css:

a {
color:red; text-decoration: none;

color: green;
font-family: sans-serif;
margin-left: 50px;/*pixels, percentages, and ems*/

/*p, h1, img{
margin-left: 50px;*/

width: 500px;

PLEASE someone tell me what I'm doing wrong.