Explain how iframes impact performance and SEO.?
Performance:
- Iframes load as separate browsing contexts, adding extra network requests and
increasing page load time.
SEO:
- Content inside iframes isn’t fully indexed by search engines.
- Links and text inside may not count toward the parent page’s SEO.
Best Practice:
- Use iframes only when necessary (e.g., embedding maps or videos).
- Add title attributes for accessibility.
Example:
<iframe src="
title="Location
Map"></iframe>
Key Takeaway:
Iframes isolate content — great for embedding, but can slow pages and weaken SEO.
Follow me on LinkedIn:
CSS Interview Questions