Although you may be using a WYSIWYG web editor like KompoZer to create and maintain your website, you may find that, on occasion, you need to insert a snippet of raw HTML code into your web page. For example, you have may come across some code from, say, thesitewizard.com's Link To Us page. If you have tried inserting such code simply by pasting it into your page using KompoZer, you would have found that your page displays the raw HTML code instead of the actual text or button you want.
This tutorial takes you through the steps of inserting such HTML code into your web page. I will assume here that you already know how to use KompoZer for creating and publishing a website using the WYSIWYG interface. As such, this article merely supplies the missing information on how you can insert third party cut-and-paste HTML code. If you are not sure how to use KompoZer, you may wish to start at the beginning with the article How to Design and Publish Your Website with KompoZer.
Start up KompoZer and open the page that you want to edit. To do this, click "File -> Open File", that is, click the "Open File" item on the File menu.
Click the spot on the page where you wish to insert the HTML code.
Switch to your browser and surf to the page where you can get the cut-and-paste HTML code. Select the code and copy it to the clipboard. To do this, drag your mouse over the HTML code to select all of it, click the right mouse button on the text and click the "Copy" item on the menu that appears.
Return to KompoZer. Click "Insert -> HTML...". That is, click the "HTML..." item on the "Insert" menu.
A dialog box will appear. Click somewhere in the empty blank space. Right-click (that is, click the right mouse button) and select "Paste" from the menu that appears. The HTML code should appear in the box. Click the "Insert" button.
The code will now be inserted into your web page. If this was a button from, say, thesitewizard.com's Link To Us page, the image of the button will appear in your window and not the raw HTML code you saw earlier.
Voila, you're done. You can now save the file and upload it to your website.
Do you find this article useful? You can learn of new articles and scripts that are published on thesitewizard.com by subscribing to the RSS feed. Simply point your RSS feed reader or a browser that supports RSS feeds at https://www.thesitewizard.com/thesitewizard.xml. You can read more about how to subscribe to RSS site feeds from my RSS FAQ.
This article is copyrighted. Please do not reproduce or distribute this article in whole or part, in any form.
It will appear on your page as: