Copy link to clipboard
Copied
I have been coding a website lately, and I have stumbled upon an error that is preventing my CSS formatting to work completely.
The </section> line will not work, and the issue is described as followed:
As a somewhat new coder, I do not understand what this means nor how to fix it, and would, therefore, appreciate any help you can give!
Copy link to clipboard
Copied
There is nothing wrong with the snippet of code you are showing us, the problem if there is one, lies elsewhere in your code. Just because you get an error message on a specific line it doesnt mean its always that line, often its somewhere else.
If you paste the complete code in the forum lm sure someone will be able to identify the problem.
Copy link to clipboard
Copied
The error suggests you are missing the ending </div> for your <div class="container">
Most html elements need a specified start and end tag in order to be a complete element. Right now, it would appear that you open the container div, but aren't closing it before closing the <body> and <html> tags.
Seeing the rest of your code would tell us exactly what's wrong, but chances are, you just need an ending </div> on line 38 to fix it.
Copy link to clipboard
Copied
When in doubt, run your page through code validation.