Different keystrokes to hide
A will select all geometry.
⎈ CtrlL will select all geometry that is connected to your current selection.
For example, from this state in edit mode:

Pressing A will result in this:

Pressing ⎈ CtrlL will result in this: