If you've got an HTML editor or have made a web page before
I imagine you already know pretty much what to do
If this is your first time
You need to use a text editor of some sort. I use the free
HTML-Kit 292, but you can use Wordpad.
Open a new document in Wordpad or a similar text editor. Now paste this code into your empty document, having changed 'Untitled' to a meaningful title.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
Now copy the exercise code and paste it into your document between the body tags:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
Your exercise goes here
</body>
</html>
Save the document making sure you change the '.txt' file extension to '.htm'. Save it to somewhere you'll find it easily. For example you could create a new folder 'My HTML' in 'My Documents'.
Go into your browser and open a new tab. Go to the File menu, and click on Open File. Go to your folder and as long as you gave your file the .htm extension, it should be there, ready and waiting. Open the file and Hey Presto! It won't look very pretty, and it won't do anything yet, but the HTML basis is there.
Now it's time to add the style CSS. Add it with its style tags just below the title:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
Your syle CSS goes here
</head>
<body>
Your exercise goes here
</body>
</html>
Save again, remembering to make sure it still has an .htm file extension. Go back to the browser and refresh the page, and it should look much nicer, although it still won't actually do anything.
The final stage is to add the Javascript. Copy and paste it all, inside its script tags,just below the CSS code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
Your syle CSS goes here
Your JS script goes here
</head>
<body>
Your exercise goes here
</body>
</html>
Your page should now look something like this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title<
<style type="text/css">
.instrC{
color:gray;
font-weight:bold;
}
and all the rest of your style code
</style>
<script type="text/javascript">
All your JS script
</script>
</head>
<body>
<div>
Your exercise code
</div>
</body>
</html>
Save again, refresh the page again, and this is where the fun starts.
As far as blogs are concerned, I only know the procedure with Blogger. Sorry! But I imagine it's pretty similar on other blogging platforms.
If you're not familiar with using code, it would be worth looking at the instructions for a web page above before reading this.
- First of all, when entering this code into your post you'll need to use the HTML editor ('Edit HTML') rather than the WYSIWYG editor ('Compose')
Don't put any the code into the template!
Apart from the technical difficulties, this means that I can change things occasionally, but as you are reloading the code each time, everything should work properly. So if you have put any of this code into the template section, please remove it.
On the blog post page you need to do things in a certain order:
.
- Use 'Enter HTML' to enter the style section (CSS)
- Use 'Enter HTML' to enter a Javascript section opening and closing tags.
- Use 'Enter HTML' to enter the interactive Javascript script inside these tags with the checking functions, optionally the Click and Drop code
- Use 'Enter HTML' to enter the Javascript answers script
Note - It's best to enter the CSS and Javascript before you put anything else in your post.
- Use 'Enter HTML' to enter your exercise(s) suitably placed. You can use Compose' in the normal way to enter any other text you might have, and switch to 'Enter HTML' to enter the exercise.
Belum ada tanggapan untuk "Tools - Gapfill Code Generator Version 2"
Posting Komentar