Let us say you have a div tag like this.
<div id="divId" class="divClass"></div>
This is the tag selector. This will affect all div elements.
div {
}
This is the id selector. This will affect the element with the given id.
#divId {
}
This is the class selector. This will affect elements with a specific class.
.divClass {
}