A Java applet is embedded using HTML tags: <applet> tag or <object> tag. It can make HTTP connection or socket connection to a remote server, if it is granted appropriate permissions.