If your theme does not have these functions built in, not to worry.
The body tag is typically located in the header.php file of your theme.
<body <?php body_class(); ?>>
Post class goes wherever you have posts, could be index.php, archive.php, search.php, etc.
<div <?php post_class(); ?>>
Comment classes are baked into the wp_list_comments function, or can be manually placed in a custom callback.
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<li class="comment even thread-even depth-1 bypostauthor" id="comment-63">
<li class="comment even thread-even depth-1 bypostauthor" id="comment-63">
.bypostauthor { background: #000; color: #fff; /* sets the background color to black, font color white */ }
.even { background: #ccc; /* light gray color */ }
#comment-63 { font-weight: bold; }
.bypostauthor { background: #000; color: #fff; }
.even { background: #ccc; }
#comment-63 { font-weight: bold; }
<div id="post-1" class="post-1 post type-post sticky hentry category-uncategorized">
<div id="post-1" class="post-1 post type-post sticky hentry category-uncategorized">
Styling the "sticky" post to have an icon added to it.
.sticky { background-image: url('images/yield.png'); }

Source: WooThemes Ultimate Icon Set
<body class="archive category category-wizards">

<body class="archive category category-wizards">
Styling the Wizards category archive with a custom background, as well as altered navigation menu colors.

<body class="archive category category-wizards">
Styling the Wizards category archive with a custom background, as well as altered navigation menu colors.
body.category-wizards { background-image: url('images/wizards-logo.png'); background-repeat: no-repeat; }
.category-wizards #access { background: #005183; } /* Navigation Menu Background */
.category-wizards #branding img { border-bottom:1px solid #005183; border-top:4px solid #005183; /* Sets the border colors of the header image */ }
category-wizards class for the body only.
/*
Theme Name: Sample Child Theme
Theme URL: http://www.example.com
Description: This is a sample for my WordPress DC presentation.
Author: Leland Fiegel
Author URI: http://leland.info
Version: 1.0
Template: twentyten
*/
@import url("../twentyten/style.css");
/* Changes Go Here */