The iPad 8 has magnetic support and can connect to accessories like the Apple Pencil and Magic Keyboard. If you want to connect the Magic Keyboard, just point the Connector of the Magic Keyboard at the Smart Connector of the iPad 8 and press it down.
If you want to connect the Apple Pencil, just plug it into the Lightning port on your iPad 8, wait a few seconds, and you're done. It should be noted that when connecting, make sure that there are no obstacles between the equipment and accessories to ensure that the magnetic effect is better.
The IPad 8 can be plugged into the back of the phone to charge itself