An event has two independent outcomes: which listeners hear it, and whether the browser then does its default action. Each method touches only one.
preventDefault() sets the event's canceled flag, so defaultPrevented becomes true and the default action doesn't happen: a link doesn't navigate, a form doesn't submit, a checkbox click is undone, a key press inserts no character. It works only when event.cancelable is true, and not inside a passive listener; otherwise it silently does nothing. Propagation continues normally.
stopPropagation() sets the stop propagation flag. Remaining listeners on the current node still run, but the event goes no further along the path. Called in a capture listener on an ancestor, it stops the event before it reaches the target.
stopImmediatePropagation() also stops the remaining listeners on the current node.
Neither stop method cancels the default action: a link whose click was stopped still navigates.
Defaults that come from activation behaviour (links, buttons, checkboxes, form submission) run after dispatch finishes, so any listener on the path can cancel them, and so can a click() or dispatchEvent() from script. A checkbox is special: it toggles before listeners run, so the handler reads the new value, and a canceled click restores the old one.
Event handler properties have a shortcut: returning false from onclick cancels the event. Returning false from an addEventListener() callback does nothing.
Legacy: event.returnValue = false is an alias for preventDefault(), and cancelBubble = true for stopPropagation().