Results 1 to 6 of 6

Thread: How to include the video file in Html

  1. #1
    Join Date
    Dec 2009
    Posts
    32

    How to include the video file in Html

    Hello Friends,

    I am developing one Html page to display all my favorite videos and images. I am successfully added the desired images into the html page. But the actual thing is that I don't know html tag which is used to insert the video in the html page.
    Is anyone knows how to include the video file in Html? I am waiting for your reply.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to include the video file in Html

    Hello,

    Html language has the special tag to include the video file and it is "<embed>" tag. The attributes of the <embed>" tag include the "SRC" attribute. You need to provide the value for src attribute. The valid value for this src attribute is the path of your video file. see following example:
    HTML Code:
    <embed src="D:\Demo\asd.avi">
    </embed>

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: How to include the video file in Html

    Hi friend,

    In html the <image> tag is not only used to insert the image in the html document but also to insert the video file. The <image> tag attribute known as "dynsrc" attribute is used to include the video file. You have to provide the path of the video file to this attribute. Along with this attribute you also need to include the "start" attribute. This attribute is used to play the given video file.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to include the video file in Html

    Hello friend,

    Please carefully study the below html example. In this html example I have included the embed tag to insert the video file "thn.avi".
    HTML Code:
    <Html>
    <Title>
    Video demo
    </Title> 
    <body text=red, bgcolor=blue>
    <embed src="E:\demoVideos\thn.avi">
    </embed>
    </body>
    </html>

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: How to include the video file in Html

    Hi,

    There are two ways available in HTML to include the video file within the HTML document.
    1. Use embed tag:
    Syntax:
    HTML Code:
    <embed src="complete path of desired video"></embed>
    example:
    HTML Code:
    <embed src="E:\videos\vd.avi"></embed>
    2. Use image tag:
    Syntax:
    HTML Code:
    <img dynsrc="complete path of desired video">
    example:
    HTML Code:
    <img dynsrc="E:\videos\vd.avi">

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to include the video file in Html

    I found this html code in one of the html book. I have tested the below code on my system and it's running successfully.
    <Body vlink=blue text= blue>
    <h5>
    Html program to display video file
    </h5>

    <EMBED HEIGHT="100" SRC="Htmlvideo.avi" WIDTH="100" AUTOSTART="FALSE">

    </EMBED>

    </Body>

Similar Threads

  1. How to include .SWF files to the html webpage
    By LynDa55 in forum Technology & Internet
    Replies: 3
    Last Post: 15-01-2011, 07:02 PM
  2. How do I include one file inside another in HTML?
    By Ekavali in forum Software Development
    Replies: 4
    Last Post: 19-08-2010, 01:38 PM
  3. How to include comments in HTML
    By rooki in forum Software Development
    Replies: 5
    Last Post: 25-12-2009, 01:06 PM
  4. How to include Header & footer within HTML?
    By seema_thk in forum Software Development
    Replies: 3
    Last Post: 09-12-2009, 09:24 AM
  5. Include a html file by removing head / body
    By KALYAN23 in forum Software Development
    Replies: 3
    Last Post: 09-10-2009, 04:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,310,338.91541 seconds with 17 queries