Breakdown per week of time to spend training in stealth, combat, and weapons.
figure
元素以及相关的figcaption
。这些项目一起使用,包含可视化表示(如图像,图表或图表)及其标题。通过语义分组相关内容和提供解释figure
的文本替代,这提供了双倍的可访问性提升。对于图表等数据可视化,可以使用标题简要说明视力障碍用户的趋势或结论。另一个挑战包括如何为屏幕阅读器用户在屏幕外(使用CSS)移动图表数据的表格版本。这是一个例子 - 请注意, figcaption
位于figure
标签内部,可以与其他元素组合: <图>
<img src =“roundhouseDestruction.jpeg”alt =“露营猫执行圆屋踢的照片”>
点击
<figcaption>
Master Camper Cat展示了适当形式的圆屋踢。
</ figcaption>
</图>
figure
标记的div
标签和包含标题的p
标签更改为figcaption
标记,帮助他更好地构建页面。 figure
标记。
testString: 'assert($("figure").length == 1, "Your code should have one figure
tag.");'
- text: 您的代码应该有一个figcaption
标记。
testString: 'assert($("figcaption").length == 1, "Your code should have one figcaption
tag.");'
- text: 您的代码不应包含任何div
标记。
testString: 'assert($("div").length == 0, "Your code should not have any div
tags.");'
- text: 您的代码不应包含任何p
标记。
testString: 'assert($("p").length == 0, "Your code should not have any p
tags.");'
- text: figcaption
应该是figure
标签的子figcaption
。
testString: 'assert($("figure").children("figcaption").length == 1, "The figcaption
should be a child of the figure
tag.");'
- text: 确保您的figure
元素有一个结束标记。
testString: 'assert(code.match(/<\/figure>/g) && code.match(/<\/figure>/g).length === code.match(/Breakdown per week of time to spend training in stealth, combat, and weapons.