americanenglish.state.gov
Embedding Code into Hot Potatoes
A great place to practice embedding code into Hot Potatoes is with an image.
1. Begin by creating a new Hot Potatoes activity. Like the example above,
a JQuiz is a good place to
practice.
2. After starting a new activity, be sure to save it first. This will create a working .jqz file of the
activity. Be sure to save the file in its own folder.
3. To embed an image into the activity, the HTML image code is needed:
a. cat.jpg" alt="
Cat" >
b. What is important to remember with HTML code is that
text appearing between the
“quotations” can be changed and the code will still work. For example in the code above
="width:
304px;height:
228px;" can be changed to ="width:
500px;height:
500px;" and the
code will run with a new image size.
c.
Important: If you use an image saved locally (on the computer), keep it in the same
folder as the Hot Potatoes activity. If
it is not in the same folder, the Hot Potatoes
activity will not find the image, and it will not appear in the activity.
4. By adding the code into the question text block, the image appears as part of the question.
a.
Remember – the final activity will
read everything within the < > as instructions.
5. After the code has been inserted and the .htm file produced, the image will be displayed in the
activity.
6. If the picture is too large or too small, the size can be changed by adjusting the width and height.
a.
For practice, change the numbers in the "width:
304px;height:
228px;" in the activity.
Save the file and then change the width and height numbers. See how the image
changes size.
7. This code is extremely flexible and can be used to include images from the internet as well.
a. For example: Let’s start with the code
cat.jpg" alt="
Cat" > The
cat.jpg can be
replaced with the web address of an image.
americanenglish.state.gov
i.
Try replacing cat.jpg with
Dostları ilə paylaş: