How to set the name for the object in HTML5?
<object> element in HTML5 is used to link any external files and resources in the form of any image or any nested linked webpages or content or any plugin that can do the same work.
Elementary uses of <object/ element:
Initially <object> is designed to embed the different applications and browser plugins within it, which is mostly used to extend the usability of browsers.
The attributes that can be passed within this element:
||It specifies the URL of data in the object.
||It specifies the media type of data specified in the data attribute.
||It indicates that the resource should be embedded only if the value of the type attribute matches with the type of resource provided on the data attribute.
||left, right, top, bottom
||It defines the alignment of the objects.
||It specifies the border around the object.
||It specifies the height of the object.
||It specifies the white space on the left and right sides of the object.
||It specifies the white space on the top and bottom of the object.
||It specifies the width of the object.
||It specifies the name of an object.
||It specifies the form id to which the object element belongs to.
Example: Here is the sample code which has objected to link image, video, and any HTML link of some other webpage:
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!