Skip to main content
Participant
January 26, 2018
Question

Code issue!

  • January 26, 2018
  • 3 replies
  • 270 views

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!

    This topic has been closed for replies.

    3 replies

    Nancy OShea
    Community Expert
    Community Expert
    January 26, 2018

    When in doubt, run your page through code validation.

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    January 26, 2018

    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.

    Legend
    January 26, 2018

    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.