首页htmlh1_6HTML Element Style - 如何创建一个类似标题的标签

HTML Element Style - 如何创建一个类似标题的标签

我们想知道如何创建一个类似标题的标签。

<!DOCTYPE html>
<html>
<head>
<style>
* {
  padding: 0;
  margin: 0;
}

#wrapper {
  width: 600px;
  padding: 10px;
  margin: 10px;
}


h1, #content-container {
  border: 1px solid rgb(0, 0, 0);
}

h1 {
  display: inline-block;
  position: relative;
  top: 1px; /* Offset one pixel to the bottom */
  border-bottom-color: white;
}
</style>

</head>
<body>
  <div id="wrapper">
    <h1>HEADER</h1>
    <div id="content-container">Content</div>
  </div>
</body>
</html>