是否有一个简单的 html 代码可以将页脚放在内容最少的页面底部? (不使用 CSS)

Is there a simple html code to stick a footer at the bottom on a page with minimal content? (without using CSS)

我希望找到一些在页脚标记中输入代码的方法(就像在我的示例中一样)以将页脚粘贴在底部而不是刚好在我的内容末尾下方。没有 CSS 有没有办法做到这一点?对不起,如果我的术语不对,我几天前才开始学习 html。

<!doctype html>
<html>
    <head><title> Sample Website </title></head>
<body>I want the footer at the bottom of the page</body>

  <footer height="0">This is a footer test for a short page</footer>

</html>

我想知道这是否可以像将以下代码添加到您的 HTML 文档的底部一样简单。

<footer>
  <p>Williz</p>
</footer>
如果您有兴趣,

This w3schools page 提供了更多上下文。总的来说,我100%同意Zak的意见和建议。

你可以用非常少的方式做到这一点 CSS..

footer {
  height: 100px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
}
<footer>
  This is a footer test for a short page
</footer>

或者您可以使用内联 CSS:

<footer style="height: 100px; width: 100%; position: fixed; bottom:0; left:0;">This is a footer test for a short page</footer>