A tablet pen, as the name suggests, is a pen that you use for tablets and laptops with touchscreen. One one hand, the input is given with a lot of precision, as the touching point with the screen is only the thin tip of the pen. On the other hand, you can prevent polluting the screens with fingerprints.
For the basic understanding of how a tablet pen actually works, let's first look at the two basic functional principles of a touchscreen. On one side, there's the resistive one, on the other side there's the capacitive one. The resistive touchscreen plays an important role in the industry as it responds to pressure and can be operated with gloves without any problems. On the flipside, the capacitive touchscreen has to be touched with a conductive object, i.e. with a finger or a conductive input pen. Most importantly, the capacitive technologie dominates the smartphone and tablet market.
No, because every manufacturer uses different input technoligies.
You can use any capacitive touchscreen with a simple pen with conductive rubber tip. Basically, this just is a digital finger which is more comfortable and doesn't leave dirty fingerprints. Since the technologie behind this is very simplistic, such pens are relatively inexpensive.
In contrast, the so-called active input pen or active stylus must be compatible with the respective tablet. This is because maufacturers are applying highly complex technologies that enable the user to write or draw on his device like on paper. Additionally, this kind of tablet pen can modified with buttons and switches and thus can act as a substitude for the mouse. This provides functions such as erase and undo. Especially in the industry of modern graphic design, such high-precision pens with special drawing tablets are an enormous relief.
An example of compatibility of active stylus and tablet is the VivoTab Note 8 tablet from ASUS. Due to the special EMR (Electro Magnetic Resonance) technology, there is exactly one suitable pen that can be used for this tablet. However, it is also possible that different manufacturers use the same electronics for their pens, which are only slightly different in appearance. Furthermore, this makes these stylus pens compatible with each other despite originating from various producers. One example of this would be Asus, HP and Dell, all offering the same stylus pen, with different model designations.