How to Embed an MPEG Video in HTML

How to Embed an MPEG Video in HTML thumbnail
How to Embed an MPEG Video in HTML

Videos can serve many purposes online, from entertainment to education. Adding a video to your company website can better acquaint potential customers with the people behind the company and the product or service that you offer or provide your visitors with a video of your pet's funny antics. In today's world, aspiring musicians, actors and models have even posted videos on the Internet to further their careers. Embedding an MPEG video into a website is something you can do without needing to enlist the help of an IT (information technology) professional.

Instructions

    • 1

      Open the web page on which you wish to embed the video in a text editor, such as Notepad, by clicking "File" and "Open" and selecting the file from its location on your computer.

    • 2

      Type the following code into your web page document where you want to display the video:

      <embed src="VIDEO URL" />

    • 3

      Change "Video URL" to the actual address of the MPEG video.

      Add attributes such as height and width to specify the resolution of your video (in pixels) or autostart to determine if the video will begin as soon as a visitor loads the page. For example:

      <embed src="VIDEO URL" autostart="false" height="350" width="500" />

    • 4

      Save the file by clicking "File" and "Save."

    • 5

      Open an FTP (file transfer protocol) program such as Filezilla to upload the file to your web host to make it live on the Internet. Enter your FTP host, username and password into the appropriate fields. Press "Enter" to connect.

    • 6

      Navigate to the folder to which you wish to upload your web page on the "Remote" or "Server" pane in your FTP program. Drag and drop the web page from its location in the "Local" pane in the program to the "Remote" pane to upload. You may also be able to upload by double-clicking the file in the "Local" pane.

Tips & Warnings

  • If you do not have an FTP program or FTP access, you can log into your web hosting control panel and use the included file manager to upload and download files.

  • If the MPEG video is on your computer, you can use your FTP client or browser-based file manager to upload the video to your server.

  • You can embed the video into an existing web page by opening it and editing it via FTP or file manager.

  • If you do not keep the exact syntax of the HTML code (including spaces and quotations), browsers may not display the video correctly.

Related Searches:

References

Resources

  • Photo Credit Ciaran Griffin/Lifesize/Getty Images

Comments

You May Also Like

Related Ads

Featured