我的样式表没有链接到我的HTML

时间:2014-09-29 18:07:44

标签: html css

HTML& CSS但过去曾创建过网站,并且很容易将CSS链接到HTML。我无法理解我哪里出错了(虽然我确信它非常明显!)任何帮助都会很棒,谢谢你提前!

<!doctype html> 
<html>
<head>
    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width">

    <title>Katgrog</title>
    <meta name="description" content="My first try at my own website">

    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/style.css">
</head>

2 个答案:

答案 0 :(得分:-1)

<link rel="stylesheet" href="css/reset.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />

将其复制并粘贴到您的HTML中,它会起作用。看来你忘了在&gt;之前的末尾添加斜杠(/)。

答案 1 :(得分:-2)

你需要指定type,所以沿着这些行做一些事情:(不需要这种类型)

<link rel="stylesheet" type="text/css" href="theme.css">
相关问题