13. External objects

Labels used

<object data=""> </object>
This tag inserts an external element into the HTML page that can be a text file, a video, sounds, a web page, etc. The name and path of the object is written inside the data attribute.
<iframe src=""> </object>
This tag inserts an external document into the current HTML page. To embed a Youtube video, click on the video with the right mouse button and select the 'Copy embed code' option. Finally, that code is pasted into the HTML document.

Youtube code.

<!-- Vídeo de Youtube insertado -->
<iframe width="320" height="180"
frameborder="0" allow="accelerometer; autoplay;
encrypted-media; gyroscope; picture-in-picture"

Page code