Articles → HTML → object tag in HTML

object tag in HTML






Purpose





Syntax


<object width="" height="" data=""></object>





Example


<!DOCTYPE html>
<html lang="en"
	xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<!--Embedded a video-->
		<object width="300" height="200" data="Create your first HTML 5 program.mp4"></object>
	</body>
</html>



Output


Picture showing the output of object tag in html

Click to Enlarge


Browser Support


Internet ExplorerFirefoxChromeSafariOperaEdge
YesYesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Saturday, September 19, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250