How to Embed HTML in Your Page Without iFrame or Server Side Code

How to Embed HTML in Your Page Without iFrame or Server Side Code thumbnail
HTML5 introduced a tag allowing designers to embed code without iFrames or SSI.

The Internet has become the primary platform for sharing ideas, information, products and promotions. The number of websites created in the last decade makes it necessary to have a well-designed and easy-to-update site that stands out. Embedding HTML is one method of logical design that helps keep your site uniform and organized. If your server does not allow the use of Server Side Includes (SSI) and you prefer not to use inline frames (iFrames), you can still embed code into your page for easy updating.

Instructions

    • 1

      Save the file containing your HTML as a ".html" or ".txt" file. Upload the file to your website's directory.

    • 2

      Open the source of the website you want the HTML embedded into.

    • 3

      Click to position the cursor where you want the HTML embedded.

    • 4

      Type "<Embed src = "yourfilename.txt" width = "##" height = "##">" without the outermost quotes. "Src" refers to your source file. Replace "yourfilename.txt" with the name of the file you created in Step 1. Replace "##" with the number of pixels wide and high your embedded area should appear.

    • 5

      Save the file, then upload to the website directory to apply the changes.

Tips & Warnings

  • Although an official addition to HTML5, "embed" scripts do not always appear properly depending on the browser and settings used by viewers. For this reason, SSI, iFrame and javascript are more commonly used to embed HTML.

Related Searches:

Resources

  • Photo Credit Comstock/Comstock/Getty Images

Comments

You May Also Like

Related Ads

Featured