This forum is now read-only. Please use our new forums! Go to forums
6/10 Won´t let me set the font family of the h1 element
I really don’t know what i´m doing wrong, but every time i try to run and save i get this error: “Oops, try again. Set the font-family of the h1 element inside
Could someone please help me out? Here´s my code:
link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
main.css:
.jumbotron h1 {
color: #fff;
font-size: 48px;
font-weight: bold;
font-family: 'Shift', sans-serif;
}
Answer 53de59a3631fe906cc0029a3
- check to see that you still have the link to your main.css file in the head of your index.html - you need that
- check to see if you have a link to font.css - you don’t want that, it was just an example
- check to see that you still have your
.nav a
,.jumbotron
and.jumbotron p
rules in your main.css file - you need all of those
Answer 53fae97680ff3306720089a5
6/10 h1 element error solved just for help
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
<link href="main.css" rel="stylesheet">
21 comments
I have been trying to fix the problem based on the instructions—even switched laptops and with different browsers…nothing was working… and I was frustrated… So I copied and pasted your code above.. And it worked! After about 3 days’ of trying different ways. The only difference I can see is the space before rel=”stylesheet” and I switched the position of the two line of codes just like what you listed here. My questions: were those the issues? someone said position of the links do matter, is this the right order? I tried copy the url of http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css“ rel=”stylesheet” into browser before today, and there was always an error too. Thank you!
It helped me too to copy the same code above, it seems like i was only missing an > at the end of the second stylesheet but for for a love of me I could not see it before having the two codes side-by-side
This code allows you to complete the lesson. Thanks
so there are two spaces before “rel=”stylesheet”>? (it allowed me to complete the lesson). This seems to be an error, no?
that was stressful. thanks for fixing that up man :)
Yeah, that’s a bit weird… so is the two spaces thing a bug (I’m assuming so)?
Great help, thanks. It is so frustrating when you think you have done everything it is asking for and you still can not get it right. They should have a window showing the answer.
Hi Mauricio, is probably causing your error. You don’t have access to a file called font.css
Great answer that can solve this error.
I have no idea why bazokhan’s index.html code worked where mine didn’t. I couldn’t see the difference, even after playing with the spaces. But worked it did. It doesn’t make sense, but cut and paste the code so you can move forward.
It’s really funny to me though…I tried all you guys have written down here and I JUST CAN’T MOVE ON! I think this is a bug and I don’t know how it worked for you guys but for me, I’m stucked. This is really annoying…
Hi Santao, Something seems to have happened with this exercise. I’ve asked a few others to look into it to confirm that they are seeing the same thing we are and then we’ll see about getting a bug report put in.
The problem has been fixed, please try again.
I keep getting this error message and Ive tried fixing multiple ways, including different browsers.
Oops, try again. Set the font-family of the h1 element inside
Ok just figured this out. In the card section when it mentions adding these, it includes a backslash before the closing >. So, the code should actually read:
(note the />) (once more note the />) This should allow you to complete this question!! :DWOW that worked THANK YOU bazokhan
I fumbled with this for hours…..THANK YOU SO MUCH Youngabel!
Thank you so much !
worked!
safe
Answer 545a6ef1631fe92ff2004db1
Hello. I have same problems, I can not get past 6th step.
My index.html:
<html>
<head>
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
</head>
<body>
<div class="nav">
<div class="container">
<ul>
<li><a href="#">Airbnb logo</a></li>
<li><a href="#">Browse</a></li>
</ul>
<ul>
<li><a href="#">Sign Up</a></li>
<li><a href="#">Log In</a></li>
<li><a href="#">Help</a></li>
</ul>
</div>
</div>
<div class="jumbotron">
<div class="container">
<h1>Find a place to stay.</h1>
<p>Rent from people in over 34,000 cities and 192 countries.</p>
</div>
</div>
<div class="learn-more">
<div>
<div>
<div>
<h3>Travel</h3>
<p>From apartments and rooms to treehouses and boats: stay in unique spaces in 192 countries.</p>
<p><a href="#">See how to travel on Airbnb</a></p>
</div>
<div>
<h3>Host</h3>
<p>Renting out your unused space could pay your bills or fund your next vacation.</p>
<p><a href="#">Learn more about hosting</a></p>
</div>
<div>
<h3>Trust and Safety</h3>
<p>From Verified ID to our worldwide customer support team, we've got your back.</p>
<p><a href="#">Learn about trust at Airbnb</a></p>
</div>
</div>
</div>
</div>
</body>
</html>
And my main.css:
.nav a {
color: #5a5a5a;
font-size: 24px;
font-weight: bold;
padding-top: 14px;
padding-bottom:14px;
padding-left: 10px;
padding-right:10px;
text-transform: uppercase;
}
.jumbotron {
background-image:url('http://goo.gl/04j7Nn');
height: 500px;
}
.jumbotron h1 {
color:#fff;
font-size:48px;
font-weight: bold;
font-family:'Shift', sans-serif;
}
.jumbotron p {
color:#fff;
font-size:20px;
}
2 comments
You’ve lost this link:
Thanks AlbionsRefuge; I added It Works!!
Answer 53fa2cd97c82ca67f900761c
Still got the same problem?
If you tried all of the suggestions here (checked all rules were still in place, switched out the”broken” link given in the course instruction panel, and changed the css font rule to lower-case s for ‘Shift’). One at a time, of course (don’t change to lower-case s, it worked earlier in the course, so it shall work to the end, I assume).
I still had the same error message. My solution?
1.)Chromium Web Browser (or I probably could have updated Opera or Firefox, but I’m breaking in a new OS and didn’t want to muddle through figuring that out…)
2.)PLACEMENT of the code…I’m not sure ‘cause I got lost and couldn’t go back and test the theory out, but I recall actually SEEING the changes at one point, and clicked the next button and got the same error! So I stuck it at the TOP of the other CSS rules already in place, and that worked!
And the link given in the instructions is NOT broken. It may not be PUBLICLY accessible, except through this course…?
So…Update or switch browsers, and Chromium is my pick, for now…and try placing it as the first CSS rule.
Have a GREAT day!
3 comments
I had the same problem. I tried all of the solutions in this thread and yours worked. I was in FireFox originally, then went to Chromium. I clicked “Save and Submit” and it was accepted. Thank you.
Worked for me in Firefox. Don’t know why it says to place the code inside
Mine wouldnt go through either(I use firefox) and i just put the above the font.css and the main.css and it finally went through! lol
Answer 540f67eb282ae3e1bc0017ba
Hi am having a similar problem with the same question i have the same code but a different error “Oops, try again. Inside the head element add the link element for the custom font”
my code index.html
<head>
<link href="main.css" rel="stylesheet ">
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
</head>
main.css
.jumbotron h1 {
color: #fff;
font-family: 'shift', sans-serif;
font-size: 48px;
font-weight:bold;
}
2 comments
me aging for some how some of my code is missing in my question even low its there when try to edit it,
Anyways here is the missing code index.html
@tagMaster, if you take those extra spaces that you inserted in here rel=”stylesheet”> then you should be good.
Answer 543cc5e9631fe96b8c0011db
Hi Roland & all,
If you still have the curiosity left for this question, then I think, the problem i have identified in the following is change the position of font-family:’Shift’,sans-serif.
.jumbotron h1 { color: #fff; font-size: 48px; font-weight: bold; font-family: ‘Shift’, sans-serif; }
i.e use this
jumbotron h1 { color: #fff; font-family:”Shift”,sans-serif; font-size: 48px; font-weight: bold }
And it worked. The problem could be two, fold i.e also the one pointed out by others with the links.
5 comments
It worked. Thank you!
it worked, thanks!
Thank you!
i m getting error.. plz help me
HI swapnil meshram, have you already posted your code where I can see it?
Answer 5412123580ff33e1bb000913
@tagMaster, here is what I see when I start a new question. I use that “Ask question” button at the bottom to submit the question.
6 comments
Hay thanks for replying maybe you can help me am having the same problem as Roland. I have the same code for the html and the css but am getting the error.
Oops, try again. Inside the head element add the link element for the custom font. I have tried all the possabile solutions suggested here but none of them are working. Pleas help as its driving me crazy and i want to finish the course so I can move on to PHP and Javascript
Did you already take my previous advice about removing the extra spaces in “stylesheet “?
yes I did but it did’t work so I reset the code an did the task aging taking on board your advice and it’s working now thanks for your help.
Great, glad you’ve got that one sorted!
Hay thought we had it sorted but earlier it worked so I went and did it on my PC but am getting a different error. Oops, try again. Set the font-family of the h1 element inside
my code
.jumbotron h1 { color: #fff; font-size: 48px; font-weight:bold; font-family: ‘shift’, sans-serif; }
it also says in the css heading (h1) should not be qualified.
The “heading should not be qualified” is a suggestion, not really an error. You can Google for it and someone out there will explain it better than I can. Did you look back at my very first response in this thread, the one where I listed 3 things to check?
Answer 54282eaa80ff334d7a000dbe
main.css
jumbotron h1 {
color: #fff;
font-size: 48px;
font-weight: bold;
font-family: 'Shift', sans-serif;
Answer 544931588c1cccc8460034dc
Guys, don’t forget the colon “;” at the end of each line.
1 comments
thanks. it worked
Answer 544ca6f3631fe93472000aff
This is my code:
.jumbotron h1 { color:#fff; font-family:’Shift’,sans-serif font-size:48px; font-weight:bold; } Can anyone tell me what is wrong????
Answer 54ab10b4937676f68900ab95
Hey! check your HTML link. 1 and lower case L are the same character.
1 comments
You diamond! I thought it was a number one but it was a lower case L!!! So frustrating!
Answer 54ab136fd3292f6008009df3
I did as AR suggested 4 months ago and completely removed the link to font css from the heading, then it worked.
Answer 54e39d849113cb05b20008b7
I dont know why, but i fix my problem (the same of all of you) setting the zoom of the browser to 100. (just press ctrl + 0).
Good luck
Answer 559ff321d3292f63070004a8
None of these suggestions worked for me.
BUT, what DID work as to skip lesson 6, finish the rest of the lessons in the course, then go out the main page. It showed that I had completed the lesson 96%. When I clicked on that, it took me back to the incomplete Lesson 6. I just clicked “Submit”, and it worked!
Definitely a bug in the system, as I ensured that my coding was correct.
Answer 55b1567d76b8fe860500025d
still getting this error. I’ve tried the placement of the font family as well as switiching browsers. here’s my code:
<!DOCTYPE html>
<html>
<head>
<link href="https://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
<link href="main.css" rel="stylesheet">
</head>
.jumbotron h1 {
color; #fff;
font-family:"Shift",sans-serif;
font-size: 48px;
font-weight: bold;
}
9 comments
Hi prospect82, I see a semicolon after the word color, that should be a colon.
thanks. I corrected that but still the same issue
Alright, maybe there is something in the code that I haven’t seen yet, could you post all of your CSS file please?
.nav a { color: #5a5a5a; font-size: 11px; font-weight: bold; padding-bottom: 14px; padding-left: 10px; padding-right: 10px; padding-top: 14px; text-transform: uppercase; }
.jumbotron { background-image:url(‘http://goo.gl/04j7Nn‘); height: 500px;
.jumbotron h1 {
color: #fff;
font-family: ‘Shift’, sans-serif;
font-size: 48px;
font-weight: bold;
}
.jumbotron p {
color: #fff;
font-size: 20px; }
Thanks prospect82, now I can see that your .jumbotron { … } is missing its }
you are using “double” instead of ‘single’ quotations on your “Shift”… instead of ‘Shift’
Hi Iry, either type of quotes should be accepted.
thx guys I was missing the brackets. Thanks greatly.
ooohhh okay.
Answer 55ba4f2d9113cbe2450001a9
Try to copy the code from instruction and paste it In index.html inside the head element I hope its help you. Please let me know if its solve your problem.
Answer 55bd1bf2937676c33e0002a4
I had the same problem as everyone above, with the code entered correctly, but the validator not accepting it. I am using Safari. Albion, can you please fix this problem for Safari? Thanks so much. Have a great day!
1 comments
Hi WestKraemer, if I could fix anything I would, but I’m just here to help sort out questions. Have you posted your code anywhere yet? I need to see ALL of your main.css file and ALL of the HEAD element in your index.html file.
Answer 55c3b378e39efee343000588
Still can’t get past 6. I’ve tried different web browser. Putting the http link above the main and font links. I’ve tried changing the shift in the link to lower and uppercase while changing this Shift, sans to match it. Nothing works. Can someone please help this is getting annoying at this point. Thanks.
<html>
<head>
<link href="http://s3.amazonaws.com/codeademy-content/courses/ltp/css/shift.css" rel="stylesheet">
<link href="font.css" rel="stylesheet">
<link href="main.css" rel="stylesheet">
</head>
.nav a {
color : #5a5a5a;
font-size: 11px;
font-weight : bold;
padding-top : 14px;
padding-bottom : 14px;
padding-left : 10px;
padding-right : 10px;
text-transform : uppercase;
}
.jumbotron {
background-image : url('https://goo.gl/04j7Nn');
height: 500px
}
.jumbotron h1{
color : #fff;
font-size : 48px;
font-weight: bold;
font-family:'shift',sans-serif;
}
.jumbotron p{
color: #fff;
font-size: 20px;
}
1 comments
Hi fakamo, that link to font.css is likely the problem. There is no font.css file available to you in this exercise.
Answer 55f9a702937676a1170002f7
Hi guys, when ever i press save and submit is says “Oops, try again. Inside the head element add the link element for the custom font. Please Help! Thanks
1 comments
Hi Ellis Burgess, have you already posted your head element where we can see it?
Answer 5410c8ec80ff33f6e400011b
Hi how do you ask a question/for help on here I clicked on ask a question. typed/asked my question i cold see the question preview but no button to post the question just the ask a question button which i clicked as there was noting else> i have done tried twice now but my question never goes on the form an an there is know email address to contact any one. can some one pleas help.
2 comments
That is pretty odd that you can’t complete a new question. What operating system and web browser are you using?
I have tried doing in with chrome and firefox and on windows 7 and 8
Answer 547cdedd9c4e9d2563000e83
So I went forward into another lesson to see how the coding was done. Went back and copied into this lesson and it worked
This is what I put in index.html
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
<link rel="stylesheet" href="main.css">
and this was main.css .jumbotron h1 { color: #fff; font-family:'Shift', sans-serif; font-size: 48px; font-weight: bold; }
2 comments
I had the same problem and this solved it. Thanks.
no problem :)
Answer 551ddc61e39efe58d2000142
Can someone help me? This is in my index:
<head>
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
<link href="main.css" rel"stylesheet">
</head>
and this is in my main.css:
.jumbotron h1{
color:#fff;
font-family:'Shift', sans-serif;
font-size:48px;
font-weight:bold;
}
It is giving me the error “Set the font-family of the h1 element inside
9 comments
There is an = missing here: rel”stylesheet”.
That was it. thank you. Good catch!!
@ tarabelle123, you’re welcome!
I have the same problem, could you help me please.
could some one please tell me how to post my question??????
Hi reemalnaji, you have a space between / and courses that is breaking that URL.
thank you ,I tried to do what you said, but ,it was not working.
@ reemalnaji, please show me your corrected code so that I can test it.
put an equal sign between rel and “stylesheet” The line should be
Answer 55454cfd86f552224a00015f
Hello guys so I’ve been fighting with question 6/10 for about a week now and finally got what I was doing wrong. So if you guys look on top. There’s index.html and main.CSS so question one need to be answer in the index.html EXACTLY LIKE THIS
<!DOCTYPE html>
<html>
<head>
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
</head>
</html>
and question number two need to be answer in main.CSS EXACTLY LIKE THIS
.jumbotron h1 {
color: #fff;
font-size: 48px;
font-weight: bold;
font-family: 'shift', sans-serif;
}
GOOD LUCK GUYS!!
10 comments
Hi jeangardy509, that is an interesting way to fool the code checker but it certainly isn’t the correct code for creating the web page in this project. If your goal is learning HTML/CSS I suggest you give this another go. As it stands, your code only gives a blank page.
oh man I thought I had finally got it. So if you don’t min me asking. What is the correct way to fix this issue? I’ve been fighting with it for about a week now. Thanks!!
If you passed exercise 5 then in exercise 6, you can use the Reset Code button to bring all of that code forward. Then as you work through the steps in exercise 6, also check my post that is near the top of this thread, the one that starts out with: “1. check to see if you still have the link to your main.css”. There are three of the most common mistakes listed there.
I’ll do so. thanks for the advice and the heads up
so you mean to tell me both questions for number 6/10 needs to be answer in main.CSS?
Hi jeangardy509, no I don’t mean that.
so where does question one in section 6/10 need to answer to be correct than? in index.html or main.CSS
Step one is asking you to add a line of code to the index.html file. Specifically a line is to be added to the head element. That line is a link to the shift.css file.
jeangardy509, I can confirm that your method works. Also, I think this is the only way to go for people who can’t pass anyway. Our code is fine. It works. The font is Shift. The only problem is the validator won’t accept it. I think ir is fair that we use your method, then copy/paste our code, the correct way, into the next exercise. Hope this helps!
Not a problem @Kaifee Haque
Answer 559f3f4ed3292f26430001b6
Literally seeing the changes yet the the validator will not accept. Very frustrating. Can someone help me out?
1 comments
Something seems to have happened with this exercise. I’ve asked a few others to look into it to confirm that they are seeing the same thing we are and then we’ll see about getting a bug report put in.
Answer 559fd0f793767654fd0002dc
I get an error at step 6. same error as most people and I can not seem to fix it. here’s what’s in the head section:
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
and here is what I have in my main.css:
.jumbotron h1 { color: #fff; font-family:'Shift', sans-serif; font-size: 48px; font-weight: bold;}
where am I failing? :D
edit: I already see the changes in the preview mode, so the code is taking effect, but the tutorial won’t let me get to step 7.
2 comments
Basically, I just skipped step 6 by selecting step 7… :D
The problem has been fixed, please try again.
Answer 559ff2de9113cbc27b000448
This was a tough one for me… :-( I started in Linux Fedora 21 with both Chrome and Firefox… fail. Moved onto Windows 7 Enterprise Chrome… fail Finally had success with Windows 7 Enterprise and Internet Explorer… the joke is on all of us Linux snobs :)
Anyway. Good luck!
Answer 55a0354b76b8fe15a400070f
Answer 55a58d3be39efeb32a0004e2
Hello, this problem has not been resolve as I’m having the same problem. I reviewed my codes multiple times for missing letters, semi-colons, and etc….still does not work. Please fix. Thanks!
1 comments
Hi Cthao, it is working as expected for me. Please show me all of your and all of your main.css file.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
15 comments
Good orderly checklist of possible mistakes. Nice and logical: I included example of font.css when I shouldn’t have.
Thank you Todd, I’m glad it helped.
pls how did you go through in this section
.jumbotron h1 { color: #fff; font-size: 48px; font-weight: bold; font-family: ‘Shift’, sans-serif; main css is giving me problems
@ifelajulo, did you work through the three steps on the check list yet?
yes i did,i wld go through them again
Thanks for the help, I shouldn’t have included the font.css example in the head tag.
I have the same problem I double checked my codes but still i am getting error.Please Help
@anirudhrajendran, would you like us to double check your code?
@AlbionsRefuge, Here is my code: Index.html:
main.css: .jumbotron h1 { color: #fff; font-size: 48; font-weight:bold; font-family: “Shift”,sans-serif;
@anirudhrajendran, this link has a mistake in it: http://s3.amazonaws.com/codeacademy-content/courses/ltp/css/Shift.css You can test that by trying to visit it with your web browser.
I had to go back and copy my styles from section 3. why can’t anyone say it like that? they just say you need those styles but good luck remembering xD
Can someone Check my main.css code:?
.jumbotron h1{ color:#fff; font-family:’shift’, sans-serif; font-size:48px; font-weight:bold; }
Does this look correct?
Hi tarabelle123, what you’ve written there looks just fine. You should have more than that though.
Oops, try again. Inside the head element add the link element for the custom font. Why am I getting this error? Is there a mistake?
Something seems to have happened with this exercise. I’ve asked a few others to look into it to confirm that they are seeing the same thing we are and then we’ll see about getting a bug report put in.