Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 使用<;dfn>;在a<;表>;?_Html_List_Html Table - Fatal编程技术网

Html 使用<;dfn>;在a<;表>;?

Html 使用<;dfn>;在a<;表>;?,html,list,html-table,Html,List,Html Table,如果包装术语的定义在后续的中,则在中使用在语义上是否有效?这是的正确用法,还是必须在段落或定义列表中特别使用,如图所示。我想将我的列表格式化如下: 我的逻辑是,应该允许使用以下代码: <table> <tr> <td><dfn>Attack</dfn></td> <td>Time (in ms) before the compressor will begin to wo

如果包装术语的定义在后续的
中,则在
中使用
在语义上是否有效?这是
的正确用法,还是必须在段落或定义列表中特别使用,如图所示。我想将我的列表格式化如下:

我的逻辑是,应该允许使用以下代码:

<table>
    <tr>
        <td><dfn>Attack</dfn></td>
        <td>Time (in ms) before the compressor will begin to work after the audio level goes beyond the threshold.</td>
    </tr>
    <tr>
        <td><dfn>Release</dfn></td>
        <td>Time (in ms) before the compressor will cease to work after the audio level drops beneath the threshold.</td>
    </tr>
    <tr>
        <td><dfn>Ratio</dfn></td>
        <td>The amount of compression to be applied.</td>
    </tr>
    <tr>
        <td><dfn>Threshold</dfn></td>
        <td>A level in dB which, if the signal surpasses, the compressor will begin working.</td>
    </tr>
</table>

攻击
音频电平超过阈值后压缩机开始工作前的时间(毫秒)。
释放
音频电平降至阈值以下后压缩机停止工作前的时间(毫秒)。
比率
要应用的压缩量。
门槛
如果信号超过,压缩机将开始工作的dB级。
是!根据,是一个短语(内联)标记

然而,他们也建议:

标记是 所有短语标签。它们没有被弃用,但可以 使用CSS实现更丰富的效果

你看了吗

dfn
元素表示术语的定义实例。作为dfn元素最近祖先的或也必须包含dfn元素给出的术语的定义


您的代码片段不包含三个有效祖先中的任何一个,因此它本身是无效的。然而,我相信
被归类为一个部分,这可能会允许您使用它。

@johncode-第一段。它在语义上是否有效。他的问题是“在
在语义上的用法是什么。”答案是肯定的。@johncode我做了一次编辑,做了更好的解释。谢谢,但我们在这里讨论的是W3Schools。我倾向于不信任来自那个网站的信息,就像很多其他人一样……我不知道。谢谢你的提示。这就说明了一切。我总是使用。注意。我总是觉得W3学校组织信息的方式很烦人,但我从来没有花时间去寻找替代方法。即使乍一看(或者仅仅从标题判断!)Mozilla站点的负载也更好…再次感谢!我使用的是
中的表,该表明确定义为您提供给规范的链接中的一个部分?该表仅用于整齐地格式化每个定义。@JoeJ:仅基于该定义,我认为您还可以。然而,规范并没有定义多个定义是否可以在同一个容器中,并且似乎允许像B的定义,A的定义这样的事情,这显然是毫无意义的。我想我会这么做。在我看来,表格是合乎逻辑的,我已经按照建议使用了
作为剖切元素。谢谢你的帮助。