我使用Hakyll生成一些文档,发现其在生成的代码中有一种奇怪的方式来关闭HTML标签。曾经看到过一个页面上说必须按照他们的方式生成标记,否则在某些情况下会导致页面布局出错,但现在我找不到那个页面了。我创建了一个小测试页面(见下方代码),其中一个红色层是“正常”的HTML标记,一个黄色层是类似于Hakyll生成的标记。我在Firefox浏览器中无法看出这两个div之间的任何区别。请问是否有人能解释一下他们所说的是真的吗?
<html>
<body>
<!-- NORMAL STYLE -->
<div style="background: red">
<p>Make available the code from the library you added to your application. Again, the way to do this varies between languages (from adding import statements in python to adding a jar to the classpath for java)</p>
<p>Create an instance of the client and, in your code, make calls to it through this instance's methods.</p>
</div>
<!-- HAKYLL STYLE -->
<div style="background: yellow"
><p
>Make available the code from the library you added to your application. Again, the way to do this varies between languages (from adding import statements in python to adding a jar to the classpath for java)</p
><p
>Create an instance of the client and, in your code, make calls to it through this instance's methods.</p
></div
>
</body>
<html>