Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Creating HTML Content Include External CSS

Link external CSS and navigation elements

Hello team treehouse, i need an urgent assistance out here, i am currently working on my practice project for a while now and i have not been able to link my navigation elements and the external CSS to my HTML document. Am using sublime3 text editor. Below is my code:

<!DOCTYPE html> <html> <head> <meta charset="uft-8"> <title>IGS COMMUNICATIONS | IMPACT ZONE</title> <link rel="stylesheet" href="css../style.css"> </head> <body> <header> <a hrf="index.html"> <h1>IGS COMMUNICATIONS</h1> <h2>IMPACT GLOBAL SOLUTION</h2> <a/> <nav> <ul> <li><a hrf="index.html">Portfolio</a></li> <li><a hrf="about.html">About</a></li> <li><a hrf="services.html">services</a></li> <li><a hrf="contact.html">contact</a></li> </ul> </nav> </header> <section>

  </section>
 <footer>

<p>Ā© 2015 IGS COMMUNICATIONS.</p> </footer> <?body> </html>

any help will be highly appreciated because am stuck here for almost three weeks.

3 Answers

Hi Ezekiel Enejeta!

External CSS: check to make sure that "css../style.css" is the correct link in your href. Also, you're missing the "type" of link, so be sure to add that.

Navigation elements: you've made a typo in each of the anchor tags. I'm sure you can find and fix these!

I hope this helps and keep at it!

-Daniel

Mitchell Springer
Mitchell Springer
2,576 Points

Is your css file in the folder named css..? My guess is the name of the folder is css. So the href should be css/style.css.

thank Mitchell.....my css folder has another folder named "mystyle.css" then inside the folder is style.css. pls how do i link it?