Putting an Applet on a Web Page
Applets are placed on a web page by using HTML, the markup language used to create web pages. HTML is a way to combine formatted text, images, sound, and other elements together and present them in a web browser. HTML uses markup 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 <h1>
and </h1>
to indicate the text that they surround is a heading.
The performance of HTML tags can be affected by attributes that determine how they function. The src
attribute of an img
tag provides the name of the image file that should be displayed, as in this example of HTML markup:
<img src="graduation.jpg">
This markup causes a web ...
Get Sams Teach Yourself Java™ in 24 Hours, Sixth 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.