To enter a code at link.apple.com, follow these simple steps:
Open a web browser and visit link.apple.com.
Enter the code displayed on your Apple TV or other Apple device.
Check that the code is typed correctly.
Click the Continue button.
Sign in with your Apple Account if requested.
Follow the on-screen instructions to complete the linking process.
Once the process is complete, your device should be connected successfully.