How To Embed A Video In HTML

Table of contents:

How To Embed A Video In HTML
How To Embed A Video In HTML

Video: How To Embed A Video In HTML

Video: How To Embed A Video In HTML
Video: 16: How to Create HTML5 Videos and Embed Videos | Learn HTML and CSS | HTML Tutorial | Basics of CSS 2024, May
Anonim

HTML is a markup language for creating and displaying web pages. It is able to display in the browser window not only pictures, links and the results of various scripts, but also video. Inserting a video clip into a page can be done not only using standard language tools, but also using Flash technology support.

How to embed a video in HTML
How to embed a video in HTML

Instructions

Step 1

The HTML markup language uses a special embed tag to display the video player on the screen. Open the HTML file with any text editor and add the line:

This descriptor has several additional parameters. The width attribute allows you to specify a fixed video width, and the height - the height. Autostart is responsible for automatically starting the player after pressing a button. Specify the Loop parameter if you want to enable automatic repeat.

Step 2

To create playback control keys, specify controller = true. With all the specified parameters, this tag will look like this:

Step 3

If you want to include a Flash movie on the page, use Adobe Flash. If not, install the application by downloading the installer from the Adobe developer site.

Step 4

Go to File - New to create a new project. In the file type selection window, select Flash Document.

Step 5

To change the height and width of the movie, select Modify - Document, where for the Dimensions parameters specify the values you want. In the Background color field, you can set the background color that will be displayed before and after the file is played.

Step 6

After adjusting the video size, import the desired file via the File - Import tab. Specify the path to the video, click Open. In the next menu, select the very first Progressive download from a web-server mode.

Step 7

Edit the duration of the video using the editor. Set the look of the player to be displayed on the screen for video control. After completing all the settings, click Finish.

Step 8

Click on the File - Save menu, specify the file name, select the fla format. Wait until the end of saving the video, go to Publish Settings. In the Formats tab, check the boxes next to Flash and HTML. In the Flash tab, check the Compress movie checkbox. In the HTML tab for Template, set Flash Only. After completing the settings, click Publish and save your work again.

Step 9

Copy the code from the html file to your page. After opening the file, you can play the video.

Recommended: