Putting an Applet on a Web Page

Applets are placed on a web page in the same way that anything unusual is put on a page: HTML markup tags describe the applet, which a web browser loads along with the other parts of the page. If you have used HTML to create a web page, you know that it's a way to combine formatted text, images, sound, and other elements together. HTML uses special commands called tags that are surrounded by < and > marks, including img for the display of images, p for the insertion of a paragraph mark, and <center> to center the text that follows until a </center> tag is reached.

The performance of some of these HTML tags can be affected by attributes that determine how they function. For example, src is an attribute of the

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.