TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 pyxy超过 12 年前
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

lutusp超过 12 年前
&#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.