我知道我应该将所有 html 元素放在 body 标记中,但我需要在 html dtd 上方放置两个隐藏的输入。我想它不会使我的 html 文件成为标准,但它有那么糟糕吗?我有以下代码。
<input type='hidden' id='current_controller'>
<input type='hidden' id='current_module'>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
什么是风险?到目前为止,我没有任何问题。