The object tag in HTML
- 24-07-2022
- Trung Minh
- 0 Comments
The object tag defines an object to be embedded in the HTML document. Use the object tag to embed multimedia files (flash, audio, video, PDF, etc.) into your page.
The object tag can also embed another web page into your page.
If you want to pass parameters, you can use the param tag to pass parameters to embedded objects using the object tag.
If you look closely, actually tags, img, audio, iframe .vv can be replaced by object tag.
Using
For example , use the object tag to insert a video from youtube into a website.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <h1>Học html miễn phí tại web888.vn</h1> <object width="400" height="400" data="https://www.youtube.com/embed/silgKdqMoRk"> </object> </body> </html>