Then we are not uderstanding what or
maybe WHY you are asking.
Cascading Styles 101: (The Cliff Notes version)
CSS code goes in a stylesheet.
HTML code goes in the HTML document.
And you make the style rules apply to an element using the tag name for a rule that applies to all those elements.
eg:
Code:
div {
border: 1px solid red;
}
will give all divs a red border
Or by a class name for applying the same rule to many different arbitrary elements
eg:
HTML:
<style type="text/css">
.red-border {
border: red solid 1px;
}
</style>
<div class="red-border">This element has a red border</div>
<p class="red-border">So has this one</p>
OR by an ID where the rule applies to only ONE element in the document.
HTML:
<style type="text/css">
#red-border {
border: red solid 1px;
}
</style>
<div id="red-border">Only THIS element has a red border</div>