-
Hajipur, Bihar, 844101
Plug-ins are external applications or programs that can be embedded in an HTML document to handle specific content types like PDFs, Flash, Java applets, and other media files.
⚠️ Note: Modern browsers no longer support many traditional plug-ins like Flash or Java applets due to security risks and better HTML5 alternatives.
PDF documents
Flash content (deprecated)
Java applets (deprecated)
Media files (handled by <audio>
or <video>
)
External web applications
<embed>
TagThe <embed>
tag is used to embed an external application or interactive content.
<embed src="file.pdf" width="600" height="400" type="application/pdf">
<object>
TagThe <object>
tag is a more flexible alternative that can include fallback content.
<object data="file.pdf" type="application/pdf" width="600" height="400">
<p>Your browser does not support viewing PDF files. <a href="file.pdf">Download PDF</a></p>
</object>
Although not a plug-in, embedded videos are a common replacement:
<iframe width="560" height="315"
src="https://www.youtube.com/embed/tgbNymZ7vqY"
title="YouTube Video" frameborder="0" allowfullscreen>
</iframe>
File Type | MIME Type |
---|---|
application/pdf |
|
Flash | application/x-shockwave-flash (deprecated) |
MP3 | audio/mpeg |
MP4 | video/mp4 |
Security vulnerabilities
Performance issues
Lack of mobile support
HTML5 provides safer, native alternatives
Embedding legacy Flash files (not recommended today)
Showing PDF documents
Integrating third-party tools like maps, forms, or quizzes
Q1. Embed a PDF file named resume.pdf
using the <embed>
tag.
Q2. Use the <object>
tag to display guide.pdf
with fallback content.
Q3. Display a YouTube video using the <iframe>
tag.
Q4. Add an audio file using a plug-in-like method.
Q5. Create a link to download the file if plug-in embedding fails.
Q6. Center an embedded PDF using HTML/CSS.
Q7. Create an HTML page that uses <embed>
to display a chart.
Q8. Show a message if the browser does not support <object>
.
Q9. Write a proper MIME type for a PDF file in <object>
.
Q10. Make embedded content responsive with CSS.
Q1: Which tag is commonly used to embed plug-ins in HTML?
Q2: What is the MIME type for PDF files?
Q3: Which of the following plug-ins is no longer supported in modern browsers?
Q4: What does the <object> tag allow?
Q5: What will happen if the browser doesn’t support an embedded object?
Q6: Which tag is more flexible and supports fallback content?
Q7: What tag is used to embed a YouTube video in HTML?
Q8: Why is Flash no longer used in websites?
Q9: Which is a correct use of <embed>?
Q10: Which tag is NOT related to plug-in embedding?