1) similarity:
1. diatomic molecules.
2. nonpolar covalent bond.
3. gaseus state at room temperature.
4. very reactive, with high electronegativity.
2) contrast:
1. fluorine has single bond, oxygen has double bond.
2. fluorine is pale yellow, oxygen is colorless gas.
3. fluorine is highly toxic, oxygen is not.