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 trialKanav Mahajan
497 Pointsstuck at html code challenge
can you help me with this code challenge. been stuck on it for fifteen minutes. Please reply clearly!
2 Answers
toddschneider
4,795 PointsFrom what it looks like Your trying to finish the Add Fonts<> challenge!
first you need to go to the Google fonts page and pick out a font link here!! grab the link html for the font you want to use, copy and past it in the head tag, of your main html file!
here is a example of a embedded Google Font Link (remember the font you choose will give you a different link than the one shown here!)
<head>
<meta charset="utf-8">
<title>Nick Pettit | Designer</title>
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
</head>
the css is quite simple as well!
All you need to do is create a h1 element in the css file. In the font family past the font you chose for me it was Roboto! (the challenge asks for the font-size to be 1.75em and the font-weight to be normal!)
h1 {
font-family: 'Roboto', sans-serif;
font-size: 1.75em;
font-weight: normal;
}
Hope this Helps !!!
idan ben yair
10,288 PointsHi Kanav Can you please post your code?
Kanav Mahajan
497 PointsKanav Mahajan
497 PointsThank you.