How to copy something from a web page to my web page
All information on how a web page is created can be viewed by viewing the web pages source code. For help with viewing the source, see: How to view the HTML source code of a web page.
Below is breakdown of how to copy information or code from one web page to another.
Plaintext or any text information viewable from your browser is copied like any other text from any other file.
If you are not familiar with how to copy text, see our copy page for additional help.
HTML and web scripts
Users who visit a page that performs a special feature (e.g., display the current date or a countdown), may want to incorporate that feature on their web page. To do this, view the web page's source code.
Finally, if you are designing your web page in a WYSIWYG editor make sure you are pasting the HTML code into the HTML portion of the program. Many WYSIWYG editors have different views, a section to create and view a page without worrying about the code and another that allows code edits. In the case of Microsoft FrontPage, a user can get into the HTML portion by clicking the HTML tab at the bottom-left corner of the window.
Images, sounds, or movies
Users who want to use another site's images, sounds, or movies can do so with any of the following suggestions.
Copy image, sound, or movie to your computer or server and use
Almost all images, sounds, and movies can be copied to your computer and then viewed on your web page.
Images can be copied from a web page by right-clicking an image and selecting "Save Picture as" or "Save Image as," depending on the browser you are using.
Once selected, you'll be prompted with a location where you want to save the image. Keep in mind if this web page is going to be posted online, you need to upload this image when you upload the web page.
Although almost all images can be saved using the method above, some websites prevent images from being copied with copy protection. Computer Hope will not assist users in copying these images as it is obvious that they do not have permission from the site hosting the pictures.
Sound and movies
Unless the sound or movie file has a direct download link, it can be trickier to copy another web page's sound or movie file. The easiest method would be to view your Internet browser's cache and locate the sound or movie file saved in the cache.
- How do I clear my Internet browser history?
- How do I download or save a YouTube video to my computer?
If you are not aware of what the movie or sound file's name is, view the web page's source to get that information.
The above instructions are for copying sound or movie files that are not streaming. Some sites have streaming audio and video, which can be even trickier to copy.
Link to the image, sound, or movie from your website to another server
A user could also link directly to the image, sound, or movie from another page. However, we do not recommend this method, as it will slow down the load time of your web page. The slowdown may primarily occur because of the additional time it takes to initiate a connection to that server. Another potential disadvantage is that you don't control that data. Its location may change at any time (or be taken offline entirely), which would cause your link to break. Finally, consider that the administrator of the website you're linking to might expressly forbid you to link to their content. By linking to their content, you are adding to the usage of their bandwidth and other server resources. For this reason, always seek explicit permission from another website before linking to its content.
Users who are still interested in doing this can copy the HTML source code for the image, sound, or movie and embed it into a web page.
Note that many pages do not specify the complete URL. You may need to change the path of the file so the browser knows how to load it. For example, an image link from Computer Hope may look like the example below.
The above example does not specify the file's domain or path. Therefore, when this code is copied to your web page, it will not load the image. The browser is attempting to load the image from your computer and not where image.gif is located. If this code was copied from Computer Hope, you would likely need to change it to the example below.
If you need to know the complete path to an image, you can also right-click the image and click "Properties" to view the complete path to the file.
Some files, such as Macromedia Flash files, are embedded web objects. You can look at the source code of the object's <embed> tag to find information about the embedded object, such as its file name and display parameters.
Server scripts or programs
Server scripts, SSI, or other web programs are often protected or set to execute and not to be read. In other words, polls, search engines, forums, chat, etc. cannot be copied and used on your page unless the source is made available.
For these programs or scripts to become functional on your website, you would need to download, install, and set up the program for your computer or server. Many sites use open source or free programs that can be downloaded for free or for a small fee. For example, many forum pages provide a link to download the forum's open source code.