无法将HTML链接到CSS notepad ++链接是正确的。毛刺?

时间:2016-06-09 23:02:07

标签: javascript jquery html css

我知道这是一个菜鸟问题,老老实实地让我的头颅下垂。我可以发誓,我的CSS文件的参考链接是正确的我之前已经完成了这个,我在另一个项目上遇到了同样的问题。我仍然是一个新手,但我想我已经过了这个错误。也许这是一个小故障?或许我需要稍微谦虚一点。我正在使用Notepad ++。我通常使用Sublime文本。有什么我应该做的不同吗? HTML和CSS文件保存在桌面上的同一文件夹中。感谢

以下是第一个项目的源代码

项目1:

<!DOCTYPE html>
<html lang="en">





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


    <title>HTML5/CSS3 Responsive Theme</title>


    <meta charset="utf-8" />    
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>


</head>






<body class="body">

        <!--header and logo-->
        <header class="mainheader">
                <img src="logo.jpg"/>


                <!--navigationbar-->
                <nav><ul>
                        <li><a href="#">Home</a></li>
                        <li><a href="#">About</a></li>
                        <li><a href="#">Portfolio</a></li>
                        <li><a href="#">Contact</a></li>                
                <ul><nav>

        </header>






        <!--main content header-->
        <div class="mainContent">
            <div class="content">
                <article class="topcontent">
                    <header>
                        <h2><a href="#" title="First post">First post<a/></h2>
                    </header>

                    <!--functions as secondary header-->
                    <footer>                        
                        <p class="post-info">This post is written by Isaiah</p>
                    </footer>

                    <content>
                        <p>
                        con·tent1
    kənˈtent/
    adjective
    1.
    in a state of peaceful happiness.
    "he seemed more content, less bitter"
     synonyms:  contented, satisfied, pleased, gratified, fulfilled, happy,           cheerful, glad; More
    verb
    1.
    satisfy (someone).
    "nothing would content her"
synonyms:   satisfy, please; More
noun
1.
a state of satisfaction.
"the greater part of the century was a time of content"
2.
a member of the British House of Lords who votes for a particular motion.
                        </P>
                    </content>                  
                </article>
            </div>
        </div>





<!--sidebars-->
    <aside class="top-sidebar">
        <article>
            <h2>Top Sidebar</h2>
            <p>
            Meditation is a practice where an individual trains the mind or induces a mode of consciousness
            </P>
        </article>
    </aside>

    <aside class="middle-sidebar">
        <article>
            <h2>Middle Sidebar</h2>
            <p>
            Meditation is a practice where an individual trains the mind or induces a mode of consciousness
            </P>
        </article>
    </aside>

    <aside class="bottom-sidebar">
        <article>
            <h2>Bottom Sidebar</h2>
            <p>
            Meditation is a practice where an individual trains the mind or induces a mode of consciousness
            </P>
        </article>
    </aside>



<!--footer-->   
    <footer class="mainFooter">
        <p>Copyright Deez Nuts</p>
    </footer>

</body>

</html>

1 个答案:

答案 0 :(得分:3)

请更改以下链接:

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