This community-built FAQ covers the “Text Navigability” exercise from the lesson “Learn Text Design: Best Practices”.
Paths and Courses
This exercise can be found in the following Codecademy content:
FAQs on the exercise Text Navigability
There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
You can also find further discussion and get answers to your questions over in #get-help.
Agree with a comment or answer? Like () to up-vote the contribution!
Need broader help or resources? Head to #get-help and #community:tips-and-resources. If you are wanting feedback or inspiration for a project, check out #project.
Looking for motivation to keep learning? Join our wider discussions in #community
Learn more about how to use this guide.
Found a bug? Report it online, or post in #community:Codecademy-Bug-Reporting
Have a question about your account or billing? Reach out to our customer support team!
None of the above? Find out where to ask other questions here!
Is there a difference between these 2 solutions? Does the order of the classes matter? The first is marked as right while the second isn’t.
html <a href="#" class="button button-primary button-small">View Recipe</a>
html <a href="#" class="button button-small button-primary">View Recipe</a>
I don’t get it either. What’s the point?
But it seems that Codacedamy has noticed the problem but hasn’t come up with a proper solution.
So you’ll see the solution presented after you click on the “refresh” button in the editor.
all I can think of is the importance in which the styling should be applied, in case they both different elements. for example, if button-primary and button-small have padding styles- then it would apply button-primary over button-small. i’m not 100% sure on this, but that’s where my logic goes since i had the same idea “just add button-primary to the class” and got the same error.
I think you are correct. Perhaps they are trying to teach us the importance of order of classes.
Can someone please explain this logic to me for the buttons? I am so lost!
I’m almost positive it’s the same. Maybe it’s more desirable to list your classes alphabetically or maybe it’s because of something with the way the styles cascade or whatever but the code renders exactly the same in either case. And if I’m thinking correctly the order in which the padding was applied wouldn’t be based on where it was put in the HTML file but rather where it was put in the CSS file. If button-primary was closer to the top on the CSS it would take precedence (or maybe it’s the other way around I forgot) over button-small. Since they have the same specificity and are targeting the same element with the same property the precedence is determined by where it is in the document I believe. But as far as I’m aware the order the classes are put into an element on the HTML doesn’t make a difference. I may be wrong.
Both orders worked for me. Background colors were changed for all the required buttons but I’m still unable to finish the exercise because the course didn’t except what I did.