Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Object Element
Object Element

Object is a HTML5 element used to define an embedded object within an HTML document. You can emebd videos, audios, pictures, PDF, Java applets, web pages into an other page etc by using object element.

Syntax

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


You can define one or more than one object element in a document.


Example


You can embed any document, image, file, application etc in a page using object element.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Use <object> element to embed any file, document, image, or application in a page

save file with name task.html or task.htm and then open it using any browser and see results.


Solution