我對HTML和CSS非常陌生。我試圖創建一個邊緣沒有邊距的標題。我將如何做到這一點?我的代碼如下。我一直無法找到直接的答案。無邊距HTML標頭
<!DOCTYPE>
<html>
<link type="css/text" href="Gifter.css" rel="stylesheet">
<title>
</title>
<head>
</head>
<body>
<div>EXAMPLE</div>
</body>
</html>
而我的CSS。
div{
border:solid black 1px;
}
大多無關,但你的doctype聲明是非標準的。你可能會遇到一些怪癖模式問題。請改用<!doctype html>。 – philwills