How do you install a ceiling fan to plug into a wall outlet and should you use two or three strand electrical cord and which strand on the cord connects to which fan wires?

The neutral wire will have writing or ribs on it and connects to the white wire. The smooth wire is hot and connects to the black wire. Use 3 strand wire in size AWG # 16. If the fan has a light it will have a blue wire. Connect that blue wire to the black wire.