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 trialWilliam Swift
186 PointsI can't do this.....Add "css/normalize.css" to the page as an external stylesheet.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head>
<body> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </body> </html>
This is the code, and I Can't figure out how to do these instructions: Add "css/normalize.css" to the page as an external stylesheet.
Can someone please put the code, and explain it to me....
6 Answers
Timothy Crandall
4,354 PointsThis is a copy of what I have:
<!DOCTYPE HTML>
```<head>```
```<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>```
```<title>Smells Like Bakin' Cupcake Company</title>```
```<link href="css/normalize.css" rel="stylesheet" type="text/css">```
```</head>```
```<body>```<br>
This is at the very top of the HTML code. When you are on the objective screen, ready to type your code, click behind the ```</title>``` (on line 5) press enter, and type the line of code I provided. Hit check work, and that should be it! :)
Timothy Crandall
4,354 Points<link href="css/normalize.css" rel="stylesheet" type="text/css">
I had issues doing they way the video shows as well, so I switched a few things. If you have any questions please feel free to ask!
Add this code right below your <title>
in the <head>
of the page.
Timothy Crandall
4,354 PointsTypo*
Disregard, I posted a new answer before I seen there was an edit button!! :)
William Swift
186 PointsCan you show me where to put that in the code? Within this:
!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head>
<body> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </body> </html>
William Swift
186 Points<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head>
<body> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </body> </html>
Where do I put that code you gave me inside this?
Badge Collector
2,931 PointsHey Timothy, thank you for posting the solution to this. Your line of code has worked for me :)
If you have time, could you explain what caused the issue please? Is it because of the order of the href and rel? I have also tried with the media="screen" at the end of the line and this also works.
<link href="css/normalize.css" rel="stylesheet" type="text/css" media="screen">
Thanks B
Timothy Crandall
4,354 PointsTimothy Crandall
4,354 PointsIf you need more info, please let me know!