Carbonyl compounds contain a carbon-oxygen double bond ($>C=O$), which is one of the most important functional groups in organic chemistry.
The carbonyl carbon atom is sp2-hybridised and forms three sigma ($\\sigma$) bonds. The fourth valence electron of carbon remains in its p-orbital and forms a $\\pi$-bond with oxygen by overlap with a p-orbital of oxygen. The oxygen atom also has two non-bonding electron pairs. The bond angles are approximately $120^\\circ$, forming a trigonal coplanar structure.
The carbon-oxygen double bond is highly polarised due to the higher electronegativity of oxygen relative to carbon. Hence, the carbonyl carbon is an electrophilic (Lewis acid) centre, and the carbonyl oxygen is a nucleophilic (Lewis base) centre.
The polar carbonyl group undergoes nucleophilic addition. A nucleophile attacks the electrophilic carbonyl carbon from a direction perpendicular to the plane of $sp2$ hybridised orbitals, changing the hybridisation of carbon to $sp3$ and forming a tetrahedral alkoxide intermediate, which then captures a proton.
Carboxylic acids contain a carboxyl functional group ($-COOH$), consisting of a carbonyl group attached to a hydroxyl group.