TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why you may include any image into HTML while not able to include any text?

1 pointsby pyxyabout 12 years ago
I just thought that I cannot find any reason (security? what kind of? may be uselessness?) you can include any image into your HTML page (from any foreign website and the owner of it can delete/alter it later) with a simple &#60;img src=...&#62; tag while plain text embedding is a very tricky task.<p>The only solution of embedding text into HTML page on client side I know is &#60;script src=...&#62; with document.write inside.<p>Do you know why text embedding wasn't included into HTML standard with a simple tag?

1 comment

lutuspabout 12 years ago
&#62; Do you know why text embedding wasn't included into HTML standard with a simple tag?<p>It probably occurred to people that copying the text would be easier. Also consider: There's no standard HTML way to put an image inside an image. And there's no standard HTML way to put text inside text. That seems reasonably symmetrical.<p>Also, directly linking to content from other sites (as opposed to providing links to other pages) is increasingly looked on as on the spectrum between undesirable and a copyright violation.<p>Links to other pages have always been acceptable. Displaying images on your own pages that are hosted elsewhere is pretty much unacceptable. Also, from a practical standpoint, you're better off copying the image -- assuming you have the right. I think the same reasoning should apply to text.