Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Code issue!

New Here ,
Jan 26, 2018 Jan 26, 2018

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!

239
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 26, 2018 Jan 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2018 Jan 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2018 Jan 26, 2018
LATEST

When in doubt, run your page through code validation.

CC-BugReport.jpg

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines