2016-06-09 7 views
-4

Ich weiß, dass dies eine Anfängerfrage ist, und es hat ehrlich gesagt meinen Kopf mit einem heruntergefallenen Kinn verkratzt. Ich könnte schwören, dass mein Referenzlink zu meiner CSS-Datei korrekt ist. Ich habe das schon einmal gemacht und ich habe das gleiche Problem bei einem anderen Projekt. Ich bin immer noch ein Neuling, aber ich dachte, ich bin über diesen Fehler hinaus. Vielleicht ist es ein Fehler? Oder vielleicht muss ich ein bisschen gedemütigt werden. Ich benutze Notepad ++. Normalerweise verwende ich Sublime-Text. Gibt es etwas, was ich anders machen sollte? HTML- und CSS-Dateien werden im selben Ordner auf meinem Desktop gespeichert. DankKann HTML nicht mit CSS verknüpfen notepad ++ Link ist korrekt. Panne?

Im Folgenden ist der Quellcode für das erste Projekt

Projekt 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

'type = "text.css"' shouldn habe keinen Punkt drin ..try 'type =" text/css "' – charlietfl

+1

Abstimmung zum Schließen als Tippfehler. – csmckelvey

+1

W3Schools Validator kann in diesem Fall für Sie nützlich sein - https://validator.w3.org/ –

Antwort

3

Bitte Link zu unten ändern:

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