如何在html中标记图像的版权? [英] How to mark the copyright of an image in html?

查看:189
本文介绍了如何在html中标记图像的版权?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个主要的语义问题。我想在网站上放置版权图片。我知道数字和figcaption元素,但figcaption似乎并不是最好的标签。这是我还需要的一个标题。
如果我有这样的图像:

 < figure> 
< img src =img / content / preview.jpgalt =Alttextfürdas Bild/>
< figcaption> Caption go here< / figcaption>
< / figure>

我在哪里放版权?

编辑:版权文本必须可见。

解决方案

一般



<版权声明应包含在元素


[...]通常包含免责声明,注意事项,法律限制或版权

如果版权声明适用于切片内容元素的内容(例如, article ),请将元素包含在 footer 元素属于此分区元素:


footer 通常包含关于其部分的信息 STRO ng>是谁写的,是相关文档的链接,版权数据等。

适用于整个页面,您可以在属于页脚中包含元素> body (即这不是嵌套在分段元素中)。




$ b

 < ;主体> 

<文章>
< footer>
< small><! - 如果许可证适用于本文的内容 - >< / small>
< / footer>
< / article>

< footer>
< small><! - 如果许可证适用于整个页面的内容 - >< / small>
< / footer>

< / body>



当它包含许可证的链接时

如果版权声明包含许可证链接(或更详细地解释术语的页面),请使用 license 链接类型。但是请注意:此许可证将适用于页面的主要内容(通过 main 元素)。



您的情况



切分根元素,这意味着 footer (和 header )可以适用于它:
$ b


footer 元素代表一个页脚,代表最近的祖先分段内容或切分根元素



因此,您可以包含一个页脚元素(包含元素)在图中:

 < ;图> 
< img src =img / content / preview.jpgalt =Alttextfürdas Bild/>
< footer>< small><! - copyright noice - >< / small>< / footer>
< figcaption> Caption go here< / figcaption>
< / figure>

从结构上说,这个版权声明适用于的全部内容元素。 (也可以在 figcaption 中包含页脚。)



(如果你有一个许可证的链接,如果这个,只使用许可证链接类型,是主要内容,并且没有其他主要内容应该根据相同许可证进行许可。)


this is a mostly semantic question. I want to put images with copyrights on the website. I know the figure and figcaption element, but figcaption doesn't seem the best tag for that. It's rather a caption which I also need. If I've got an image like that:

<figure>
  <img src="img/content/preview.jpg" alt="Alttext für das Bild" />
  <figcaption>Caption goes here</figcaption>
</figure>

Where do I put the copyright?

EDIT: The copyright text must be visible.

解决方案

In general

The copyright notice should be contained in a small element:

[…] typically features disclaimers, caveats, legal restrictions, or copyrights.

If the copyright notice applies to the content of a sectioning content element (e.g., article), include the small element in a footer element that belongs to this sectioning element:

A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like.

If it applies to the whole page, you might include the small element in a footer that belongs to the body (i.e. that is not nested in a sectioning element).

<body>

 <article>
    <footer>
      <small><!-- if the license applies to the content of this article --></small>
    </footer>
  </article>

  <footer>
    <small><!-- if the license applies to the content of the whole page --></small>
  </footer>

</body>

When it contains a link to the license

If the copyright notice includes a link to a license (or to a page explaining the terms in more detail), use the license link type.

But note: this license will then apply to the main content of the page (indicated via the main element).

In your case

figure is a sectioning root element, which means that footer (and header) can apply to it:

The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element.

So you could include a footer element (containing a small element) in the figure:

<figure>
  <img src="img/content/preview.jpg" alt="Alttext für das Bild" />
  <footer><small><!-- copyright noice --></small></footer>
  <figcaption>Caption goes here</figcaption>
</figure>

Structurally, this copyright notice would apply to the whole content of the figure element. (It’s also possible to include the footer in the figcaption.)

(And if you have a link to the license, only use the license link type if this figure is the main content and there is no other main content that should not be licensed under the same license.)

这篇关于如何在html中标记图像的版权?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆