Page 1 of 1

Embed tag

Posted: Mon Apr 30, 2007 3:26 am
by kpraman
I am displaying vidio with the below code, its working fine

Code: Select all

<body>
<embed src="example.mpeg" autostart="false"> 
</body>

In website tutorial, embed tag has been used inside object tag. Is it necessary to use object tag

Posted: Mon Apr 30, 2007 4:01 am
by trobale
If you want to write valid xhtml or html 4.0 you cannot use embed tag since it is deprecated.

You can read more about embed here http://webdesign.about.com/od/htmltags/ ... _embed.htm

Posted: Tue May 01, 2007 4:02 am
by kpraman
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


I have changed to

[syntax="html"]	<OBJECT id='VIDEO' width='320' height='240' 
	style='position:absolute; left:0;top:0;'
	CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'
	type='application/x-oleobject'>
    <embed src='admin/on_line_course_sample/$file_name' width='320' height='240'></embed> </OBJECT>
	</OBJECT>";
Is it ok now?


feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]