-
Hajipur, Bihar, 844101
Hajipur, Bihar, 844101
HTML5 Basics
HTML Introduction
HTML Editors
HTML Basic
HTML Elements
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting
HTML Quotations
HTML Comments
HTML Styling and Design
HTML Links and Media
HTML Layout and Structure
HTML Tables
HTML Lists
HTML Block & Inline
HTML Div
HTML Classes
HTML Id
HTML Head
HTML Layout
HTML Responsive
HTML Computercode
HTML Semantics
HTML Forms
HTML Forms
HTML Form Attributes
HTML Form Elements
HTML Input Types
HTML Input Attributes
Input Form Attributes
HTML Graphics
HTML APIs
HTML Advanced Topics
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.
HTML5 Basics
HTML Introduction
HTML Editors
HTML Basic
HTML Elements
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting
HTML Quotations
HTML Comments
HTML Styling and Design
HTML Links and Media
HTML Layout and Structure
HTML Tables
HTML Lists
HTML Block & Inline
HTML Div
HTML Classes
HTML Id
HTML Head
HTML Layout
HTML Responsive
HTML Computercode
HTML Semantics
HTML Forms
HTML Forms
HTML Form Attributes
HTML Form Elements
HTML Input Types
HTML Input Attributes
Input Form Attributes
HTML Graphics
HTML APIs
HTML Advanced Topics