HTML:
CSS:
HTML:
CSS:
For styling purposes it is better practice to use classes over IDs due the amount you can have. IDs are good for single blocks of code to help locate it and later change it to do events etc. All elements can have both IDs and classes.