Try to indent your code. It will show you mistakes you have made (such as missing closing tags for example or tags in weird places).
You can also use an online validator like this one (put your code into it and correct as many errors as you know how to, then update your code and pass it through it again and again till the errors are the ones you don’t intend to fix):
Not helpful at all. Like I said above, I’m trying to learn really hard. But I am stuck, and can only understand why the code fails if someone helps me. I have fixed the code to the best of my abillity, it runs smoothly through a html checker now, but it still doesn’t pass on freecodecamp. So clearly something still isn’t right but I just can’t figure out what and I need help with that, not to pass the test but in order to understand where I am going wrong!!
Calm down and take it easy,
first I did see your second post of your code and I did not judge the content nor the style just the syntax.
That´s why I asked what the priority is
if just to pass two things that you concerned about.
Remove any .nav-link that has not an href attribute (which I saw there’re at least 3)
IF your priority to code well. You need to be patience to yourself and read a lot
The HTML code doesn’t meet the correct basic structure, no body attribute , the css link is not in the correct place too. Not yet mention about button nor ul
The CSS file: the media query does not have the break point
basic “structure” HTML:
where to put link of CSS file scroll down to external CSS
Thanks. I removed the 3 .nav-links that don’t have a href attributes, ie. the buttons, and the code passed. I didn’t realise that I could remove the buttons as I thought I needed them as a ‘clickable element’, without understanding that the anchor elements provide clickability…
I will definitely look into those online tutorials you posted, as I find that freecodecamp is designed to teach code that passes, but not necessarily the background knowledge or best practice we need to understand in order to make a good code.