In my mind I picture that a NOT gate should be as simple as the input connected to the gate and the output connected to the drain of a P type transistor. It "defaults" to on and when voltage goes up on the gate it cuts off the voltage in the drain. But the book illustrates both a P and N type in series, with the input connected to both gates, and with the output between the drain of the P and the source of the N. So that makes me think that there are some rules about what the gate, source, and drain can be connected to in order to have a working transistor.
In your mind you aren't making the distinction between LOW and Not Connected.
When your theoretical arrangement is "HIGH" (its "default") state, the output is connected to Vcc. When there is a high enough voltage on the base, the transistor switches off. What is the output connected to then? Nothing at all. It's actually in an indeterminate state, also known as HiZ, or High Impedance. This is one of the three states of Tri-State logic.
The logic "LOW" level doesn't mean "disconnected from Vcc" but instead "connected to GND". You have to have some mechanism for the output to be connected to the ground rail in order for it to sink current and literally be "a low voltage".
What you describe is basically the inverse of the common "open collector" logic gate:
simulate this circuit – Schematic created using CircuitLab
For the logic to make any sense at all an external pull-up resistor to Vcc is required to set the default logic level for the output when the transistor is turned off.
If you were to move the resistor to the inside of the logic gate (the dotted line) then you have what is called RTL - Resistor Transistor Logic.
This is perhaps the easiest logic to understand, since the output is either being linked to ground by the action of the transistors, or is being defaulted to connected to Vcc by the resistor.
However, it's not a particularly efficient system. Far better would be an arrangement whereby you can switch the output between being directly connected to the Vcc or directly connected to GND so you don't drop voltage or waste power over the resistor. Something like a two-way switch:
simulate this circuit
And that's why the totem-pole, or Push Pull arrangement, was born. Two transistors, one connecting the output to Vcc, and one to GND, and only one of them is on at a time. By using a P type to Vcc and an N type to GND you need nothing else to control them since they are naturally the inverse of each other:
simulate this circuit
When D is at a LOW voltage the PNP transistor is turned on, so !Q is connected to Vcc. When D goes to a high enough voltage the PNP turns off and the NPN turns on. Thus, !Q is then connected to GND.
There is usually a "dead" zone between one transistor turning off and the other turning on. This both prevents shoot-through (where both transistors are on at once thus causing a short circuit) and also acts as a noise margin, which you don't get with RTL. For instance, take the following little chart:
Red is where the input voltage is considered to be off, green where it is considered to be on, and yellow is indeterminate. With RTL, if you put in a voltage at or around the switching point, say 0.7V, then what state will it be in? Will it be HIGH or will it be LOW? The slightest noise on the line will make it flip between HIGH and LOW. Not very good really. With TTL the output would switch between LOW and HiZ, and capacitance on the line or other places in that part of the circuit would keep the next stage gate at the same state for a while, effectively destroying the noise.
This is especially good when the transistors are MOSFETs (i.e., CMOS logic) since the gates act just like small capacitors and hold their charge for a while unless specifically charged or discharged by connection to Vcc (through an output's P-channel MOSFET) or to GND (through an output's N-channel MOSFET).
Best Answer
Ground, in most electronics, is just the point in the circuit we call "Zero volts", and use as a reference when measuring voltages elsewhere in the circuit. It is where we connect the black lead of our meter.
The gate circuits on the page you mention are in a sense, only partial circuits: in use, there will be a additional circuits connected to points A and B, and to "ground", to form complete ("looped") circuits to drive the gate.
simulate this circuit – Schematic created using CircuitLab
(Ignore component values - they are the schematic editor's defaults)
The node marked "Ground" is the reference point in the circuit - it is where we put the black lead of our meter when measuring voltages elsewhere in the circuit - we must always measure voltage between two points.
With both switches open, R2 and R3 will pull Input A and Input B "High" (to +5 volts), and the output of the gate will also be High (+5 volts, as measured between Output and Ground)
If either switch is closed, the associated input will be connected to Ground (zero volts), and the diode will pull the output down to about 0.7 volts from ground (a typical forward-biassed diode will have about 0.7 volts across it)
In Real Life, the output would go on to some other circuit, and the inputs could come from other gates rather than the switches.