Yes, I will explain it only means that somewhere in the code it has to be moved so when I did this project I moved to the top of the body section, in other words cut, copy and paste the code to a nother location because html and/ or JS is a·syn·chro·nous.
Yes, it does. However, I think what @robheyays is trying to say is that your nav and its code should be the first thing in the body. But you are correct, having the nabber fixed to the top of the viewport is done with CSS.
Normally when you hear about moving something to the top of the viewport it simply means to position an element at the very top of a webpage → the first thing a users sees on your website.
The viewport refers to the user’s visible area of a web page.
The top of the viewport should always be the first element inside your <body></body> tag.
So what change should i make in the code to make it pass ?
Thats what I’m not able to understand
Am I suppose to fix the position to top or something ?
When you want to “move” an element with only css you can make it’s position absolute, fixed or sticky (in some cases relative can also work):
Mod edit: removed
One more thing its telling me to add project-title to one element and i added it to title element on top.
But its not passing
Can someone tell me the reason ?
The title element is not even showing in the preview
This is a project to get a certification. All code should only be done by those who are attempting the project. No code should be given to them to help them pass any of the requirements
Your portfolio should contain at least one element with a class of project-title → this means you should add a class name of project-title to one element no matter what element.